diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-25 13:34:26 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-25 13:34:26 -0300 |
commit | 1b12ff618212c14daaf7d98e0d112a69dfd9ac41 (patch) | |
tree | 6661c4b07f554a12ccc7e17d32fa0033cf8847c4 /npc/commands/motd.txt | |
parent | 760a49343ee7d8bca0bbcc1799e4457c59948c98 (diff) | |
download | serverdata-1b12ff618212c14daaf7d98e0d112a69dfd9ac41.tar.gz serverdata-1b12ff618212c14daaf7d98e0d112a69dfd9ac41.tar.bz2 serverdata-1b12ff618212c14daaf7d98e0d112a69dfd9ac41.tar.xz serverdata-1b12ff618212c14daaf7d98e0d112a69dfd9ac41.zip |
Fix bugs at daily rewards
Diffstat (limited to 'npc/commands/motd.txt')
-rw-r--r-- | npc/commands/motd.txt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/npc/commands/motd.txt b/npc/commands/motd.txt index d0505e89e..7a4f65576 100644 --- a/npc/commands/motd.txt +++ b/npc/commands/motd.txt @@ -198,17 +198,20 @@ 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, #LOGIN_STREAK)); - dispbottom l("##2 7 Days login bonus: ##B@@ Job Exp.##b", max(20, rand(0, #LOGIN_STREAK))); + .@value=max(20, rand(0, (#LOGIN_STREAK))); + getexp 0, .@value; + dispbottom l("##2 7 Days login bonus: ##B@@ Job Exp.##b", .@value); } 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, (#LOGIN_STREAK*2))); - dispbottom l("##2Daily login bonus: ##B@@ GP##b", str( max(20, rand(0, (#LOGIN_STREAK*2))) ) ); + .@value=max(20, rand(0, (#LOGIN_STREAK*2))); + Zeny=Zeny+.@value; + dispbottom l("##2Daily login bonus: ##B@@ GP##b", str( .@value ) ); } else { - 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)))); + .@value=max(5, rand(0, (#LOGIN_STREAK/4))); + getexp 0, .@value; + dispbottom l("##2Daily login bonus: ##B@@ Job Exp.##b", .@value); } } |