summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-06 06:14:02 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-06 06:14:02 -0300
commit118a46aaddf955ecdca08ea1116e5355ae608a49 (patch)
tree809850e908caadd8dc497d531aebf1a93a278c7e /npc/functions
parent97a808a2ab1c79f56f2920b404d7836bd843bee2 (diff)
downloadserverdata-118a46aaddf955ecdca08ea1116e5355ae608a49.tar.gz
serverdata-118a46aaddf955ecdca08ea1116e5355ae608a49.tar.bz2
serverdata-118a46aaddf955ecdca08ea1116e5355ae608a49.tar.xz
serverdata-118a46aaddf955ecdca08ea1116e5355ae608a49.zip
Daily GP reward is useless, boost it in 25% and bump the minimum.
Diffstat (limited to 'npc/functions')
-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) {