summaryrefslogtreecommitdiff
path: root/npc/re/merchants/hd_refiner.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-10-26 04:26:34 +0100
committerHaru <haru@dotalux.com>2014-11-02 01:36:51 +0100
commit46fbbaabefa29df1378ae68b7f063dbc64846042 (patch)
tree8a29abc6017e4dfbc9430e6484871ead9ab41c49 /npc/re/merchants/hd_refiner.txt
parentd853cc9c0ccdafb8e23ddf6b3f18e7859af0a710 (diff)
downloadhercules-46fbbaabefa29df1378ae68b7f063dbc64846042.tar.gz
hercules-46fbbaabefa29df1378ae68b7f063dbc64846042.tar.bz2
hercules-46fbbaabefa29df1378ae68b7f063dbc64846042.tar.xz
hercules-46fbbaabefa29df1378ae68b7f063dbc64846042.zip
Replaced 'set' with direct assignment where applicable (re folder)
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/re/merchants/hd_refiner.txt')
-rw-r--r--npc/re/merchants/hd_refiner.txt36
1 files changed, 18 insertions, 18 deletions
diff --git a/npc/re/merchants/hd_refiner.txt b/npc/re/merchants/hd_refiner.txt
index 0e0f3e081..7c875e995 100644
--- a/npc/re/merchants/hd_refiner.txt
+++ b/npc/re/merchants/hd_refiner.txt
@@ -31,10 +31,10 @@
mes "So lets kick this into overdrive, what d' ya say? What item do you want to refine?";
next;
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)
- set .@menu$, .@menu$+((getequipisequiped(.@i))?getequipname(.@i):.@position$[.@i]+"-[Not equipped]")+":";
- set .@part, select(.@menu$);
+ .@menu$ = "";
+ for(.@i = 1; .@i<=10; ++.@i)
+ .@menu$ += ((getequipisequiped(.@i))?getequipname(.@i):.@position$[.@i]+"-[Not equipped]")+":";
+ .@part = select(.@menu$);
if (!getequipisequiped(.@part)) {
mes "[Blacksmith Mighty Hammer]";
switch(.@part) {
@@ -80,15 +80,15 @@
switch(getequipweaponlv(.@part)) {
default:
case 0:
- set .@price,20000;
- set .@material,6241; //HD_Elunium
+ .@price = 20000;
+ .@material = 6241; //HD_Elunium
break;
case 1:
case 2:
case 3:
case 4:
- set .@price,20000;
- set .@material,6240; //HD_Oridecon
+ .@price = 20000;
+ .@material = 6240; //HD_Oridecon
break;
}
mes "[Blacksmith Mighty Hammer]";
@@ -165,10 +165,10 @@ lhz_in02,280,19,3 duplicate(MightyHammer) Mighty Hammer#lhz 4_M_DWARF
mes "Which equipment do you want to refine?";
next;
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)
- set .@menu$, .@menu$+((getequipisequiped(.@i))?getequipname(.@i):.@position$[.@i]+"-[Unequipped]")+":";
- set .@part, select(.@menu$);
+ .@menu$ = "";
+ for(.@i = 1; .@i<=10; ++.@i)
+ .@menu$ += ((getequipisequiped(.@i))?getequipname(.@i):.@position$[.@i]+"-[Unequipped]")+":";
+ .@part = select(.@menu$);
if (!getequipisequiped(.@part)) {
mes "[Basta]";
switch(.@part) {
@@ -219,17 +219,17 @@ lhz_in02,280,19,3 duplicate(MightyHammer) Mighty Hammer#lhz 4_M_DWARF
switch(getequipweaponlv(.@part)) {
default:
case 0:
- set .@price,100000;
- set .@material,6225; //HD_Carnium
- set .@type$,"armor";
+ .@price = 100000;
+ .@material = 6225; //HD_Carnium
+ .@type$ = "armor";
break;
case 1:
case 2:
case 3:
case 4:
- set .@price,100000;
- set .@material,6226; //HD_Bradium
- set .@type$,"weapon";
+ .@price = 100000;
+ .@material = 6226; //HD_Bradium
+ .@type$ = "weapon";
break;
}
mes "[Basta]";