summaryrefslogtreecommitdiff
path: root/npc/functions/refine.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-11 18:35:34 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-11 18:35:34 -0300
commitd0bbce20545b042d182054bae52293d914650742 (patch)
treec1bb7ca478b01d40d98208fb98cdff2f58a264e5 /npc/functions/refine.txt
parentdf6803fa128e0ca8bafb24ac6fc2ba668c4fe23b (diff)
downloadserverdata-d0bbce20545b042d182054bae52293d914650742.tar.gz
serverdata-d0bbce20545b042d182054bae52293d914650742.tar.bz2
serverdata-d0bbce20545b042d182054bae52293d914650742.tar.xz
serverdata-d0bbce20545b042d182054bae52293d914650742.zip
You can find so many bugs, just reading the commit...
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!!");