Ir para conteúdo

[Spell] Mega Shot Fusion


manololo

Posts Recomendados

Chegou, chegou o Mega Fusion pra vocês

local combat1 = createCombatObject()
local combat2 = createCombatObject()
local combat3 = createCombatObject()
local combat4 = createCombatObject()

local comba1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1, -500, -3, -1000)

local comba2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -1, -500, -3, -1000)

local comba3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -1, -500, -3, -1000)

local comba4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -1, -500, -3, -1000)

arr1 = {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0 },
{ 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0 },
{ 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0 },
{ 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0 },
{ 0, 0, 0, 1, 1, 3, 1, 1, 0, 0, 0 },
{ 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0 },
{ 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0 },
{ 0,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0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0 },
{ 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0 },
{ 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0 },
{ 0, 0, 0, 0, 1, 3, 1, 0, 0, 1, 0 },
{ 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0 },
{ 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0 },
{ 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
{ 0, 0, 0, 1, 0, 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 = combat3, combat4 = combat4 }
addEvent(onCastSpell1, 500, parameters) 
addEvent(onCastSpell2, 800, parameters) 
addEvent(onCastSpell3, 600, parameters) 
addEvent(onCastSpell4, 700, parameters) 

end

 

Testem porque tah muito muito legal mesmo oks?

Flws

Link para o comentário
Compartilhar em outros sites

  • 1 year later...
  • Quem Está Navegando   0 membros estão online

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