summaryrefslogtreecommitdiff
path: root/npc/functions/daily.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-11-01 11:42:57 -0300
committerJesusaves <cpntb1@ymail.com>2019-11-01 11:42:57 -0300
commit72fbf8ee6710ac311d7876519b5dcafe010e2a97 (patch)
treee65955542b0e8ccb1a1db1439e53a4bf746c1746 /npc/functions/daily.txt
parent5399d43869e3b07e133e02c46e9523fd4430f1a6 (diff)
downloadserverdata-72fbf8ee6710ac311d7876519b5dcafe010e2a97.tar.gz
serverdata-72fbf8ee6710ac311d7876519b5dcafe010e2a97.tar.bz2
serverdata-72fbf8ee6710ac311d7876519b5dcafe010e2a97.tar.xz
serverdata-72fbf8ee6710ac311d7876519b5dcafe010e2a97.zip
Rewrite monthly special gift
Diffstat (limited to 'npc/functions/daily.txt')
-rw-r--r--npc/functions/daily.txt62
1 files changed, 41 insertions, 21 deletions
diff --git a/npc/functions/daily.txt b/npc/functions/daily.txt
index ab97b038c..bcd25306b 100644
--- a/npc/functions/daily.txt
+++ b/npc/functions/daily.txt
@@ -57,29 +57,49 @@ function script daily_login_bonus_handler {
dispbottom l("##2 @@ Days login bonus: ##B2x @@, 1x @@##b", #LOGIN_STREAK, getitemlink(StrangeCoin), getitemlink(CasinoCoins));
} else if (#LOGIN_STREAK == 27) {
#LOGIN_ALLTIME+=1;
- // Your prize is based on season
- switch (season()) {
- case AUTUMN:
- .@prize=ElixirOfLife; break;
- case WINTER:
- .@prize=SilverGift; break;
- case SPRING:
- .@prize=MercBoxB; break;
- case SUMMER:
- .@prize=RightEyePatch; break;
+ .@am=1;
+ switch (#LOGIN_ALLTIME % 12) {
+ case 1:
+ if (#LOGIN_ALLTIME == 1)
+ .@prize=RightEyePatch;
+ else
+ .@prize=SilverGift;
+ break;
+ case 2:
+ .@prize=ArcmageBoxset; break;
+ case 3:
+ .@prize=MercBoxA; break;
+ case 4:
+ .@prize=AncientBlueprint; break;
+ case 5:
+ .@prize=StrangeCoin; .@am=120; break;
+ case 6:
+ if (#LOGIN_ALLTIME == 6) {
+ dispbottom l("CONGRATULATIONS! For a semester worth of logins, you're getting a pet!");
+ .@prize=PiouEgg; .@am=0;
+ makepet Piou;
+ } else {
+ .@prize=GoldenGift;
+ }
+ break;
+ case 7:
+ .@prize=GoldenGift; break;
+ case 8:
+ .@prize=MercBoxB; break;
+ case 9:
+ .@prize=PrismGift; break;
+ case 10:
+ .@prize=StrangeCoin; .@am=150; break;
+ case 11:
+ .@prize=MercBoxC; break;
+ case 0:
+ .@prize=MysteriousFruit; break;
+ default:
+ .@prize=ElixirOfLife; break;
}
- // Some special cases
- if (#LOGIN_ALLTIME == 3)
- .@prize=GoldenGift;
- if (#LOGIN_ALLTIME == 8)
- .@prize=PrismGift;
- if (#LOGIN_ALLTIME == 12) {
- dispbottom l("CONGRATULATIONS! For a year worth of logins, you're getting a pet!");
- makepet Piou; // we must replace this before August 2019. (r18 probably)
- }
-
- getitem .@prize, 1;
+ if (.@am)
+ getitem .@prize, .@am;
dispbottom l("##2 27 Days login bonus: ##B1x @@##b", getitemlink(.@prize));
} else if (#LOGIN_STREAK == 21) {
getitem BronzeGift, 1;