From 2338e6ae43c5f3cc820514a82a4e8c7cbabadde0 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 5 Mar 2020 14:09:07 -0300 Subject: We should use $BCONFB_ instead of rateReal() functions when setting variable --- npc/commands/rate-management.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'npc/commands') 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; -- cgit v1.2.3-60-g2f50