Mod Req: Simple Text Spammer
Hey guys, I would do this myself, but honestly I don't have the time to learn and create it.
I need a mod that at a configurable time will look at a .txt or .json file in the config folder and grab a line of text at a time and paste it into the game chat.
I want to be able to put all my server rules and any general info in this file to be continuously spammed at a (configurable) specified interval.
For example:
Grab line 1 --> paste into game --> wait x amount of second --> grab line 2 --> paste into game --> wait x amount of seconds --> reached last line, start over at line 1
I'm sure I am not the only one who would like this, and I doubt it would be very complicated.
Thanks in advance.
-Ecks
Leader of Victurus
I need a mod that at a configurable time will look at a .txt or .json file in the config folder and grab a line of text at a time and paste it into the game chat.
I want to be able to put all my server rules and any general info in this file to be continuously spammed at a (configurable) specified interval.
For example:
Grab line 1 --> paste into game --> wait x amount of second --> grab line 2 --> paste into game --> wait x amount of seconds --> reached last line, start over at line 1
I'm sure I am not the only one who would like this, and I doubt it would be very complicated.
Thanks in advance.
-Ecks
Leader of Victurus
Comments
-Ecks
Leader of Victurus
You need to add "messages" to your "kPluginsList" variable which is in the DAKConfig.json
Then you should get a "Messages section with options that looks like this:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> "Messages": {
"kMessageInterval": 10,
"kMessageTickDelay": 6,
"kMessagesPerTick": 5,
"kMessage": [ "********************************************************************", "****************** Welcome to the XYZ NS2 Servers ******************", "*********** You can also visit our forums at 123.NS2.COM ***********", "********************************************************************" ]
},<!--c2--></div><!--ec2-->
<a href="http://www.unknownworlds.com/ns2/forums/index.php?s=&showtopic=120542&view=findpost&p=2039048" target="_blank">http://www.unknownworlds.com/ns2/forums/in...t&p=2039048</a>
Enjoy!