From 7046cf8fc588d4c17047107a98f24547964e6e2e Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Sat, 16 Apr 2016 11:14:36 +0200 Subject: [PATCH] Fixed two npcs which used hardcoded EQI_ values Follow up to 2bf64c9 --- npc/merchants/refine.txt | 9 +++++---- npc/re/merchants/enchan_mora.txt | 10 +++++----- 2 files changed, 10 insertions(+), 9 deletions(-) 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