• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua erro-Refct Script

Gaber Zen

Well-Known Member
Joined
Apr 22, 2023
Messages
225
Reaction score
52
Location
Egypt
hello, Everyone
I got Erro reflect Stone Script
Tibia 8.6-OTX
err.png

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
 
try changing
Lua:
if type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS and isCreature(attacker) then
for
Lua:
if (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) and isCreature(attacker) then
 
Back
Top