Mod Req: Simple Text Spammer

sleepingsleeping Join Date: 2005-01-16 Member: 35868Members, Constellation, NS2 Map Tester
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

Comments

  • MCMLXXXIVMCMLXXXIV Join Date: 2010-04-14 Member: 71400Members
    I'm surprised DAK doesn't do something like this already? Have you checked that mod out?
  • sleepingsleeping Join Date: 2005-01-16 Member: 35868Members, Constellation, NS2 Map Tester
    Yes, I have tried DAK a few times, constantly having issues with it at the moment. Waiting for it to get updated a bit more. But no it does not have that feature at the present time.

    -Ecks
    Leader of Victurus
  • BicsumBicsum Join Date: 2012-02-27 Member: 147596Members, Reinforced - Gold
    I'm pretty sure DAK is capable of printing text in the client chat log when the client connects.
  • ZaggyZaggy NullPointerException The Netherlands Join Date: 2003-12-10 Member: 24214Forum Moderators, NS2 Playtester, Reinforced - Onos, Subnautica Playtester
    Look here my friend: <a href="http://www.unknownworlds.com/forums/index.php?showtopic=124011" target="_blank">http://www.unknownworlds.com/forums/index....howtopic=124011</a>
  • RothgarRothgar Join Date: 2009-11-13 Member: 69372Members
    DAK AFAIK actually does have this feature but it's not well documented.

    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-->
  • TechnIckSTechnIckS Join Date: 2007-01-14 Member: 59616Members
    I just made a post in the DAK Admin Mod thread with details. See here for full configuration info:

    <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!
Sign In or Register to comment.