summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-04 23:44:02 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-04 23:44:02 -0300
commit160c48bd59f21f3d74973536a30c72872ae7eb58 (patch)
tree742ff3f410464d0986d29c464fb79cf6d8f2f972 /npc/functions
parentd0ef0ceec6c3e369dbe38df596d975d99e8da99e (diff)
downloadserverdata-160c48bd59f21f3d74973536a30c72872ae7eb58.tar.gz
serverdata-160c48bd59f21f3d74973536a30c72872ae7eb58.tar.bz2
serverdata-160c48bd59f21f3d74973536a30c72872ae7eb58.tar.xz
serverdata-160c48bd59f21f3d74973536a30c72872ae7eb58.zip
Daily login rewards: Boost GP bonus (2x -> 2.5x BLVL, 3x -> 3.5x JLVL)
Improve randomness logic.
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/daily.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/functions/daily.txt b/npc/functions/daily.txt
index cc0cae5ed..e906b8274 100644
--- a/npc/functions/daily.txt
+++ b/npc/functions/daily.txt
@@ -117,17 +117,17 @@ function script daily_login_bonus_handler {
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+=(BaseLevel*2)+rand(JobLevel, JobLevel*3);
+ .@value+=(BaseLevel*5/2)+rand2(JobLevel, JobLevel*7/20);
Zeny=Zeny+.@value;
dispbottom l("##2Daily login bonus: ##B@@ GP##b", .@value);
} else if (#LOGIN_STREAK % 3 == 2) {
- .@value=max(5, rand(0, (#LOGIN_STREAK/4)));
+ .@value=max(5, rand2(0, (#LOGIN_STREAK/4)));
.@value+=(BaseLevel**2);
.@value=(.@value/2)+#LOGIN_STREAK;
getexp .@value, 0;
dispbottom l("##2Daily login bonus: ##B@@ EXP##b", .@value);
} else {
- .@value=max(5, rand(0, (#LOGIN_STREAK/4)));
+ .@value=max(5, rand2(0, (#LOGIN_STREAK/4)));
.@value+=(JobLevel**2);
.@value=(.@value/3)+#LOGIN_STREAK;
getexp 0, .@value;