summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-07-22 21:09:06 -0300
committerJesusaves <cpntb1@ymail.com>2019-07-22 21:09:06 -0300
commit34c3948a419d2c50e4d484951cab352c492f76e7 (patch)
tree28b3a726086be939917713975c6260868f74399c /npc
parent7876fda158c8515bfb43bc6522f4fae688da64c9 (diff)
downloadserverdata-34c3948a419d2c50e4d484951cab352c492f76e7.tar.gz
serverdata-34c3948a419d2c50e4d484951cab352c492f76e7.tar.bz2
serverdata-34c3948a419d2c50e4d484951cab352c492f76e7.tar.xz
serverdata-34c3948a419d2c50e4d484951cab352c492f76e7.zip
Do not run the code at all, if you input an amount of zero or less.
Diffstat (limited to 'npc')
-rw-r--r--npc/003-8/jhedia.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/npc/003-8/jhedia.txt b/npc/003-8/jhedia.txt
index 28e33cf09..b05ae1475 100644
--- a/npc/003-8/jhedia.txt
+++ b/npc/003-8/jhedia.txt
@@ -31,6 +31,9 @@
mesq l("How many ingots do you want to make?");
input .@amount;
+ if (.@amount < 1)
+ close;
+
if (countitem(.@basei) >= .@amount * .@oream && countitem(Coal) >= .@amount * .@coalm && Zeny >= .@price * .@amount) {
inventoryplace .@prize, .@amount;
delitem .@basei, .@amount * .@oream;