GOD Esteve
New Member
- Joined
- May 18, 2011
- Messages
- 87
- Reaction score
- 1
First i will try to explain what i need, the script should heal 30% of damage when hit a player or a monster and for this i make that scripts
But the problem it`s that the script only work with player and with monster don`t make nothing,
TFS 0.3.7
<event type="statschange" name="ItemRegen" script="MEUS/itemregen.lua"/>
registerCreatureEvent(cid, "ItemRegen")
function onStatsChange(cid, attacker, type, combat, value)
if isPlayer(attacker) == true then
if(getPlayerSlotItem(attacker, 3).itemid == 12685) then
dmg = math.ceil(value*(30/100))
doCreatureAddHealth(attacker, dmg)
end
end
return TRUE
end
But the problem it`s that the script only work with player and with monster don`t make nothing,
TFS 0.3.7