Ir para conteúdo

Magia Que Dá Trap E Ataka


Imtheman

Posts Recomendados

Primeiro vá em data>spells>scripts cole qualquer um arquivo e nomeie para Exevo Trap Dead

Depois apague tudo dentro desse arquivo copiado e cole isso aki dentro

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)

setCombatParam(combat1, COMBAT_PARAM_CREATEITEM, 1499)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 5)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2.2, -100, -2.4, -145)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 7)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -2.2, -100, -2.4, -145)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 8)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -2.2, -100, -2.4, -145)

 

local arr1 = {

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

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

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

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

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

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

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

}

 

local arr2 = {

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

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

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

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

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

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

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

}

 

local arr3 = {

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

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

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

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

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

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

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

}

 

local arr4 = {

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

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

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

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

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

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

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

}

 

 

local area1 = createCombatArea(arr1)

local area2 = createCombatArea(arr2)

local area3 = createCombatArea(arr3)

local area4 = createCombatArea(arr4)

 

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

setCombatArea(combat3, area3)

setCombatArea(combat4, area4)

 

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

 

local function onCastSpell4(parameters)

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

end

 

 

function onCastSpell(cid, var)

 

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

 

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 250, parameters)

addEvent(onCastSpell3, 400, parameters)

addEvent(onCastSpell4, 550, parameters)

 

end

 

Agora salve

Vá em data>spells>spells.xml copie e cole isso aki

 

<instant name="Gran Trap" words="exevo trap dead" direction="1" lvl="" maglv="" mana="" soul="0" exhaustion="1" prem="1" enabled="1" script="Exevo Trap Dead.lua"><vocation id="5"/><vocation id="6"/><vocation id="7"/><vocation id="8"/></instant>

 

Legenda de cores:

 

Local onde será colocado o level necessário para a magia

Local onde será colocado o magic level necessário para a magia

Local onde será colocada a mana que amgia gastará

 

Espero que tenham gostado

 

1bf8266787daf4571ba1274d72b0fe133.1.gif

 

1ae81abc580954a43840b834649e1d9bc.1.gif

 

 

 

md.jpg

841222015926sp7.png

261222016396au7.png

381222017435vv0.png

Editado por Imtheman
Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
  • 3 weeks later...
  • 3 weeks later...
×
×
  • Criar Novo...