summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-03-19 18:28:31 -0300
committerJesusaves <cpntb1@ymail.com>2018-03-19 18:28:31 -0300
commit842dafb128c5b8f445f7e1495895a321c5352893 (patch)
treef33ae0f969914a50a23dcf2144a0a241bde00f52 /npc/commands
parent6fd07c6e589c0c06bb35cc414b90dabe5f2a19ea (diff)
downloadserverdata-842dafb128c5b8f445f7e1495895a321c5352893.tar.gz
serverdata-842dafb128c5b8f445f7e1495895a321c5352893.tar.bz2
serverdata-842dafb128c5b8f445f7e1495895a321c5352893.tar.xz
serverdata-842dafb128c5b8f445f7e1495895a321c5352893.zip
Daily login rewards (GP and JExp) are now affected by BaseLevel
Diffstat (limited to 'npc/commands')
-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 7bd84914f..3c17540dd 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, 20;
- dispbottom l("##2 7 Days login bonus: ##B20 Job Exp.##b");
+ getexp 0, max(20, rand(0, BaseLevel));
+ dispbottom l("##2 7 Days login bonus: ##B@@ Job Exp.##b", max(20, rand(0, BaseLevel)));
} 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+20;
- dispbottom l("##2Daily login bonus: ##B20 GP##b");
+ set Zeny, Zeny+max(20, rand(0, BaseLevel));
+ dispbottom l("##2Daily login bonus: ##B@@ GP##b", str(max(20, rand(0, BaseLevel))) );
} else {
- getexp 0, 5;
- dispbottom l("##2Daily login bonus: ##B5 Job Exp.##b");
+ getexp 0, max(5, rand(0, (BaseLevel/4)));
+ dispbottom l("##2Daily login bonus: ##B@@ Job Exp.##b", max(5, rand(0, (BaseLevel/4))));
}
}