summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-03-19 18:34:07 -0300
committerJesusaves <cpntb1@ymail.com>2018-03-19 18:34:07 -0300
commit755a2f1994eec9944df76a4bd019b8c7dc282d28 (patch)
tree421d7cacc8ed5f2295035382259307990c0dd06b /npc
parent842dafb128c5b8f445f7e1495895a321c5352893 (diff)
downloadserverdata-755a2f1994eec9944df76a4bd019b8c7dc282d28.tar.gz
serverdata-755a2f1994eec9944df76a4bd019b8c7dc282d28.tar.bz2
serverdata-755a2f1994eec9944df76a4bd019b8c7dc282d28.tar.xz
serverdata-755a2f1994eec9944df76a4bd019b8c7dc282d28.zip
Replace BaseLevel with #LOGIN_STREAK on daily reward bonuses.
Now they're scalable. But suboptimal.
Diffstat (limited to 'npc')
-rw-r--r--npc/commands/motd.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/npc/commands/motd.txt b/npc/commands/motd.txt
index 3c17540dd..d00ed5785 100644
--- a/npc/commands/motd.txt
+++ b/npc/commands/motd.txt
@@ -211,17 +211,17 @@ OnPCLoginEvent:
getitem StrangeCoin, 2;
dispbottom l("##2 14 Days login bonus: ##B2x @@##b", getitemlink(StrangeCoin));
} else if (#LOGIN_STREAK == 7) {
- getexp 0, max(20, rand(0, BaseLevel));
- dispbottom l("##2 7 Days login bonus: ##B@@ Job Exp.##b", max(20, rand(0, BaseLevel)));
+ getexp 0, max(20, rand(0, #LOGIN_STREAK));
+ dispbottom l("##2 7 Days login bonus: ##B@@ Job Exp.##b", max(20, rand(0, #LOGIN_STREAK)));
} else if (.login_ref % 3 == 0) {
getitem StrangeCoin, 1;
dispbottom l("##2Daily login bonus: ##B1x @@##b", getitemlink(StrangeCoin));
} else if (.login_ref % 3 == 1) {
- set Zeny, Zeny+max(20, rand(0, BaseLevel));
- dispbottom l("##2Daily login bonus: ##B@@ GP##b", str(max(20, rand(0, BaseLevel))) );
+ set Zeny, Zeny+max(20, rand(0, (#LOGIN_STREAK*2)));
+ dispbottom l("##2Daily login bonus: ##B@@ GP##b", str( max(20, rand(0, (#LOGIN_STREAK*2))) ) );
} else {
- getexp 0, max(5, rand(0, (BaseLevel/4)));
- dispbottom l("##2Daily login bonus: ##B@@ Job Exp.##b", max(5, rand(0, (BaseLevel/4))));
+ getexp 0, max(5, rand(0, (#LOGIN_STREAK/4)));
+ dispbottom l("##2Daily login bonus: ##B@@ Job Exp.##b", max(5, rand(0, (#LOGIN_STREAK/4))));
}
}