summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-09-02 18:38:18 -0300
committerJesusaves <cpntb1@ymail.com>2018-09-02 18:38:18 -0300
commit442511b34a9f789b07e9fc18da524fcf148f0647 (patch)
tree599a8e99182c7cec41f90e19005527b4e1b9ba4b
parent0ee44b47c947a4138bde1eeb5114c0cb1fe19b68 (diff)
downloadserverdata-442511b34a9f789b07e9fc18da524fcf148f0647.tar.gz
serverdata-442511b34a9f789b07e9fc18da524fcf148f0647.tar.bz2
serverdata-442511b34a9f789b07e9fc18da524fcf148f0647.tar.xz
serverdata-442511b34a9f789b07e9fc18da524fcf148f0647.zip
Sanitize Daily Rewards
-rw-r--r--npc/commands/motd.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/npc/commands/motd.txt b/npc/commands/motd.txt
index 5e4778b2d..e6cafa342 100644
--- a/npc/commands/motd.txt
+++ b/npc/commands/motd.txt
@@ -244,6 +244,7 @@ OnPCLoginEvent:
} else if (.login_ref % 3 == 0) {
.@value=max(5, rand(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 if (.login_ref % 3 == 1) {
@@ -254,6 +255,7 @@ OnPCLoginEvent:
} else {
.@value=max(5, rand(0, (#LOGIN_STREAK/4)));
.@value+=(JobLevel**2);
+ .@value=(.@value/3)+#LOGIN_STREAK;
getexp 0, .@value;
dispbottom l("##2Daily login bonus: ##B@@ Job Exp.##b", .@value);
}