Welcome to The Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies and more


[Tutorial/How to]: Adding Messages to server+Message of the day


merlin777

Recommended Posts

This comes up quite a bit and what throws people off is when they visit a forum and see

 

 

    <!-- this job will start after 15 seconds and will run every 25 sec. total times the message will be show is 6 times -->
    <job id='2'>
        <day>7</day>
        <start>000015</start>
        <runtime>000025</runtime>
        <loop>5</loop>
        <cmd>say -1 job:2 six times</cmd>
    </job>

 

So they high tail it and run away thinking it's the wrong section.

This is the best method for organized messages at specific times.

 

The above you will find when you connect via FTP client (i.e, Filezilla, etc). (note: server must always be stopped during all editing)

 

Once connected, go to your Admin Folder, then Config Folder you will see Scheduler.xml. Drag onto your desktop and open it with notepad++

Here is what you will see

 

 

<Scheduler>
    <job id="0">
        <day></day>
        <start></start>
        <runtime></runtime>
        <loop></loop>
        <cmd></cmd>
    </job>
    <job id="1">
        <day></day>
        <start></start>
        <runtime></runtime>
        <loop></loop>
        <cmd></cmd>
    </job>
</Scheduler>  

 

the <day></day> is where you put how many days you want this specific thing to run so 7days would be

 

<day>1,2,3,4,5,6,7</day>

 

<start>000000</start> //there are 6 digits. 000005 would be 5 seconds. 003000 would be 30min.(this will be when your message "FIRST" appears.

 

<runtime>000000</runtime> //same idea except this is the interval. so 003000 placed here is saying you are displaying this message every 30minutes or whatever time you want

 

<loop></loop> // this tells the server if it's endless or one time thing. so adding either 1 or 0. 1 is infinite loop and 0 will only run the one time you added at the <start>section.

 

<cmd></cmd>//this is where people get confused because it's diff at diff versions. it's still the same idea. say -1 has to be the first thing in that line. anything afterwards is your message. example:

 

<cmd>say -1 Thank you for coming to my server </cmd>

 

Note: one thing i want to mention is for the loop. Some servers use to require a -1 for infinite loop. If you only get your message once or none, than change your 1 to a -1 at the loop section.

 

Note: <cmd> section can also be used for commands, for this tutorial we are using messages, so we need to specify that, by putting say -1 it is telling the server to output that text that follows it and </cmd> is the end of it.

 

If you want more than one message start a new line. Just copy and paste what you have and edit to your liking.

 

If this doesn't help explain it, just opening your Scheduler.xml will have some examples, TAKE YOUR TIME!

Any issues please contact support.

 

As always, this is a tutorial not a perfect statement.

 

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

This Section is for MOTD only. (messages of the day) You Can set intervals as well

 

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

You can find your MOTD section through the FTP client in your Admin Folder

 

 

You will see

 

 

// WELCOME MESSAGE ("message of the day")
// It can be several lines, separated by comma
// Empty messages "" will not be displayed at all but are only for increasing the interval
motd[] = {
    "",
    "",
    "",
    "",
    "",
    "",
    "Instant Setup Game Servers for $20 @ SurvivalServers.com",
    "",
    "Welcome to the server!",
};
motdInterval = 5;                    // Time interval (in seconds) between each message

 

Each line has "" quotes. In between those quotes you add your message.

Example

 

motd[] = {

"welcome to my awesome server",

""

""

....... etc.

 

Below there is a line that says motdInterval =5; //as it states its in seconds. so if you want these messages to appear in 5 seconds  than leave it the way it sits.

If you want your messages to appear over a period of time, you select a larger time frame.

so 1800 will give you 30minutes.

 

Adding "" quotes extends time in between each message, what the actual time is, i really don't know. A good way of finding out would be to see how long it takes when you start the game for the current messages to come up.

 

NOTE: you can't repeat these throughout the server time.

 

 

Any questions email support or post your issue.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...