Ir para conteúdo

Me Ajudem Por Favor!


TxxGBLxxT

Posts Recomendados

Olhem o erro que está dando, não sei o porque mas a magia não está carregando, ela tem tres hits. Ajudem - me a arrumá - la.

 

local combat1 =createCombatObject()

local combat2 =createCombatObject()

local combat3 =createCombatObject()

 

local combat1 = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE)

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2.2, -24, -3.2, 0)

 

local combat2 = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE)

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.9, -24, -2.9, 0)

 

local combat3 = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONHIT)

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE)

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2.9, -24, -4.1, 0)

 

arr1 = {

{1,0,0,0,0,0,0,0,0,0,1},

{0,1,0,0,0,0,0,0,0,1,0},

{0,0,1,0,0,0,0,0,1,0,0},

{0,0,0,1,0,0,0,1,0,0,0},

{0,0,0,0,1,0,1,0,0,0,0},

{0,0,0,0,0,3,0,0,0,0,0},

{0,0,0,0,1,0,1,0,0,0,0},

{0,0,0,1,0,0,0,1,0,0,0},

{0,0,1,0,0,0,0,0,1,0,0},

{0,1,0,0,0,0,0,0,0,1,0},

{1,0,0,0,0,0,0,0,0,0,1},

}

 

arr2 = {

{0,0,0,0,0,1,0,0,0,0,0},

{0,0,0,0,0,1,0,0,0,0,0},

{0,0,0,0,0,1,0,0,0,0,0},

{0,0,0,0,0,1,0,0,0,0,0},

{0,0,0,0,0,1,0,0,0,0,0},

{1,1,1,1,1,3,1,1,1,1,1},

{0,0,0,0,0,1,0,0,0,0,0},

{0,0,0,0,0,1,0,0,0,0,0},

{0,0,0,0,0,1,0,0,0,0,0},

{0,0,0,0,0,1,0,0,0,0,0},

{0,0,0,0,0,1,0,0,0,0,0},

}

 

arr3 = {

{1,1,1,1,1,1,1,1,1,1,1},

{1,1,1,1,1,1,1,1,1,1,1},

{1,1,1,1,1,1,1,1,1,1,1},

{1,1,1,1,1,1,1,1,1,1,1},

{1,1,1,1,1,1,1,1,1,1,1},

{1,1,1,1,1,3,1,1,1,1,1},

{1,1,1,1,1,1,1,1,1,1,1},

{1,1,1,1,1,1,1,1,1,1,1},

{1,1,1,1,1,1,1,1,1,1,1},

{1,1,1,1,1,1,1,1,1,1,1},

{1,1,1,1,1,1,1,1,1,1,1},

}

 

 

local area1 = createCombatArea(arr1)

local area2 = createCombatArea(arr2)

local area3 = createCombatArea(arr3)

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

setCombatArea(combat3, area3)

 

local function onCastSpell1(parameters)

doCombat(parameters.cid, parameters.combat1, parameters.var)

end

 

local function onCastSpell2(parameters)

doCombat(parameters.cid, parameters.combat2, parameters.var)

end

 

local function onCastSpell3(parameters)

doCombat(parameters.cid, parameters.combat3, parameters.var)

end

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3 }

addEvent(onCastSpell1, 1, parameters)

addEvent(onCastSpell2, 2, parameters)

addEvent(onCastSpell3, 3, parameters)

 

end

 

[09/01/2012 19:44:09] Lua Script Error: [spell Interface]

[09/01/2012 19:44:09] data/spells/scripts/attack/Explosao de mana.lua

 

[09/01/2012 19:44:09] luaSetCombatParam(). Combat not found

 

[09/01/2012 19:44:09] Lua Script Error: [spell Interface]

[09/01/2012 19:44:09] data/spells/scripts/attack/Explosao de mana.lua

 

[09/01/2012 19:44:09] luaSetCombatParam(). Combat not found

 

[09/01/2012 19:44:09] Lua Script Error: [spell Interface]

[09/01/2012 19:44:09] data/spells/scripts/attack/Explosao de mana.lua

 

[09/01/2012 19:44:10] luaSetCombatParam(). Combat not found

 

[09/01/2012 19:44:10] Lua Script Error: [spell Interface]

[09/01/2012 19:44:10] data/spells/scripts/attack/Explosao de mana.lua

 

[09/01/2012 19:44:10] luaSetCombatFormula(). Combat not found

 

[09/01/2012 19:44:10] Lua Script Error: [spell Interface]

[09/01/2012 19:44:10] data/spells/scripts/attack/Explosao de mana.lua

 

[09/01/2012 19:44:10] luaSetCombatParam(). Combat not found

 

[09/01/2012 19:44:10] Lua Script Error: [spell Interface]

[09/01/2012 19:44:10] data/spells/scripts/attack/Explosao de mana.lua

 

[09/01/2012 19:44:10] luaSetCombatParam(). Combat not found

 

[09/01/2012 19:44:10] Lua Script Error: [spell Interface]

[09/01/2012 19:44:10] data/spells/scripts/attack/Explosao de mana.lua

 

[09/01/2012 19:44:10] luaSetCombatParam(). Combat not found

 

[09/01/2012 19:44:10] Lua Script Error: [spell Interface]

[09/01/2012 19:44:10] data/spells/scripts/attack/Explosao de mana.lua

 

[09/01/2012 19:44:10] luaSetCombatFormula(). Combat not found

 

[09/01/2012 19:44:10] Lua Script Error: [spell Interface]

[09/01/2012 19:44:10] data/spells/scripts/attack/Explosao de mana.lua

 

[09/01/2012 19:44:10] luaSetCombatParam(). Combat not found

 

[09/01/2012 19:44:10] Lua Script Error: [spell Interface]

[09/01/2012 19:44:10] data/spells/scripts/attack/Explosao de mana.lua

 

[09/01/2012 19:44:10] luaSetCombatParam(). Combat not found

 

[09/01/2012 19:44:10] Lua Script Error: [spell Interface]

[09/01/2012 19:44:10] data/spells/scripts/attack/Explosao de mana.lua

 

[09/01/2012 19:44:10] luaSetCombatParam(). Combat not found

 

[09/01/2012 19:44:10] Lua Script Error: [spell Interface]

[09/01/2012 19:44:10] data/spells/scripts/attack/Explosao de mana.lua

 

Me ajudem por favor digam o que está errado.

Link para o comentário
Compartilhar em outros sites

acho que é porque vc não identificou os combat

 

deve ser isso:

 


local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2.2, -24, -3.2, 0)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -1.9, -24, -2.9, 0)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONHIT)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -2.9, -24, -4.1, 0)

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...