summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-03-05 14:09:07 -0300
committerJesusaves <cpntb1@ymail.com>2020-03-05 14:09:07 -0300
commit2338e6ae43c5f3cc820514a82a4e8c7cbabadde0 (patch)
treee43b7be64a7ec477f11916ef2c2c17f36987626c /npc/commands
parentd937e9d947a16095e09aa98fda3c9c7eec9cfc4a (diff)
downloadserverdata-2338e6ae43c5f3cc820514a82a4e8c7cbabadde0.tar.gz
serverdata-2338e6ae43c5f3cc820514a82a4e8c7cbabadde0.tar.bz2
serverdata-2338e6ae43c5f3cc820514a82a4e8c7cbabadde0.tar.xz
serverdata-2338e6ae43c5f3cc820514a82a4e8c7cbabadde0.zip
We should use $BCONFB_ instead of rateReal() functions when setting variable
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/rate-management.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/commands/rate-management.txt b/npc/commands/rate-management.txt
index bf0135436..928eae5c6 100644
--- a/npc/commands/rate-management.txt
+++ b/npc/commands/rate-management.txt
@@ -21,7 +21,7 @@
stopnpctimer;
.hours = 0;
.max_hours = 0;
- .current_rate = expRateReal();
+ .current_rate = $BCONFB_EXPR;
setbattleflag("base_exp_rate", expRateReal());
setbattleflag("job_exp_rate", expRateReal());
charcommand("@reloadmobdb"); // this is on purpose (callable without RID)
@@ -84,7 +84,7 @@ OnCall:
} else if (.@new_rate == 0 && .@special$ == "") {
// get current exp rate
- if (.current_rate == expRateReal()) {
+ if (.current_rate == $BCONFB_EXPR) {
atcommand("@rates");
dispbottom col(l("Usage of @exprate without argument is deprecated, please use \"@rates\" instead."), 1);
} else {
@@ -161,7 +161,7 @@ OnInit:
bindatcmd "exprate", "@exprate::OnCall", 60, 80, 1; // change exp rate
// WARNING: using @reloadscript will change the "original" value
- .current_rate = expRateReal();
+ .current_rate = $BCONFB_EXPR;
// XXX: maybe in the future:
//.original_job_rate = getbattleflag("base_job_rate");
@@ -210,7 +210,7 @@ OnInheirtedReload:
stopnpctimer;
.hours = 0;
.max_hours = 0;
- .current_rate = dropRateReal();
+ .current_rate = $BCONFB_DROP;
setbattleflag("item_rate_common", dropRateReal());
setbattleflag("item_rate_common_boss", dropRateReal());
setbattleflag("item_rate_heal", dropRateReal());
@@ -312,7 +312,7 @@ OnInit:
bindatcmd "droprate", "@droprate::OnCall", 80, 80, 1; // change drop rate
// WARNING: using @reloadscript will change the "original" value, use @reloadbattleconf before!
- .current_rate = dropRateReal();
+ .current_rate = $BCONFB_DROP;
//force_refreshall();
end;