summaryrefslogtreecommitdiff
path: root/world/map/npc/functions/announcements.txt
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-05-07 14:08:51 -0400
committermekolat <mekolat@users.noreply.github.com>2015-05-07 14:08:51 -0400
commitd40e9ab167749ff8f388c90f67457b36c6216aa9 (patch)
tree2999454384a13def286adf84f6e06e751749fb5b /world/map/npc/functions/announcements.txt
parent481ed1e0eea0423dd2597c72ca67b5872f8e8862 (diff)
downloadserverdata-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.txt14
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;
+}