diff options
Diffstat (limited to 'world/map/npc/functions/announcements.txt')
-rw-r--r-- | world/map/npc/functions/announcements.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/world/map/npc/functions/announcements.txt b/world/map/npc/functions/announcements.txt new file mode 100644 index 00000000..cd4e3b80 --- /dev/null +++ b/world/map/npc/functions/announcements.txt @@ -0,0 +1,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; +} |