diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-22 18:23:01 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-22 18:23:01 -0200 |
commit | 9891477a3d6f8477e954e4e5b76356b7c2dcf670 (patch) | |
tree | 0ffc758ee8d1933b62e7b781707f0ffea28e47a4 | |
parent | 83c173d28418b8d951769abdb53b6f8a1c257dca (diff) | |
download | serverdata-9891477a3d6f8477e954e4e5b76356b7c2dcf670.tar.gz serverdata-9891477a3d6f8477e954e4e5b76356b7c2dcf670.tar.bz2 serverdata-9891477a3d6f8477e954e4e5b76356b7c2dcf670.tar.xz serverdata-9891477a3d6f8477e954e4e5b76356b7c2dcf670.zip |
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
-rw-r--r-- | npc/commands/event.txt | 1 | ||||
-rw-r--r-- | npc/functions/daily.txt | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt index 44a00192a..cc72541fc 100644 --- a/npc/commands/event.txt +++ b/npc/commands/event.txt @@ -133,6 +133,7 @@ function script GlobalEventMenu { DelItemFromEveryPlayer(OpenedChristmasBox); $XMAS_MONEY=0; // Golbarez $XMAS_GIFTS=0; // Chief + DelAccRegFromEveryPlayer("#XMAS_LOGINBONUS"); } 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; } |