estou com o seguinte problema:
[08/07/2014 19:40:02] [Error - CreatureScript Interface]
[08/07/2014 19:40:02] data/creaturescripts/scripts/critical.lua:onStatsChange
[08/07/2014 19:40:02] Description:
[08/07/2014 19:40:02] data/creaturescripts/scripts/critical.lua:6: attempt to perform arithmetic on a boolean value
[08/07/2014 19:40:02] stack traceback:
[08/07/2014 19:40:02] data/creaturescripts/scripts/critical.lua:6: in function <data/creaturescripts/scripts/critical.lua:4>
local lvlcrit = 48913
local multiplier = 1.6
function onStatsChange(cid, attacker, type, combat, value)
if type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS and isCreature(attacker) then
if (getPlayerStorageValue(attacker, lvlcrit)*3) >= math.random (0,1000) then
dano = math.ceil(value*(multiplier))
doTargetCombatHealth(attacker, cid, combat, -dano, -dano, 255)
return false
end
end
return true
end
nao vi o que pode estar errado '-'