From 176c2101d81d1f76b295998e39830d89a66f50ac Mon Sep 17 00:00:00 2001 From: shadowlady Date: Wed, 24 Nov 2004 08:51:11 +0000 Subject: Fixed repairman prices git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@344 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/merchants/refine.txt | 62 +++++++++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 30 deletions(-) (limited to 'npc/merchants/refine.txt') 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; -- cgit v1.2.3-60-g2f50