If you are running a Savage 2 server, this script allows you to add messages of the day. It is very easy to install and does not change the gameplay or any maps at all. And furthermore...it runs on every platform; win, linux, mac server...if savage 2 works, this script will work too.
Installation
First, download the
motd.zip and unpack the motd.cfg on your server into your
"
documents/savage2/game" folder (there should be also a file called "startup.cfg").
If your game server is currently running, you have to shut it down for a second to make some small changes:
Open the "startup.cfg" and add the following lines at the end of the file:
Quote:
// START MOTD CONFIG
SetSave motd_interval "60000"
SetSave motd_MaxCount "10"
SetSave motd_run "1"
SetSave motd_msg1 "Message 1"
SetSave motd_msg2 "Message 2"
SetSave motd_msg3 "Message 3"
SetSave motd_msg4 "Message 4"
SetSave motd_msg5 "Message 5"
SetSave motd_msg6 "Message 6"
SetSave motd_msg7 "Message 7"
SetSave motd_msg8 "Message 8"
SetSave motd_msg9 "Message 9"
SetSave motd_msg10 "Message 10"
exec motd.cfg
// END MOTD CONFIG
|
That is all you basically have to do. The variables mentioned above can be changed to whatever you want. I will explain that below:
Configuration
SetSave motd_interval "60000"
This is the interval in milliseconds in which a random message will appear. 60000ms = 1 minute.
SetSave motd_MaxCount "10"
This is the amount of maximum messages you want to display. If you need more than 10, you'll also have to edit the motd.cfg
SetSave motd_run "1"
This defines whether the motd is turned on or off.
SetSave motd_msg1 "Message 1"
etc...
Here you can define the messages you want to display. You can also use colorcodes such as
^r = red
^g = green
etc.
exec motd.cfg
This includes the motd script. It is important that this command is placed after the other config settings above
Changes on the fly through SSH/in-game console
If you want to change the script through SSH, simply execute the command examples below.
If you want to do this through the in-game console, you have to type:
Quote:
|
remote <remote_pass> <command>
|
Where <remote_pass> is your remote password, and <command> is one of the command examples below.
Stopping the motd
setsave motd_run 0
Starting the motd again, once stopped
setsave motd_run 1
exec motd.cfg
Changing a message
setsave motd_msg1 "bla"