diff --git a/npc/merchants/refine.txt b/npc/merchants/refine.txt index 0e4f611ab9..1c74f69123 100644 --- a/npc/merchants/refine.txt +++ b/npc/merchants/refine.txt @@ -570,10 +570,11 @@ function script refinemain { next; setarray .@position$[1], "Head","Body","Left hand","Right hand","Robe","Shoes","Accessory 1","Accessory 2","Head 2","Head 3"; + setarray .@indizes[1], EQI_HEAD_TOP, EQI_ARMOR, EQI_HAND_L, EQI_HAND_R, EQI_GARMENT, EQI_SHOES, EQI_ACC_L, EQI_ACC_R, EQI_HEAD_MID, EQI_HEAD_LOW; set .@menu$,""; - for(set .@i,1; .@i<=10; set .@i,.@i+1) { - if(getequipisequiped(.@i)) { - set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]"; + for(set .@i,1; .@i