Reyn
On to the next One
I've got a problem of a spell of mine :S
It bugs nearby players and if u got it on and log out then i get an error in console....
this is the spell
this in spells.xml
and this the error
please someone help me out >.<
It bugs nearby players and if u got it on and log out then i get an error in console....
this is the spell
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 90)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 3000000)
setConditionParam(condition, CONDITION_PARAM_SKILL_MELEEPERCENT, 115)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setCombatCondition(combat, condition)
arr = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
local function m(parameters)
doCombat(parameters.cid, parameters.combat, parameters.var)
end
function onCastSpell(cid, var)
local delay = 400
local seconds = 0
local parameters = { cid = cid, var = var, combat = combat }
repeat
addEvent(m, seconds, parameters)
seconds = seconds + delay
until seconds == 300000
return TRUE
end
Code:
<instant name="Dark Aura" words="exeta luna" lvl="500" mana="290" prem="1" aggressive="0" selftarget="1" exhaustion="5000" needlearn="0" event="script" value="support/dark aura.lua">
<vocation id="1"/>
<vocation id="8"/>
</instant>
Code:
[03/08/2010 17:43:26] [Error - Spell Interface]
[03/08/2010 17:43:26] In a timer event called from:
[03/08/2010 17:43:27] data/spells/scripts/support/dark aura.lua:onCastSpell
[03/08/2010 17:43:27] Description:
[03/08/2010 17:43:27] (luaDoCombat) Creature not found