summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
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;