angelobodj
Lazy OT Researcher
Btw: Apart from that, nice job with the spell ^^
that's totally random and up to the spell, its the problem with random areas, they can either totally miss or hit the position you want 3 or 4 times
that would be too much bad luck xD
that's totally random and up to the spell, its the problem with random areas, they can either totally miss or hit the position you want 3 or 4 times
stormSpreads(cid, getCreaturePosition(cid), {math.random(config.minAttacks, config.maxAttacks)})
[23:57:53.523] [Error - Spell Interface]
[23:57:53.524] data/spells/scripts/wizard skills/storm of the century.lua:onCastSpell
[23:57:53.524] Description:
[23:57:53.525] ...pells/scripts/wizard skills/storm of the century.lua:28: attempt to compare number with table
[23:57:53.526] stack traceback:
[23:57:53.526] ...pells/scripts/wizard skills/storm of the century.lua:28: in function <...pells/scripts/wizard skills/storm of the century.lua:18>
[23:57:53.527] (tail call): ?
<instant name="storm of the century" words="lmaorofl" lvl="10" mana="45" prem="0" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="3000" groups="1,1000" icon="89" needlearn="0" event="script" value="wizard skills/storm of the century.lua">
<vocation id="1"/>
<vocation id="9"/>
<vocation id="25"/>
<vocation id="26"/>
<vocation id="27"/>
</instant>
for i = 1, #config.effectType[1] do
if(efc < config.effectType[1][i]) then
eff = config.effectType[2][i]
break
else
efc = efc - config.effectType[1][i]
end
end