summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorshadowlady <shadowlady@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-24 08:51:11 +0000
committershadowlady <shadowlady@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-24 08:51:11 +0000
commit176c2101d81d1f76b295998e39830d89a66f50ac (patch)
tree82f9337f8c8dab017aefd3e302d487e0d458f2e1 /npc
parentc9bca17f52e473aa86e043684404a0f57d11cee8 (diff)
downloadhercules-176c2101d81d1f76b295998e39830d89a66f50ac.tar.gz
hercules-176c2101d81d1f76b295998e39830d89a66f50ac.tar.bz2
hercules-176c2101d81d1f76b295998e39830d89a66f50ac.tar.xz
hercules-176c2101d81d1f76b295998e39830d89a66f50ac.zip
Fixed repairman prices
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@344 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc')
-rw-r--r--npc/merchants/refine.txt62
1 files changed, 32 insertions, 30 deletions
diff --git a/npc/merchants/refine.txt b/npc/merchants/refine.txt
index bb2796357..b3e354e68 100644
--- a/npc/merchants/refine.txt
+++ b/npc/merchants/refine.txt
@@ -19,6 +19,7 @@
//= Corrected zeny subtraction thx to jpnmania77.[kobra_k88]
//= 1.3a Temporary corrected an expliot. Need to check sources
//= to fully fix bug [Shinigami]
+//= Fixed repairman prices [shadowlady]
//============================================================
@@ -722,6 +723,7 @@ morocc_in.gat,71,40,2 script Repairman 99,{
//= Equipment Repair Function
//============================================================
function script repairmain {
+ set @repairprice,5000;
mes "[" + @name$ + "]";
mes "I am the Repair Smith and I can repair any Arms you want.";
mes "Tell me which Equipment you want to repair.";
@@ -744,121 +746,121 @@ function script repairmain {
REPAIR1:
mes "[" + @name$ + "]";
mes "You're gonna repair " + getitemname(@broken1) + ".";
- mes "To repair this, I need ^ff9999One Steel^000000, and 10,000 Zeny.";
+ mes "To repair this, I need ^ff9999One Steel^000000, and @repairprice Zeny.";
mes "Continue?";
next;
menu "Yes",-,"No",L_CANCEL_2;
- if (countitem(999) < 1 || Zeny < 10000) goto L_CANCEL_1;
+ if (countitem(999) < 1 || Zeny < @repairprice) goto L_CANCEL_1;
delitem 999,1;
- set Zeny,Zeny-10000;
+ set Zeny,Zeny-@repairprice;
repair(1);
goto L_CLOSE;
REPAIR2:
mes "[" + @name$ + "]";
mes "You're gonna repair " + getitemname(@broken1) + ".";
- mes "To repair this, I need ^ff9999One Steel^000000, and 10,000 Zeny.";
+ mes "To repair this, I need ^ff9999One Steel^000000, and @repairprice Zeny.";
mes "Continue?";
next;
menu "Yes",-,"No",L_CANCEL_2;
- if (countitem(999) < 1 || Zeny < 10000) goto L_CANCEL_1;
+ if (countitem(999) < 1 || Zeny < @repairprice) goto L_CANCEL_1;
delitem 999,1;
- set Zeny,Zeny-10000;
+ set Zeny,Zeny-@repairprice;
repair(2);
goto L_CLOSE;
REPAIR3:
mes "[" + @name$ + "]";
mes "You're gonna repair " + getitemname(@broken1) + ".";
- mes "To repair this, I need ^ff9999One Steel^000000, and 10,000 Zeny.";
+ mes "To repair this, I need ^ff9999One Steel^000000, and @repairprice Zeny.";
mes "Continue?";
next;
menu "Yes",-,"No",L_CANCEL_2;
- if (countitem(999) < 1 || Zeny < 10000) goto L_CANCEL_1;
+ if (countitem(999) < 1 || Zeny < @repairprice) goto L_CANCEL_1;
delitem 999,1;
- set Zeny,Zeny-10000;
+ set Zeny,Zeny-@repairprice;
repair(3);
goto L_CLOSE;
REPAIR4:
mes "[" + @name$ + "]";
mes "You're gonna repair " + getitemname(@broken1) + ".";
- mes "To repair this, I need ^ff9999One Steel^000000, and 10,000 Zeny.";
+ mes "To repair this, I need ^ff9999One Steel^000000, and @repairprice Zeny.";
mes "Continue?";
next;
menu "Yes",-,"No",L_CANCEL_2;
- if (countitem(999) < 1 || Zeny < 10000) goto L_CANCEL_1;
+ if (countitem(999) < 1 || Zeny < @repairprice) goto L_CANCEL_1;
delitem 999,1;
- set Zeny,Zeny-10000;
+ set Zeny,Zeny-@repairprice;
repair(4);
goto L_CLOSE;
REPAIR5:
mes "[" + @name$ + "]";
mes "You're gonna repair " + getitemname(@broken1) + ".";
- mes "To repair this, I need ^ff9999One Steel^000000, and 10,000 Zeny.";
+ mes "To repair this, I need ^ff9999One Steel^000000, and @repairprice Zeny.";
mes "Continue?";
next;
menu "Yes",-,"No",L_CANCEL_2;
- if (countitem(999) < 1 || Zeny < 10000) goto L_CANCEL_1;
+ if (countitem(999) < 1 || Zeny < @repairprice) goto L_CANCEL_1;
delitem 999,1;
- set Zeny,Zeny-10000;
+ set Zeny,Zeny-@repairprice;
repair(5);
goto L_CLOSE;
REPAIR6:
mes "[" + @name$ + "]";
mes "You're gonna repair " + getitemname(@broken1) + ".";
- mes "To repair this, I need ^ff9999One Steel^000000, and 10,000 Zeny.";
+ mes "To repair this, I need ^ff9999One Steel^000000, and @repairprice Zeny.";
mes "Continue?";
next;
menu "Yes",-,"No",L_CANCEL_2;
- if (countitem(999) < 1 || Zeny < 10000) goto L_CANCEL_1;
+ if (countitem(999) < 1 || Zeny < @repairprice) goto L_CANCEL_1;
delitem 999,1;
- set Zeny,Zeny-10000;
+ set Zeny,Zeny-@repairprice;
repair(6);
goto L_CLOSE;
REPAIR7:
mes "[" + @name$ + "]";
mes "You're gonna repair " + getitemname(@broken1) + ".";
- mes "To repair this, I need ^ff9999One Steel^000000, and 10,000 Zeny.";
+ mes "To repair this, I need ^ff9999One Steel^000000, and @repairprice Zeny.";
mes "Continue?";
next;
menu "Yes",-,"No",L_CANCEL_2;
- if (countitem(999) < 1 || Zeny < 10000) goto L_CANCEL_1;
+ if (countitem(999) < 1 || Zeny < @repairprice) goto L_CANCEL_1;
delitem 999,1;
- set Zeny,Zeny-10000;
+ set Zeny,Zeny-@repairprice;
repair(7);
goto L_CLOSE;
REPAIR8:
mes "[" + @name$ + "]";
mes "You're gonna repair " + getitemname(@broken1) + ".";
- mes "To repair this, I need ^ff9999One Steel^000000, and 10,000 Zeny.";
+ mes "To repair this, I need ^ff9999One Steel^000000, and @repairprice Zeny.";
mes "Continue?";
next;
menu "Yes",-,"No",L_CANCEL_2;
- if (countitem(999) < 1 || Zeny < 10000) goto L_CANCEL_1;
+ if (countitem(999) < 1 || Zeny < @repairprice) goto L_CANCEL_1;
delitem 999,1;
- set Zeny,Zeny-10000;
+ set Zeny,Zeny-@repairprice;
repair(8);
goto L_CLOSE;
REPAIR9:
mes "[" + @name$ + "]";
mes "You're gonna repair " + getitemname(@broken1) + ".";
- mes "To repair this, I need ^ff9999One Steel^000000, and 10,000 Zeny.";
+ mes "To repair this, I need ^ff9999One Steel^000000, and @repairprice Zeny.";
mes "Continue?";
next;
menu "Yes",-,"No",L_CANCEL_2;
- if (countitem(999) < 1 || Zeny < 10000) goto L_CANCEL_1;
+ if (countitem(999) < 1 || Zeny < @repairprice) goto L_CANCEL_1;
delitem 999,1;
- set Zeny,Zeny-10000;
+ set Zeny,Zeny-@repairprice;
repair(9);
goto L_CLOSE;
REPAIR10:
mes "[" + @name$ + "]";
mes "You're gonna repair " + getitemname(@broken1) + ".";
- mes "To repair this, I need ^ff9999One Steel^000000, and 10,000 Zeny.";
+ mes "To repair this, I need ^ff9999One Steel^000000, and @repairprice Zeny.";
mes "Continue?";
next;
menu "Yes",-,"No",L_CANCEL_2;
- if (countitem(999) < 1 || Zeny < 10000) goto L_CANCEL_1;
+ if (countitem(999) < 1 || Zeny < @repairprice) goto L_CANCEL_1;
delitem 999,1;
- set Zeny,Zeny-10000;
+ set Zeny,Zeny-@repairprice;
repair(10);
goto L_CLOSE;