summaryrefslogtreecommitdiff
path: root/npc/functions/daily.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/daily.txt')
-rw-r--r--npc/functions/daily.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/npc/functions/daily.txt b/npc/functions/daily.txt
index 4cb242fef..97bdb4499 100644
--- a/npc/functions/daily.txt
+++ b/npc/functions/daily.txt
@@ -116,8 +116,9 @@ function script daily_login_bonus_handler {
getitem StrangeCoin, 1;
dispbottom l("##2 3 Days login bonus: ##B1x @@##b", getitemlink(StrangeCoin));
} else if (#LOGIN_STREAK % 3 == 0) {
- .@value=max(20, rand(0, (#LOGIN_STREAK*2)));
+ .@value=max(20, rand2(#LOGIN_STREAK, #LOGIN_STREAK*2));
.@value+=(BaseLevel*5/2)+rand2(JobLevel, JobLevel*7/20);
+ .@value=.@value * 5 / 4; // Bonus 25%
Zeny=Zeny+.@value;
dispbottom l("##2Daily login bonus: ##B@@ GP##b", .@value);
} else if (#LOGIN_STREAK % 3 == 2) {