diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-05-07 14:08:51 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-05-07 14:08:51 -0400 |
commit | d40e9ab167749ff8f388c90f67457b36c6216aa9 (patch) | |
tree | 2999454384a13def286adf84f6e06e751749fb5b /world/map/npc/functions/announcements.txt | |
parent | 481ed1e0eea0423dd2597c72ca67b5872f8e8862 (diff) | |
download | serverdata-d40e9ab167749ff8f388c90f67457b36c6216aa9.tar.gz serverdata-d40e9ab167749ff8f388c90f67457b36c6216aa9.tar.bz2 serverdata-d40e9ab167749ff8f388c90f67457b36c6216aa9.tar.xz serverdata-d40e9ab167749ff8f388c90f67457b36c6216aa9.zip |
death to the motd!
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; +} |