summaryrefslogtreecommitdiff
path: root/npc/merchants
diff options
context:
space:
mode:
Diffstat (limited to 'npc/merchants')
-rw-r--r--npc/merchants/refine.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/npc/merchants/refine.txt b/npc/merchants/refine.txt
index 4fd5693c5..fd5bd24d6 100644
--- a/npc/merchants/refine.txt
+++ b/npc/merchants/refine.txt
@@ -362,9 +362,15 @@ function script refinemain {
mes "I can refine all kinds of weapons, armor and equipment, so let me";
mes "know what you want me 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 < 11; set .@i,.@i+1 ){
- set .@menu$,.@menu$+(getequipisequiped(.@i) ? getequipname(.@i) : "")+":";
+ for( set .@i,1; .@i <= 10; set .@i,.@i+1 )
+ {
+ if( getequipisequiped(.@i) )
+ set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
+
+ set .@menu$, .@menu$ + ":";
}
set .@part,select(.@menu$);
if(!getequipisequiped(.@part)) {