Hello guys, i'm having abit trouble understanding how to deal with the boolean values. The script works perfectly if arrowcount is a clean number or equation. But not if i extract the number from the players storage value. I appreciate the help i can get.
Code:
local spirit = 40106
local arrowcount = getPlayerStorageValue(cid, spirit)
¨
local function onCastSpell2(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
if n <= arrowcount then
addEvent(onCastSpell2, 350, parameters)
n = n + 1
end
end