From 34c3948a419d2c50e4d484951cab352c492f76e7 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 22 Jul 2019 21:09:06 -0300 Subject: Do not run the code at all, if you input an amount of zero or less. --- npc/003-8/jhedia.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'npc/003-8/jhedia.txt') 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; -- cgit v1.2.3-60-g2f50