andu
Sold 649 scripts, 25 maps and 9 events!
hello otland
i made a animated spell with random hits
but something is wrong
part of code:
when i tried to use this spell
that error in console apper
this error apper for each addEvent i have in that spell
can someone tell me what i do wrong?
or what i need to edit?
Thx for help
i made a animated spell with random hits
but something is wrong
part of code:
Code:
...
local function onCastSpell40(parameters)
doCombat(parameters.cid, combat40, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
local bubbles = {onCastSpell1, onCastSpell2, onCastSpell3... }
addEvent(math.random(1,#bubbles), 0, parameters)
addEvent(math.random(1,#bubbles), 1500, parameters)
...
when i tried to use this spell
that error in console apper
Code:
[08/07/2010 20:03:03] Lua Script Error: [Spell Interface]
[08/07/2010 20:03:03] data/spells/scripts/attack/blizzard.lua:onCastSpell
[08/07/2010 20:03:03] luaAddEvent(). Callback parameter should be a function.
can someone tell me what i do wrong?
or what i need to edit?
Thx for help