diff options
-rw-r--r-- | npc/magic/final.txt | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/npc/magic/final.txt b/npc/magic/final.txt index 7476aa5d..055fe495 100644 --- a/npc/magic/final.txt +++ b/npc/magic/final.txt @@ -244,20 +244,13 @@ function script HUB_PCBonus { { // atm trolls can use raging, I thought it's ok since they do damage over Str and have only a range of 3 @item_crit = 0; - switch (getequipid(EQI_HEAD_TOP)) - { - case 877: // Bull Helmet - @item_crit = 15; - break; - case 4031: // Monocle - case 5201: // Pipe - @item_crit = 10; - break; - default: - @item_crit = 0; - break; - } - if (getequipid(EQI_HAND_R) == 576) // Beheader + + if (getequipname(EQI_HEAD_TOP) == "AssassinMask" || getequipname(EQI_HEAD_TOP) == "BullHelmet") + @item_crit = 15; + else if (getequipname(EQI_HEAD_TOP) == "Monocle" || getequipname(EQI_HEAD_TOP) == "Pipe") + @item_crit = 10; + + if (getequipname(EQI_HAND_R) == "Beheader") @item_crit -= 25; bonus bCritical, (getskilllv(SKILL_RAGING))*((readparam2(UDT_DEX)/40)+(readparam2(UDT_LUK)/30)+(@item_crit/10)+(readparam2(UDT_STR)/10)-2); |