From 710b993847002334324694e55c61ffa16d2e2381 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 1 Jan 2019 22:24:20 -0200 Subject: Handle TMW2 Anniversary, as stated by ANNUAL.MD --- npc/functions/daily.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'npc') diff --git a/npc/functions/daily.txt b/npc/functions/daily.txt index 0077aecbb..b64607db8 100644 --- a/npc/functions/daily.txt +++ b/npc/functions/daily.txt @@ -100,6 +100,18 @@ function script daily_login_bonus_handler { } // Handle event login bonus + if (gettime(6) == JANUARY) { + if (#TMW2_LOGINBONUS != gettime(GETTIME_YEAR) && gettime(5) == 13) { + #TMW2_LOGINBONUS=gettime(GETTIME_YEAR); + getitem StrangeCoin, 10; + // TMW2 Anniversary is project, not server. + // Therefore, contributors get an extra reward + .@m=htget($@CONTRIBUTORS, strtolower(strcharinfo(0)), 0); + if (.@m) + getitem StrangeCoin, max(9, .@m/100)+1; + dispbottom "##B##2"+l("It's TMW2 Project anniversary!")+" "+l("We thank every developer which helped this project thus far!")+"##b##0"; + } + } if (gettime(6) == DECEMBER) { if (!#XMAS_LOGINBONUS && gettime(5) >= 24 && gettime(5) <= 26) { #XMAS_LOGINBONUS=1; -- cgit v1.2.3-60-g2f50