From d0bbce20545b042d182054bae52293d914650742 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 11 Jul 2018 18:35:34 -0300 Subject: You can find so many bugs, just reading the commit... --- npc/functions/refine.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/npc/functions/refine.txt b/npc/functions/refine.txt index a48c13e9c..59a4b9d5f 100644 --- a/npc/functions/refine.txt +++ b/npc/functions/refine.txt @@ -194,9 +194,9 @@ function script repairMaster { if (.@price < 100) .@price=100; mesn; - mesq l("I can refine this for you. Just pay me @@ GP and a @@. It'll take no time at all!", .@price, getitemlink(IronIngot)); + mesq l("I can fix this for you. Just pay me @@ GP and a @@. It'll take no time at all!", .@price, getitemlink(IronIngot)); next; - if (askyesno() != ASK_YES || Zeny < .@price) { + if (Zeny < .@price || countitem(IronIngot) < 1 || askyesno() != ASK_YES) { mes ""; mesn; mesq l("Ahh, that's a pity... Well, just talk to me with enough money and I'll gladly fix that for you! %%0"); @@ -210,6 +210,7 @@ function script repairMaster { close; } Zeny=Zeny-.@price; + delitem IronIngot, 1; repair(1); mesn; mesq l("Here, sparking new! Nice!!"); -- cgit v1.2.3-70-g09d2