summaryrefslogtreecommitdiff
path: root/npc/commands/motd.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands/motd.txt')
-rw-r--r--npc/commands/motd.txt35
1 files changed, 19 insertions, 16 deletions
diff --git a/npc/commands/motd.txt b/npc/commands/motd.txt
index d63a3771a..aad93fc5e 100644
--- a/npc/commands/motd.txt
+++ b/npc/commands/motd.txt
@@ -166,22 +166,6 @@ OnCall:
closedialog;
end;
-OnPCLoginEvent:
- // Handle events
- if ($@GM_EVENT)
- dispbottom l("An event is happening at Aeros! Hurry up!");
- if ($EVENT$ != "")
- dispbottom l("It's @@ (day)!", $EVENT$);
-
- // Handle MOTD
- if (!$MOTD_Disabled)
- displayMOTD;
- if (debug)
- dispbottom "##7<<##B @@help://test-server|" + col(l("Click here for instructions on how to use the test server."),6) + "@@ ##7>>";
-
- daily_login_bonus_handler();
- end;
-
OnClock0003:
// Reset TMW2 Login Bonus on February and April
if (!$@TMW2_357GDQST) {
@@ -202,3 +186,22 @@ OnInit:
.dsize = getarraysize($@Debug_Messages$);
bindatcmd "motd", "@motd::OnCall", 99, 99, 1;
}
+
+
+
+
+function script MOTDHandler {
+ // Handle events
+ if ($@GM_EVENT)
+ dispbottom l("An event is happening at Aeros! Hurry up!");
+ if ($EVENT$ != "")
+ dispbottom l("It's @@ (day)!", $EVENT$);
+
+ // Handle MOTD
+ if (!$MOTD_Disabled)
+ displayMOTD;
+ if (debug)
+ dispbottom "##7<<##B @@help://test-server|" + col(l("Click here for instructions on how to use the test server."),6) + "@@ ##7>>";
+ return;
+}
+