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.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/npc/commands/motd.txt b/npc/commands/motd.txt
index 7fadf375e..70ff3b690 100644
--- a/npc/commands/motd.txt
+++ b/npc/commands/motd.txt
@@ -182,13 +182,21 @@ OnPCLoginEvent:
daily_login_bonus_handler();
end;
-OnClock0000:
- .login_ref=gettime(5); // Day of month
+OnClock0003:
+ // Reset TMW2 Login Bonus on February and April
+ if (!$@TMW2_357GDQST) {
+ if (gettime(6) == FEBRUARY || gettime(6) == APRIL) {
+ DelAccRegFromEveryPlayer("#TMW2_LOGINBONUS");
+ $@TMW2_357GDQST=1;
+ }
+ }
end;
OnInit:
+ /*
.login_ref=gettime(5);
.daylength=(60*60*24);
+ */
MOTD_debug_text;
.size = getarraysize($MOTD_Messages$);
.dsize = getarraysize($@Debug_Messages$);