my problem is that
dosent work in my spell
i think is the math.random
dosent work in my spell
PHP:
local function onCastSpell1(parameters)
if (math.random(0, 100) < 50 + getPlayerSkill(cid, SKILL_DISTANCE)) then
doCombat(parameters.cid, combat1, parameters.var)
else
doSendAnimatedText(getPlayerPosition(parameters.cid), "MISS", COLOR_WHITE)
end
i think is the math.random