summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;