hello, Everyone
I got Erro reflect Stone Script
Tibia 8.6-OTX
I got Erro reflect Stone Script
Tibia 8.6-OTX
Lua:
local lvldodge = 11903
local percent = 0.5
function onStatsChange(cid, attacker, type, combat, value)
if type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS and isCreature(attacker) then
if (getPlayerStorageValue(cid, lvldodge)*3) >= math.random (0,1000) then
value = math.ceil(value*(percent))
doCreatureAddHealth(attacker, -value)
doSendAnimatedText(getCreaturePos(cid), "Reflected!", 30)
return false
end
end
return true
end