diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-01-01 22:24:20 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-01-01 22:24:20 -0200 |
commit | 710b993847002334324694e55c61ffa16d2e2381 (patch) | |
tree | 4530342dc11769e9948507d37516599450023790 | |
parent | 2074fbe2d0c3cf4c4fcf0d2319073a0332dce7ec (diff) | |
download | serverdata-710b993847002334324694e55c61ffa16d2e2381.tar.gz serverdata-710b993847002334324694e55c61ffa16d2e2381.tar.bz2 serverdata-710b993847002334324694e55c61ffa16d2e2381.tar.xz serverdata-710b993847002334324694e55c61ffa16d2e2381.zip |
Handle TMW2 Anniversary, as stated by ANNUAL.MD
-rw-r--r-- | npc/functions/daily.txt | 12 |
1 files changed, 12 insertions, 0 deletions
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; |