Ir para conteúdo

Arrumem Bug De Um Spell


DXtibiaXD

Posts Recomendados

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BOLT)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, 4.2, 60, 6.4, 100)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_INFERNALBOLT)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, 4.2, 60, 6.4, 100)

 

arr1 = {

{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, 1, 0, 0, 0, 0, 0},

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

{0, 0, 0, 1, 1, 3, 1, 1, 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, 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},

}

 

 

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, 1, 0, 1, 0, 1, 0, 1, 0, 0},

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

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

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

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

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

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

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

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

}

 

local area = createCombatArea(arr1)

local area = createCombatArea(arr2)

setCombatArea(combat1, area)

setCombatArea(combat2, area)

 

function onTargetTile1(cid, pos)

doCombat(cid,combat1,positionToVariant(pos))

end

 

setCombatCallback(acombat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

 

function onTargetTile2(cid, pos)

doCombat(cid,combat2,positionToVariant(pos))

end

 

function onCastSpell(cid, var)

addEvent(onCastSpell1, 20, parameters)

addEvent(onCastSpell2, 200, parameters)

 

return TRUE

end

 

 

 

 

tem algum erro eu n conseguir arruma e a unica spell que eu n cosigo e foda ¬¬''

Link para o comentário
Compartilhar em outros sites

aqui está da isso no conselo erro

 

[18/04/2010 00:40:01] [Error - Spell Interface]

[18/04/2010 00:40:01] data/spells/scripts/exevo mas bolt.lua:onCastSpell

[18/04/2010 00:40:01] Description:

[18/04/2010 00:40:01] (luaAddEvent) Callback parameter should be a function.

 

[18/04/2010 00:40:01] [Error - Spell Interface]

[18/04/2010 00:40:01] data/spells/scripts/exevo mas bolt.lua:onCastSpell

[18/04/2010 00:40:01] Description:

[18/04/2010 00:40:01] (luaAddEvent) Callback parameter should be a function.

Link para o comentário
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...