From 9891477a3d6f8477e954e4e5b76356b7c2dcf670 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 22 Dec 2018 18:23:01 -0200 Subject: Special Christmas Login Bonus: During 24/12~26/12, you will get a [Bronze Gift]. But only one, so you can spend time with your family %%I --- npc/functions/daily.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'npc/functions/daily.txt') diff --git a/npc/functions/daily.txt b/npc/functions/daily.txt index eb4adb897..0077aecbb 100644 --- a/npc/functions/daily.txt +++ b/npc/functions/daily.txt @@ -98,7 +98,18 @@ function script daily_login_bonus_handler { getexp 0, .@value; dispbottom l("##2Daily login bonus: ##B@@ Job Exp.##b", .@value); } + + // Handle event login bonus + if (gettime(6) == DECEMBER) { + if (!#XMAS_LOGINBONUS && gettime(5) >= 24 && gettime(5) <= 26) { + #XMAS_LOGINBONUS=1; + getitem BronzeGift, 1; + dispbottom "##B##2"+l("Merry Christmas!")+" "+l("You have gained a special login bonus!")+"##b##0"; + } + } + // We're done with daily logins } + //debugmes "[DLBH] Finished: "+#LOGIN_DAY+" ok"; return; } -- cgit v1.2.3-60-g2f50