Ir para conteúdo
Faça parte da equipe! (2024) ×
Conheça nossa Beta Zone! Novas áreas a caminho! ×
  • Quem está por aqui   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
  • 0

Me ajudem por favor!!!


Chuzeh
 Compartilhar

Pergunta

Olhem a minha magia, e o erro que está dando quando eu tento carregar, me ajudem a solucionar.

 

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. :suando:

Link para o comentário
Compartilhar em outros sites

5 respostass a esta questão

Posts Recomendados

  • 0

Voce nao identificou os combat, Exemplo:

 

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

 

Se achar melhor copie e cole.

 

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

Este tópico está impedido de receber novos posts.
 Compartilhar

×
×
  • Criar Novo...

Informação Importante

Nós fazemos uso de cookies no seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies , caso contrário, vamos supor que você está bem para continuar.