function onStatsChange(cid, attacker, type, combat, value)
local config = {
item_id = 2222, -- right or left hand
more_dmg = 20, -- percent
more_dmg_spell = 20 -- percent
}
if isPlayer(cid) then
if((type == STATSCHANGE_HEALTHLOSS or STATSCHANGE_MANALOSS) and (getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid == config.item_id or getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid == config.item_id)) then
if(combat == COMBAT_PHYSICALDAMAGE) then
local correct = value + (value * config.more_dmg)
doTargetCombatHealth(attacker, cid, combat, correct, correct, 255)
else
local correct = value + (value * config.more_dmg_spell)
doTargetCombatHealth(attacker, cid, combat, correct, correct, 255)
end
return false
end
end
end