diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-06-07 21:49:45 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-06-07 21:49:45 -0300 |
commit | 5153de99ea18dc8e68d7b511703b52f3444c362d (patch) | |
tree | 56d15c9fe773fcf65d32fe0b267f97c4d02bbffb | |
parent | de5fbfedeb073f5f1dfe62abdd1fa83db82c1c98 (diff) | |
download | serverdata-5153de99ea18dc8e68d7b511703b52f3444c362d.tar.gz serverdata-5153de99ea18dc8e68d7b511703b52f3444c362d.tar.bz2 serverdata-5153de99ea18dc8e68d7b511703b52f3444c362d.tar.xz serverdata-5153de99ea18dc8e68d7b511703b52f3444c362d.zip |
Replace the hardcoded value by the variable in the (new) division by zero error.
-rw-r--r-- | npc/025-1/ihclot.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/npc/025-1/ihclot.txt b/npc/025-1/ihclot.txt index 892555291..0880d8c7f 100644 --- a/npc/025-1/ihclot.txt +++ b/npc/025-1/ihclot.txt @@ -66,7 +66,7 @@ // Calculate price .@price=.@lv**3; // Cubic function to determine price. .@price=max(1, .@price/7); - if (.@price < ((50 ** 3) / 7)) Exception("Division by zero: "+.@lv, RB_SPEECH | RB_ISFATAL); + if (.@price < ((.minLevel ** 3) / 7)) Exception("Division by zero: "+.@lv, RB_SPEECH | RB_ISFATAL); mesn; mesq l("Please select the level I should use."); menuint @@ -91,6 +91,7 @@ close; // Perform payment + if (.@price < ((.minLevel ** 3) / 7)) Exception("Division by zero: "+.@lv, RB_SPEECH | RB_ISFATAL); Zeny-=getPriceInt(.@price, .@level); SmithTweakPointsDecrement(); // even if lightbringer. |