summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-03-05 13:53:50 -0300
committerJesusaves <cpntb1@ymail.com>2020-03-05 13:53:50 -0300
commit644a656bb12062c192e3baa4c21cd54f70d10f1c (patch)
treee21f78e440ed372eaa08805c5d71bc423dd91aa2 /npc/functions
parent69f0de9c91762f5e2b494ca2aa70ceeaac8b6bd1 (diff)
downloadserverdata-644a656bb12062c192e3baa4c21cd54f70d10f1c.tar.gz
serverdata-644a656bb12062c192e3baa4c21cd54f70d10f1c.tar.bz2
serverdata-644a656bb12062c192e3baa4c21cd54f70d10f1c.tar.xz
serverdata-644a656bb12062c192e3baa4c21cd54f70d10f1c.zip
Do not show shield option for weapons
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/refine.txt2
1 files changed, 1 insertions, 1 deletions
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;