From 3c353478f4c698ef3e494ba8718d20cae2fd1806 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 15 Feb 2019 22:34:35 -0200 Subject: TMW2 Day Login Bonus - 1 Mercenary Boxset ++ (maximum rarity) --- npc/commands/motd.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'npc/commands/motd.txt') 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$); -- cgit v1.2.3-60-g2f50