summaryrefslogtreecommitdiff
path: root/world/map/npc/functions/announcements.txt
blob: cd4e3b807ae704414dfee68a2111c43580013bec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function|script|DisplayMOTD
{
    if($@MOTD_Disabled || $@MOTD$[0] == "") goto L_Return;
    goto L_MOTD;

L_MOTD:
    message strcharinfo(0), "##7Server : " + $@MOTD$[@motd_index];
    set @motd_index, @motd_index + 1;
    if($@MOTD$[@motd_index] == "") goto L_Return;
    goto L_MOTD;

L_Return:
    return;
}