Hello, got a spell problem.
Created the spell with Spellcreator (graphical) that is here on forum.
Spell works without problem, just when loading the server I get 7 of these:
The spell:
King regards,
Hanoger.
- - - Updated - - -
EDIT: It's not 7 of that, it is 4 of this:
And 4 of this:
Created the spell with Spellcreator (graphical) that is here on forum.
Spell works without problem, just when loading the server I get 7 of these:
Lua:
[30/08/2012 11:25:23] [Error - Spell Interface]
[30/08/2012 11:25:23] data/spells/scripts/custom/Rage of the hell.lua
[30/08/2012 11:25:23] Description:
[30/08/2012 11:25:23] (luaCreateConditionObject) Condition not found
The spell:
Lua:
-- SpellCreator generated.
-- =============== COMBAT VARS ===============
-- Areas/Combat for 0ms
local combat0_Brush = createCombatObject()
setCombatParam(combat0_Brush, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat0_Brush, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatArea(combat0_Brush,createCombatArea({{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}}))
function getDmg_Brush(cid, level, maglevel)
return (1000)*-1,(5000)*-1
end
setCombatCallback(combat0_Brush, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush")
local con___combat0_Brush = createConditionObject(0)
setCombatCondition(combat0_Brush, con___combat0_Brush)
-- Areas/Combat for 100ms
local combat1_Brush = createCombatObject()
setCombatParam(combat1_Brush, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat1_Brush, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatArea(combat1_Brush,createCombatArea({{0, 0, 0, 1, 1, 1, 0, 0, 0},
{0, 1, 1, 1, 0, 1, 1, 1, 0},
{0, 1, 0, 0, 0, 0, 0, 1, 0},
{1, 1, 0, 0, 0, 0, 0, 1, 1},
{1, 0, 0, 0, 2, 0, 0, 0, 1},
{1, 1, 0, 0, 0, 0, 0, 1, 1},
{0, 1, 0, 0, 0, 0, 0, 1, 0},
{0, 1, 1, 1, 0, 1, 1, 1, 0},
{0, 0, 0, 1, 1, 1, 0, 0, 0}}))
function getDmg_Brush(cid, level, maglevel)
return (1000)*-1,(5000)*-1
end
setCombatCallback(combat1_Brush, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush")
local con___combat1_Brush = createConditionObject(0)
setCombatCondition(combat1_Brush, con___combat1_Brush)
-- Areas/Combat for 200ms
local combat2_Brush = createCombatObject()
setCombatParam(combat2_Brush, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat2_Brush, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatArea(combat2_Brush,createCombatArea({{0, 0, 0, 1, 0, 0, 0},
{0, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 0, 1, 1, 0},
{1, 1, 0, 2, 0, 1, 1},
{0, 1, 1, 0, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 0},
{0, 0, 0, 1, 0, 0, 0}}))
function getDmg_Brush(cid, level, maglevel)
return (1000)*-1,(5000)*-1
end
setCombatCallback(combat2_Brush, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush")
local con___combat2_Brush = createConditionObject(0)
setCombatCondition(combat2_Brush, con___combat2_Brush)
-- Areas/Combat for 300ms
local combat3_Brush = createCombatObject()
setCombatParam(combat3_Brush, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat3_Brush, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatArea(combat3_Brush,createCombatArea({{0, 1, 0},
{1, 3, 1},
{0, 1, 0}}))
function getDmg_Brush(cid, level, maglevel)
return (1000)*-1,(5000)*-1
end
setCombatCallback(combat3_Brush, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush")
local con___combat3_Brush = createConditionObject(0)
setCombatCondition(combat3_Brush, con___combat3_Brush)
-- =============== CORE FUNCTIONS ===============
local function RunPart(c,cid,var,dirList,dirEmitPos) -- Part
if (isCreature(cid)) then
doCombat(cid, c, var)
if (dirList ~= nil) then -- Emit distance effects
local i = 2;
while (i < #dirList) do
doSendDistanceShoot(dirEmitPos,{x=dirEmitPos.x-dirList[i],y=dirEmitPos.y-dirList[i+1],z=dirEmitPos.z},dirList[1])
i = i + 2
end
end
end
end
function onCastSpell(cid, var)
local startPos = getCreaturePosition(cid)
RunPart(combat0_Brush,cid,var)
addEvent(RunPart,100,combat1_Brush,cid,var)
addEvent(RunPart,200,combat2_Brush,cid,var)
addEvent(RunPart,300,combat3_Brush,cid,var)
return true
end
King regards,
Hanoger.
- - - Updated - - -
EDIT: It's not 7 of that, it is 4 of this:
Lua:
[30/08/2012 11:25:23] [Error - Spell Interface]
[30/08/2012 11:25:23] data/spells/scripts/custom/Rage of the hell.lua
[30/08/2012 11:25:23] Description:
[30/08/2012 11:25:23] (luaCreateConditionObject) Condition not found
And 4 of this:
Lua:
[30/08/2012 13:31:41] [Error - Spell Interface]
[30/08/2012 13:31:41] data/spells/scripts/custom/Rage of the hell.lua
[30/08/2012 13:31:41] Description:
[30/08/2012 13:31:41] (luaSetCombatCondition) Condition not found