Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Win32 FDS » Custom Commands Plug-in
Custom Commands Plug-in [message #390549] Sat, 13 June 2009 19:22 Go to previous message
arnyswart is currently offline  arnyswart
Messages: 25
Registered: October 2004
Karma:
Recruit
Hey guys I was wondering if I could get some help with configuration.

I have set up a server for some Community Wars. However I need to get it to switch across and back to a normal server on an IRC command.

This is how far I have gotten:

I have written two commands into the commands.xml file:

<command name="NSCommWar-on">
<renguard required="0" />
<permission level="6" />
<hideInHelp value="0" />
<group>ingame</group>
<group>irc</group>
<help value="restarts the server and BRenBot with the CommWar Settings" />
<syntax value="!NSCommWar-on" />
<enabled value="0" />
</command>
<command name="NSCommWar-off">
<renguard required="0" />
<permission level="6" />
<hideInHelp value="0" />
<group>ingame</group>
<group>irc</group>
<help value="restarts the server and BRenBot with the Normal Settings" />
<syntax value="!NSCommWar-off" />
<enabled value="0" />

I then have created two .bat files to run:
NSCommWar-on
cmd
copy D:\Services\Renegade\NSComm\Server\data\Backup_settings\svrcfg_cnc.ini D:\Services\Renegade\NSComm\Server\data\svrcfg_cnc.ini
copy D:\Services\Renegade\NSComm\Server\data\Backup_settings\mapsettings.xml D:\Services\Renegade\NSComm\Server\BRenBot\mapsettings.xml
copy D:\Services\Renegade\NSComm\Server\data\Backup_settings\ssgm.ini D:\Services\Renegade\NSComm\Server\ssgm.ini
exit

NSCommWar-off
cmd
copy D:\Services\Renegade\NSComm\Server\data\Backup_settings\svrcfg_cnc_original.ini D:\Services\Renegade\NSComm\Server\data\svrcfg_cnc.ini
copy D:\Services\Renegade\NSComm\Server\data\Backup_settings\mapsettings_original.xml D:\Services\Renegade\NSComm\Server\BRenBot\mapsettings.xml
copy D:\Services\Renegade\NSComm\Server\data\Backup_settings\ssgm_original.ini D:\Services\Renegade\NSComm\Server\ssgm.ini
exit

Now the idea is that it goes like this:
!NSCommWar-on
>>!msg The server will be restarting for the community war, we apologise for any inconvience
>>Run .Bat files
>>Restart Server
>>Restart BRenBot (!Die Now or rehash if this works too)

Can someone tell me how I get into the BRenBot to get it to do this for us?

[Updated on: Sat, 13 June 2009 19:23]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: Changing the Host Name
Next Topic: Sponsor a server
Goto Forum:
  


Current Time: Fri Dec 20 23:33:03 MST 2024

Total time taken to generate the page: 0.00629 seconds