Ir para conteúdo
  • 0

[Dúvida]Spell Não Funcionado


Gabrielzxzx

Pergunta

Bom geralmente sempre crio spells sem problema nenhum mas dessa vez não está funcionando ,quem puder me ajudar agradeço

Este é o script da Spell

 

 

local combat1 = createCombatObject() 
setCombatParam(combat1, COMBAT_PARAM_TYPE, 8)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 6)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 3)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -200, -50, -400, -250)
--=======================================================================
local combat2 = createCombatObject() 
setCombatParam(combat2, COMBAT_PARAM_TYPE, 8)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 8)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 3)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC,  -200,  -50,  -400,  -250)
--=======================================================================

--=======================================================================




local area1 = {
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0},
{0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}}
--=======================================

local area2 = {
{0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 2, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
--=======================================
setCombatArea(combat1, createCombatArea(area1))
setCombatArea(combat2, createCombatArea(area2))




function onCastSpell(cid, var)
addEvent(doCombat, 0, cid, combat1, var)
addEvent(doCombat, 0, cid, combat2, var)

end

Link para o comentário
Compartilhar em outros sites

6 respostass a esta questão

Posts Recomendados

  • 0

teste agora ai

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, 8)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 6)

setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 3)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -200, -50, -400, -250)

--=======================================================================

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, 8)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 8)

setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 3)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -200, -50, -400, -250)

--=======================================================================

 

--=======================================================================

 

 

 

 

local area1 = {

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

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

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

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

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

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

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

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

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

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

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

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

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

--=======================================

 

local area2 = {

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

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

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

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

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

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

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

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

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

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

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

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

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

--=======================================

setCombatArea(combat1, createCombatArea(area1))

setCombatArea(combat2, createCombatArea(area2))

 

 

 

 

function onCastSpell(cid, var)

addEvent(doCombat, 0, cid, combat1, var)

addEvent(doCombat, 0, cid, combat2, var)

return true

end

 

 

OBS : O Script estava sem exaust também tinha um erro na formula acho que arrumei

ate

Link para o comentário
Compartilhar em outros sites

  • 0

Dúvida sanada, movido.

 

Obrigado por está ajudando sempre smartbox, tem melhorado muito

seu comportamento, vejo que está aprendendo bastante, parabéns.

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...