From 39e151b4e21bd73fb6d0d3be03994fc187ed583d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 26 Jul 2020 01:50:50 -0300 Subject: Announce when it is the International Chocolate Day. Otherwise, the event will be missed. --- npc/functions/daily.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'npc/functions/daily.txt') diff --git a/npc/functions/daily.txt b/npc/functions/daily.txt index 9262fcda3..cc0cae5ed 100644 --- a/npc/functions/daily.txt +++ b/npc/functions/daily.txt @@ -163,6 +163,13 @@ function script daily_login_bonus_handler { dispbottom "##B##2"+l("It's Jesusalva's anniversary!")+" "+l("Also, Summer just started. Why not taking this opportunity to go Treasure Hunting?!")+"##b##0"; } } + if (gettime(6) == JULY) { + if (#TMW2_LOGINBONUS != gettime(GETTIME_YEAR) && gettime(5) == 7) { + #TMW2_LOGINBONUS=gettime(GETTIME_YEAR); + getitem ChocolateBar, 1; + dispbottom "##B##2"+l("It's International Chocolate Day!")+"##b "+l("All monsters may drop chocolate during this period. And here is one for you!")+"##0"; + } + } if (gettime(6) == OCTOBER) { if (#TMW2_LOGINBONUS != gettime(GETTIME_YEAR) && gettime(5) == 1) { #TMW2_LOGINBONUS=gettime(GETTIME_YEAR); -- cgit v1.2.3-70-g09d2