summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-01 22:24:20 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-01 22:24:20 -0200
commit710b993847002334324694e55c61ffa16d2e2381 (patch)
tree4530342dc11769e9948507d37516599450023790
parent2074fbe2d0c3cf4c4fcf0d2319073a0332dce7ec (diff)
downloadserverdata-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.txt12
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;