summaryrefslogtreecommitdiff
path: root/npc/functions/refine.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/refine.txt')
-rw-r--r--npc/functions/refine.txt5
1 files 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!!");