From 644a656bb12062c192e3baa4c21cd54f70d10f1c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 5 Mar 2020 13:53:50 -0300 Subject: Do not show shield option for weapons --- npc/functions/refine.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npc/functions/refine.txt b/npc/functions/refine.txt index cbf6a96ca..fb1cfb57e 100644 --- a/npc/functions/refine.txt +++ b/npc/functions/refine.txt @@ -24,7 +24,7 @@ function script refineMaster { l("Nothing, thanks"), 0, rif(getequipisequiped(EQI_HEAD_MID), l("My chestplate, @@", getequipname(EQI_HEAD_MID))), EQI_HEAD_MID, rif(getequipisequiped(EQI_HAND_R), l("My weapon, @@", getequipname(EQI_HAND_R))), EQI_HAND_R, - rif(getequipisequiped(EQI_HAND_L), l("My shield, @@", getequipname(EQI_HAND_L))), EQI_HAND_L, + rif(getequipisequiped(EQI_HAND_L) && getequipid(EQI_HAND_L) != getequipid(EQI_HAND_R), l("My shield, @@", getequipname(EQI_HAND_L))), EQI_HAND_L, rif(getequipisequiped(EQI_HEAD_TOP), l("My helmet, @@", getequipname(EQI_HEAD_TOP))), EQI_HEAD_TOP, l("Item break? Too dangerous! I don't want it!!"), 0; -- cgit v1.2.3-70-g09d2