summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-02-15 22:34:35 -0200
committerJesusaves <cpntb1@ymail.com>2019-02-15 22:34:35 -0200
commit3c353478f4c698ef3e494ba8718d20cae2fd1806 (patch)
treeb00acbd1f7ccd14ddaa2358668160fcbbcda56c4 /npc/commands
parent4b63ffa8d9832b7cece71f9ee16cc593c1b39c1c (diff)
downloadserverdata-3c353478f4c698ef3e494ba8718d20cae2fd1806.tar.gz
serverdata-3c353478f4c698ef3e494ba8718d20cae2fd1806.tar.bz2
serverdata-3c353478f4c698ef3e494ba8718d20cae2fd1806.tar.xz
serverdata-3c353478f4c698ef3e494ba8718d20cae2fd1806.zip
TMW2 Day Login Bonus - 1 Mercenary Boxset ++ (maximum rarity)
Diffstat (limited to 'npc/commands')
-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$);