summaryrefslogtreecommitdiff
path: root/npc/merchants/refine.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/merchants/refine.txt')
-rw-r--r--npc/merchants/refine.txt244
1 files changed, 122 insertions, 122 deletions
diff --git a/npc/merchants/refine.txt b/npc/merchants/refine.txt
index da51dee3d..823fbea66 100644
--- a/npc/merchants/refine.txt
+++ b/npc/merchants/refine.txt
@@ -3,45 +3,43 @@
//===== By: ==================================================
//= Syrus22 (1.1) dafide18 (1.4) Skotlex (1.5)
//===== Current Version: =====================================
-//= 3.2a
-//===== Compatible With: =====================================
-//= Hercules Git
+//= 3.3
//===== Description: =========================================
//= Refining NPCs and Metal Salesmen.
//===== Additional Comments: =================================
-//= 1.0 - by A bunch of people!
-//= Syrus22 - Completely redid the script using functions... also
-//= added the option for auto safe refining and multiple refining.
-//= 1.1 - Negative input bug fixed [Lupus]
-//= 1.2 - Added additional reparimen in morroc and payon. Added
-//= Christopher the blacksmith in Geffen. Edited some dialogue [kobra_k88]
-//= 1.3 - New Payon Locations [Darkchild]
-//= Corrected zeny subtraction thx to jpnmania77.[kobra_k88]
-//= 1.3a - Temporary corrected an exploit. Need to check sources
-//= to fully fix bug [Shinigami]
-//= Fixed repairman prices [shadowlady]
-//= Fixed bug that skips requirements thanks to sir_loon [massdriller]
-//= Fixed itemid error thanks to -Vitamin- [massdriller]
-//= 1.4 - check again item in refining procedure to avoid
-//= hacker that can change item [dafide18]
-//= 1.5 - Fixed crashing due to badly used callfunc's [Skotlex]
-// Lupus, don't rollback this important fix again! >.<
-//= 1.5a - Corrected an unneeded callfunc, fixed the anti-bot
-//= exploit ruining the safe refine loop. [Skotlex]
-//= 1.5b - Fixed Spelling mistakes. [Nexon]
-//= 1.6 - Replaced all breaks for ends as per the new script engine [Skotlex]
-//= 1.7 - Added Einbroch Refiners (Custom names ^^;) and a duplicated BS Shop. [Poki#3]
-//= 1.8 - Added Lighthalzen Refiners (Custom names again ^^;) [Poki#3]
-//= 1.8a - Fixed wrong indication thanks to NeoSaro [Lupus]
-//= 1.9 - Rewrote repairman, removed the Steel from repair cost [DracoRPG]
-//= 2.0 - Fixed missed equppment presence check. Thx2 Coltaro [Lupus]
-//= 2.0a - Added weight checks thanks to Neouni [Playtester]
-//= 2.0b - Fixed the names of Lighthalzen and Einbroch refiners thanks to Maud_Dib [Kargha]
-//= 2.1 - Removed Duplicates [Silent]
-//= 2.2 - Changed name from "Emvertacon" to "Emveretarcon". [Samuray22]
-// - Thanks to Barron-Monster.
-//= 2.2b - Changed name from "Pharacon" to "Phracon". [Samuray22]
-// - Thanks to Barron-Monster.
+//= 1.0 by A bunch of people!
+//= Syrus22 - Completely redid the script using functions... also
+//= added the option for auto safe refining and multiple refining.
+//= 1.1 Negative input bug fixed [Lupus]
+//= 1.2 Added additional reparimen in morroc and payon. Added
+//= Christopher the blacksmith in Geffen. Edited some dialogue [kobra_k88]
+//= 1.3 New Payon Locations [Darkchild]
+//= Corrected zeny subtraction thx to jpnmania77.[kobra_k88]
+//= 1.3a Temporary corrected an exploit. Need to check sources
+//= to fully fix bug [Shinigami]
+//= Fixed repairman prices [shadowlady]
+//= Fixed bug that skips requirements thanks to sir_loon [massdriller]
+//= Fixed itemid error thanks to -Vitamin- [massdriller]
+//= 1.4 check again item in refining procedure to avoid
+//= hacker that can change item [dafide18]
+//= 1.5 Fixed crashing due to badly used callfunc's [Skotlex]
+//= Lupus, don't rollback this important fix again! >.<
+//= 1.5a Corrected an unneeded callfunc, fixed the anti-bot
+//= exploit ruining the safe refine loop. [Skotlex]
+//= 1.5b Fixed Spelling mistakes. [Nexon]
+//= 1.6 Replaced all breaks for ends as per the new script engine [Skotlex]
+//= 1.7 Added Einbroch Refiners (Custom names ^^;) and a duplicated BS Shop. [Poki#3]
+//= 1.8 Added Lighthalzen Refiners (Custom names again ^^;) [Poki#3]
+//= 1.8a Fixed wrong indication thanks to NeoSaro [Lupus]
+//= 1.9 Rewrote repairman, removed the Steel from repair cost [DracoRPG]
+//= 2.0 Fixed missed equppment presence check. Thx2 Coltaro [Lupus]
+//= 2.0a Added weight checks thanks to Neouni [Playtester]
+//= 2.0b Fixed the names of Lighthalzen and Einbroch refiners thanks to Maud_Dib [Kargha]
+//= 2.1 Removed Duplicates [Silent]
+//= 2.2 Changed name from "Emvertacon" to "Emveretarcon". [Samuray22]
+//= Thanks to Barron-Monster.
+//= 2.2b Changed name from "Pharacon" to "Phracon". [Samuray22]
+//= Thanks to Barron-Monster.
//= 2.3 Corrected NPC names to fall within proper restrictions. [L0ne_W0lf]
//= 2.4 Updated Refiner function. cleaner, and less dated. [L0ne_w0lf]
//= 2.5 Rather large update to the refiner and merchants. :D [L0ne_W0lf]
@@ -56,15 +54,16 @@
//= 2.8a Small bugfix. (bugreport:2418) [Paradox924X]
//= 2.9 Moved Morroc repairman to Morroc Ruins. [L0ne_W0lf]
//= 3.0 Updated several NPC names and locations. [Xantara]
-// Added WoE map Refiners.
+//= Added WoE map Refiners.
//= 3.1 Added the new refinement & Ore creation NPC's for +11 and above Refinement. [Masao]
//= 3.2 Moved some scripts to Renewal file, other minor changes. [Euphy]
//= 3.2a Added 'disable_items' command. [Euphy]
+//= 3.3 Some official script updates. [Euphy]
//============================================================
// Christopher: Geffen Blacksmith
//============================================================
-geffen_in,110,172,0 script Christopher#1 63,{
+geffen_in,110,172,0 script Christopher#1 1_M_SMITH,{
mes "[Christopher Guillenrow]";
mes "Welcome to Christopher's Workshop. Ye can get all yer stuff for forging here. What business";
mes "brings ye to me?";
@@ -82,7 +81,7 @@ geffen_in,110,172,0 script Christopher#1 63,{
close;
}
getitem 986,1; // Anvil
- set Zeny,Zeny-30000;
+ Zeny -= 30000;
mes "[Christopher Guillenrow]";
mes "This is the cheapest one, but efficient enough to forge most items. Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -93,7 +92,7 @@ geffen_in,110,172,0 script Christopher#1 63,{
close;
}
getitem 987,1; // Oridecon_Anvil
- set Zeny,Zeny-120000;
+ Zeny -= 120000;
mes "[Christopher Guillenrow]";
mes "Aye, friend ye have an eye for the anvil. This must be the proper anvil for a Blacksmith, eh? Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -104,7 +103,7 @@ geffen_in,110,172,0 script Christopher#1 63,{
close;
}
getitem 988,1; // Golden_Anvil
- set Zeny,Zeny-300000;
+ Zeny -= 300000;
mes "[Christopher Guillenrow]";
mes "This one is the best among all me stuffs in me workshop! With this, ye can rule the Blacksmith world! Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -157,7 +156,7 @@ geffen_in,110,172,0 script Christopher#1 63,{
close;
}
getitem 612,.@input; // Portable_Furnace
- set Zeny,Zeny-.@sell;
+ Zeny -= .@sell;
mes "[Christopher Guillenrow]";
mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -168,7 +167,7 @@ geffen_in,110,172,0 script Christopher#1 63,{
close;
}
getitem 613,1; // Iron_Hammer
- set Zeny,Zeny-1000;
+ Zeny -= 1000;
mes "[Christopher Guillenrow]";
mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -179,7 +178,7 @@ geffen_in,110,172,0 script Christopher#1 63,{
close;
}
getitem 614,1; // Golden_Hammer
- set Zeny,Zeny-3000;
+ Zeny -= 3000;
mes "[Christopher Guillenrow]";
mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -190,7 +189,7 @@ geffen_in,110,172,0 script Christopher#1 63,{
close;
}
getitem 615,1; // Oridecon_Hammer
- set Zeny,Zeny-5000;
+ Zeny -= 5000;
mes "[Christopher Guillenrow]";
mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -238,7 +237,7 @@ geffen_in,110,172,0 script Christopher#1 63,{
close;
}
getitem 1010,.@input; // Phracon
- set Zeny,Zeny-.@sell;
+ Zeny -= .@sell;
mes "[Christopher Guillenrow]";
mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need.";
close;
@@ -276,7 +275,7 @@ geffen_in,110,172,0 script Christopher#1 63,{
close;
}
getitem 1011,.@input; // Emveretarcon
- set Zeny,Zeny-.@sell;
+ Zeny -= .@sell;
mes "[Christopher Guillenrow]";
mes "Thank ye fer shopping at me workshop. Feel free to come anytime, whenever ye need, whenever ye want.";
close;
@@ -330,13 +329,13 @@ geffen_in,110,172,0 script Christopher#1 63,{
// Paul Spanner: Einbroch Blacksmith Supplier
//============================================================
-ein_in01,38,29,0 script Paul Spanner 63,{
+ein_in01,38,29,0 script Paul Spanner 1_M_SMITH,{
if (checkweight(1201,1) == 0) {
mes "- Wait a minute !! -";
mes "- Currently you're carrying -";
mes "- too many items with you. -";
mes "- Please try again -";
- mes "- after you loose some weight. -";
+ mes "- after you lose some weight. -";
close;
}
mes "[Paul Spanner]";
@@ -352,37 +351,37 @@ ein_in01,38,29,0 script Paul Spanner 63,{
next;
switch(select("Anvil - 30,000z.:Oridecon Anvil - 120,000z.:Golden Anvil - 300,000z.:I need a better anvil.:Cancel.")) {
case 1:
- if (zeny < 30000) {
+ if (Zeny < 30000) {
mes "[Paul Spanner]";
mes "With that much of money, you cannot even buy a toy anvil!";
close;
}
getitem 986,1; //Anvil
- set zeny,zeny-30000;
+ Zeny -= 30000;
mes "[Paul Spanner]";
mes "It is the cheapest anvil which has the most basic ability.";
mes "Thank you for using my shop. If you need anything, just let me know.";
close;
case 2:
- if (zeny < 120000) {
+ if (Zeny < 120000) {
mes "[Paul Spanner]";
mes "With that much of money, you cannot even buy a toy anvil!";
close;
}
getitem 987,1; //Oridecon_Anvil
- set zeny,zeny-120000;
+ Zeny -= 120000;
mes "[Paul Spanner]";
mes "Ah, you have an eye for anvil. A Blacksmith needs an anvil at least as good as this.";
mes "Thank you for using my shop. If you need anything, just let me know.";
close;
case 3:
- if (zeny < 300000) {
+ if (Zeny < 300000) {
mes "[Paul Spanner]";
mes "With that much of money, you cannot even buy a toy anvil!";
close;
}
getitem 988,1; //Golden_Anvil
- set zeny,zeny-300000;
+ Zeny -= 300000;
mes "[Paul Spanner]";
mes "I can tell your ambition to become a good Blacksmith just by looking at you to choose this Golden Anvil!";
mes "This anvil will surely aid you in creating the best weapons.";
@@ -451,7 +450,7 @@ ein_in01,38,29,0 script Paul Spanner 63,{
}
}
set .@sell,.@input * .@item_cost;
- if (zeny < .@sell) {
+ if (Zeny < .@sell) {
mes "[Paul Spanner]";
mes "You don't have enough money. Sorry, I cannot sell them at a loss.";
close;
@@ -461,7 +460,7 @@ ein_in01,38,29,0 script Paul Spanner 63,{
mes "Hey, you look pale. Why don't you go lighten your weight first.";
close;
}
- set zeny,zeny-.@sell;
+ Zeny -= .@sell;
getitem .@item,.@input;
mes "[Paul Spanner]";
mes "Thank you for using my shop. If you need anything, just let me know.";
@@ -505,7 +504,7 @@ ein_in01,38,29,0 script Paul Spanner 63,{
}
}
set .@sell,.@input * .@item_price;
- if (zeny < .@sell) {
+ if (Zeny < .@sell) {
mes "[Paul Spanner]";
mes "You don't have enough money. Sorry, I cannot sell them at a loss.";
close;
@@ -516,7 +515,7 @@ ein_in01,38,29,0 script Paul Spanner 63,{
close;
}
getitem .@item,.@input;
- set zeny,zeny-.@sell;
+ Zeny -= .@sell;
mes "[Paul Spanner]";
mes "Thank you for using my shop. If you need anything, just let me know.";
close;
@@ -566,31 +565,31 @@ ein_in01,38,29,0 script Paul Spanner 63,{
// Weapon/Armor Refiners
//============================================================
-prt_in,63,60,0 script Hollgrehenn 85,{
+prt_in,63,60,0 script Hollgrehenn 4_M_03,{
callfunc "refinemain","Hollgrehenn",0;
end;
}
-morocc_in,73,38,6 script Aragham 99,{
+morocc_in,73,38,6 script Aragham 4W_M_03,{
callfunc "refinemain","Aragham",0;
end;
}
-payon,144,173,5 script Antonio 88,{
+payon,144,173,5 script Antonio 4_M_ORIENT01,{
callfunc "refinemain","Antonio",0;
end;
}
-alberta_in,28,58,0 script Fredrik 85,{
+alberta_in,28,58,0 script Fredrik 4_M_03,{
callfunc "refinemain","Fredrik",0;
end;
}
-yuno_in01,171,21,4 script Lambert 88,{
+yuno_in01,171,21,4 script Lambert 4_M_ORIENT01,{
callfunc "refinemain","Lambert",0;
end;
}
-ein_in01,24,87,5 script Manthasman 826,{
+ein_in01,24,87,5 script Manthasman 4_M_DWARF,{
callfunc "refinemain","Manthasman Pruhag",0;
end;
}
-lhz_in02,282,20,7 script Fulerr 869,{
+lhz_in02,282,20,7 script Fulerr 4_M_LGTMAN,{
callfunc "refinemain","Fulerr",0;
end;
}
@@ -615,12 +614,20 @@ function script refinemain {
setarray .@position$[1], "Head","Body","Left hand","Right hand","Robe","Shoes","Accessory 1","Accessory 2","Head 2","Head 3";
set .@menu$,"";
for(set .@i,1; .@i<=10; set .@i,.@i+1) {
- if(getequipisequiped(.@i))
+ if(getequipisequiped(.@i)) {
set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
+ set .@equipped,1;
+ }
set .@menu$, .@menu$ + ":";
}
- set .@part,select(.@menu$);
- if(!getequipisequiped(.@part)) {
+ if (.@equipped == 0) {
+ mes "[" + getarg(0) + "]";
+ mes "I don't think I can refine any items you have...";
+ close;
+ }
+ set .@part, select(.@menu$);
+
+ if(!getequipisequiped(.@part)) { //custom check
mes "[" + getarg(0) + "]";
mes "You're not wearing";
mes "anything there that";
@@ -635,16 +642,6 @@ function script refinemain {
mes "refine this item at all...";
close;
}
- //Check if the item is identified... (Don't know why this is in here... but kept it anyway)
- if(!getequipisidentify(.@part)) {
- mes "[" + getarg(0) + "]";
- mes "You can't refine this";
- mes "if you haven't appraised";
- mes "it first. Make sure your";
- mes "stuff is identified before";
- mes "I can refine it.";
- close;
- }
//Check to see if the items is already +10
if(getequiprefinerycnt(.@part) >= 10) {
mes "[" + getarg(0) + "]";
@@ -664,27 +661,27 @@ function script refinemain {
case 1: //Refine Level 1 Weapon
set .@price,50;
set .@material,1010;
- set .@safe,7;
+ set .@safe,7;
break;
case 2: //Refine Level 2 Weapon
set .@price,200;
set .@material,1011;
- set .@safe,6;
+ set .@safe,6;
break;
case 3: //Refine Level 3 Weapon
set .@price,5000;
set .@material,984;
- set .@safe,5;
+ set .@safe,5;
break;
case 4: //Refine Level 4 Weapon
set .@price,20000;
set .@material,984;
- set .@safe,4;
+ set .@safe,4;
break;
case 5: //Refine other stuff?
set .@price,2000;
set .@material,985;
- set .@safe,4;
+ set .@safe,4;
break;
}
if(.@features != 1) {
@@ -738,8 +735,10 @@ function script refinemain {
mes "here all day if you need me.";
close;
}
- set Zeny,Zeny-.@price;
+ Zeny -= .@price;
delitem .@material,1;
+
+ //custom checks
if(getequipisequiped(.@part) == 0) { // hacker has removed the item (not changed, why?)
mes "[" + getarg(0) + "]";
mes "Look here... you don't have any Items on...";
@@ -753,6 +752,7 @@ function script refinemain {
mes "You switched the item while I wasn't looking! Get out of here!";
close;
}
+
if(getequippercentrefinery(.@part) <= rand(100)) {
failedrefitem .@part;
mes "[" + getarg(0) + "]";
@@ -809,7 +809,7 @@ function script refinemain {
} else
set .@menu2,2;
switch(.@menu2){
- case 1:
+ case 1:
set .@refinecnt,.@safe - getequiprefinerycnt(.@part);
break;
case 2:
@@ -856,7 +856,7 @@ function script refinemain {
mes "Is that all you got? Unfortunately I can't work for you at a lower price. Try putting yourself in my shoes.";
close;
}
- set Zeny,Zeny - .@fullprice;
+ Zeny -= .@fullprice;
delitem .@material,.@refinecnt;
while(.@refinecnt){
if (getequipisequiped(.@part) == 0) {
@@ -870,7 +870,7 @@ function script refinemain {
mes "You changed it...";
mes "Get out before I stun you with my Hammer!!";
close;
- }
+ }
mes "Clang, clang!!!";
if(.@menu2 == 2 && getequippercentrefinery(.@part) <= rand(100)) {
failedrefitem .@part;
@@ -882,7 +882,7 @@ function script refinemain {
mes "Here's the unused Zeny and materials back...";
getitem .@material,.@refinecnt;
set .@fullprice,.@refinecnt * .@price;
- set Zeny,Zeny + .@fullprice;
+ Zeny += .@fullprice;
close;
}
successrefitem .@part;
@@ -897,31 +897,31 @@ function script refinemain {
// Material Salesmen
//============================================================
-prt_in,56,68,5 script Vurewell 86,{
+prt_in,56,68,5 script Vurewell 4_M_04,{
callfunc "phramain","Vurewell";
end;
}
-payon,145,178,3 script Begnahd 88,{
+payon,145,178,3 script Begnahd 4_M_ORIENT01,{
callfunc "phramain","Begnahd";
end;
}
-morocc_in,63,32,6 script Sade 99,{
+morocc_in,63,32,6 script Sade 4W_M_03,{
callfunc "phramain","Sade";
end;
}
-alberta_in,13,71,3 script Kahlamanlith 86,{
+alberta_in,13,71,3 script Kahlamanlith 4_M_04,{
callfunc "phramain","Kahlamanlith";
end;
}
-yuno_in01,171,27,4 script Dilemma 88,{
+yuno_in01,171,27,4 script Dilemma 4_M_ORIENT01,{
callfunc "phramain","Dilemma";
end;
}
-ein_in01,15,87,3 script Tirehaus 86,{
+ein_in01,15,87,3 script Tirehaus 4_M_04,{
callfunc "phramain","Tirehaus";
end;
}
-lhz_in02,278,24,3 script Krugg 86,{
+lhz_in02,278,24,3 script Krugg 4_M_04,{
callfunc "phramain","Krugg";
end;
}
@@ -934,7 +934,7 @@ function script phramain {
mes "- Currently you're carrying -";
mes "- too many items with you. -";
mes "- Please try again -";
- mes "- after you loose some weight. -";
+ mes "- after you lose some weight. -";
close;
}
mes "[" + getarg(0) + "]";
@@ -1000,7 +1000,7 @@ function script phramain {
close;
}
getitem .@material,.@input;
- set Zeny,Zeny-.@sell;
+ Zeny -= .@sell;
mes "[" + getarg(0) + "]";
mes "Here you are!";
mes "Thank you for";
@@ -1010,31 +1010,31 @@ function script phramain {
// Ori/Elu Refiners
//============================================================
-prt_in,63,69,3 script Dietrich 84,{
+prt_in,63,69,3 script Dietrich 4_M_02,{
callfunc "orimain","Dietrich";
end;
}
-payon,137,178,5 script Hakhim 88,{
+payon,137,178,5 script Hakhim 4_M_ORIENT01,{
callfunc "orimain","Hakhim";
end;
}
-morocc_in,72,32,6 script Abdula 99,{
+morocc_in,72,32,6 script Abdula 4W_M_03,{
callfunc "orimain","Abdula";
end;
}
-alberta_in,21,63,5 script Xenophon 84,{
+alberta_in,21,63,5 script Xenophon 4_M_02,{
callfunc "orimain","Xenophon Zolotas";
end;
}
-yuno_in01,164,27,4 script Delight 88,{
+yuno_in01,164,27,4 script Delight 4_M_ORIENT01,{
callfunc "orimain","Delight";
end;
}
-ein_in01,18,82,6 script Matestein 84,{
+ein_in01,18,82,6 script Matestein 4_M_02,{
callfunc "orimain","Matestein";
end;
}
-lhz_in02,281,24,5 script Fruel 84,{
+lhz_in02,281,24,5 script Fruel 4_M_02,{
callfunc "orimain","Fruel";
end;
}
@@ -1047,7 +1047,7 @@ function script orimain {
mes "- Currently you're carrying -";
mes "- too many items with you. -";
mes "- Please try again -";
- mes "- after you loose some weight. -";
+ mes "- after you lose some weight. -";
close;
}
mes "[" + getarg(0) + "]";
@@ -1110,72 +1110,72 @@ function script orimain {
// Equipment Repairmen
//============================================================
-alberta_in,31,65,4 script Repairman#alb 86,{
+alberta_in,31,65,4 script Repairman#alb 4_M_04,{
callfunc "repairmain","Repairman";
end;
}
-moc_ruins,107,94,4 script Repairman#moc 99,{
+moc_ruins,107,94,4 script Repairman#moc 4W_M_03,{
callfunc "repairmain","Repairman";
end;
}
-payon,143,165,4 script Repairman#pay 88,{
+payon,143,165,4 script Repairman#pay 4_M_ORIENT01,{
callfunc "repairmain","Repairman";
end;
}
-prt_in,63,54,2 script Repairman#prt 86,{
+prt_in,63,54,2 script Repairman#prt 4_M_04,{
callfunc "repairmain","Grendal";
end;
}
-yuno_in01,175,28,3 script Repairman#juno 86,{
+yuno_in01,175,28,3 script Repairman#juno 4_M_04,{
callfunc "repairmain","Repairman";
end;
}
-geffen_in,34,166,3 script Repairman#gef 99,{
+geffen_in,34,166,3 script Repairman#gef 4W_M_03,{
callfunc "repairmain","Repairman";
end;
}
-aldeba_in,38,60,3 script Repairman#alde 86,{
+aldeba_in,38,60,3 script Repairman#alde 4_M_04,{
callfunc "repairmain","Repairman";
end;
}
-lhz_in02,284,14,3 script Repairman#lhz 86,{
+lhz_in02,284,14,3 script Repairman#lhz 4_M_04,{
callfunc "repairmain","Repairman";
end;
}
-prt_gld,139,117,4 script Repairman#prt_gld 86,{
+prt_gld,139,117,4 script Repairman#prt_gld 4_M_04,{
callfunc "repairmain","Repairman";
end;
}
-gef_fild13,263,117,4 script Repairman#gef_fild 86,{
+gef_fild13,263,117,4 script Repairman#gef_fild 4_M_04,{
callfunc "repairmain","Repairman";
end;
}
-pay_gld,295,183,4 script Repairman#pay_gld 86,{
+pay_gld,295,183,4 script Repairman#pay_gld 4_M_04,{
callfunc "repairmain","Repairman";
end;
}
-alde_gld,220,152,4 script Repairman#alde_gld 86,{
+alde_gld,220,152,4 script Repairman#alde_gld 4_M_04,{
callfunc "repairmain","Repairman";
end;
}
-aru_gld,189,336,4 script Repairman#aru_gld 86,{
+aru_gld,189,336,4 script Repairman#aru_gld 4_M_04,{
callfunc "repairmain","Repairman";
end;
}
-sch_gld,340,80,7 script Repairman#sch_gld 86,{
+sch_gld,340,80,7 script Repairman#sch_gld 4_M_04,{
callfunc "repairmain","Repairman";
end;
}
@@ -1238,7 +1238,7 @@ function script repairmain {
}
set .@checkitem2,.@checkitem2-1;
if (.@checkitem == .@checkitem2) {
- set zeny,zeny-.@totalcost;
+ Zeny -= .@totalcost;
while (.@checkitem) {
repair(.@checkitem);
set .@checkitem,.@checkitem-1;
@@ -1266,4 +1266,4 @@ function script repairmain {
mes "items to repair.";
close;
}
-} \ No newline at end of file
+}