Ir para conteúdo

[Spell] Massive Mort


Luckmaxi

Posts Recomendados

Bom, esta magia é boa para OT's com monstros fortes...

Habilidade: Faz uma onda de Caveiras (Exori morte em forma de wave)...

 

Estre em Data/Spells/Scripts e copie qualquer arquivo... Apague tudo e coloque dentro isto:

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)

etCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2.0, -5000, 2.0, 7000)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)

etCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2.0, -5000, 2.0, 7000)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)

etCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -2.0, -5000, 2.0, 7000)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)

etCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -2.0, -5000, 2.0, 7000)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)

etCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -2.0, -5000, 2.0, 7000)

 

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat6, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)

etCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -2.0, -5000, 2.0, 7000)

 

local combat7 = createCombatObject()

setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat7, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)

etCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -2.0, -5000, 2.0, 7000)

 

local combat8 = createCombatObject()

setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat8, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)

etCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -2.0, -5000, 2.0, 7000)

 

local combat9 = createCombatObject()

setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)

etCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -2.0, -5000, 2.0, 7000)

 

local combat10 = createCombatObject()

setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat10, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)

etCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -2.0, -5000, 2.0, 7000)

 

arr1 = {

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

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

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

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

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

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

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

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

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

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

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

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

}

 

arr10 = {

{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, 2, 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 function onCastSpell1(parameters)

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

end

 

local function onCastSpell2(parameters)

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

end

 

local function onCastSpell3(parameters)

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

end

 

local function onCastSpell4(parameters)

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

end

 

local function onCastSpell5(parameters)

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

end

 

local function onCastSpell6(parameters)

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

end

 

local function onCastSpell7(parameters)

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

end

 

local function onCastSpell8(parameters)

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

end

 

local function onCastSpell9(parameters)

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

end

 

local function onCastSpell10(parameters)

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

end

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10}

 

addEvent(onCastSpell1, 1, parameters)

addEvent(onCastSpell2, 100, parameters)

addEvent(onCastSpell3, 200, parameters)

addEvent(onCastSpell4, 300, parameters)

addEvent(onCastSpell5, 400, parameters)

addEvent(onCastSpell6, 500, parameters)

addEvent(onCastSpell7, 600, parameters)

addEvent(onCastSpell8, 700, parameters)

addEvent(onCastSpell9, 800, parameters)

addEvent(onCastSpell10, 900, parameters)

 

 

end

Ta meio Grande XD

 

Agora volte em spells coloque:

<instant name="Multiplas mortes" words="massive mort" lvl="1000" mana="1000" exhaustion="2000" needlearn="0" event="script" value="attack/massive mort.lua">

<vocation id="1"/>

<vocation id="2"/>

<vocation id="3"/>

<vocation id="4"/>

<vocation id="5"/>

<vocation id="6"/>

<vocation id="7"/>

<vocation id="8"/>

</instant>

 

Bom, se quiser, mude o dano da magia e o Lv para usar a magia, Mude a Mana gasta e a Exhaustion se quiser...

 

 

OBS: Meu 2 Script;

OBS²: Tetsado em OT 8.57

OBS³: No meu funcionou...

 

SS: Jájá eu ponho ;P

Link para o comentário
Compartilhar em outros sites

Bom, se o seu OT for de PVP Enforced e com XP alta Caiirá bem...

 

Bom, a magia é grande mais é boa...

 

As áreas dela ocupam bastante espaço, mais fazem um efeito legal...

Link para o comentário
Compartilhar em outros sites

Mano vou te dar uma simples dica quando vc fizer uma magia com mas de um elemento como essa sua ae sempre bote isso no final . entre and e a tag de cima!

 

"return TRUE"

 

entao sua magia vai ficar assim!

 

 

 

--Created with Peegarapa--

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE,COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 44)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -30, -2.0, -30, -1.7)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE,COMBAT_FIREDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 36)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC , -30, -2.0, -30, -1.7)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE,COMBAT_DEATHDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 17)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC , -30, -2.0, -30, -1.7)

 

arr1 = {

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

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

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

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

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

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

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

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

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

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

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

}

 

arr2 = {

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

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

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

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

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

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

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

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

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

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

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

}

 

arr3 = {

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

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

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

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

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

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

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

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

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

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

 

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, 100, parameters)

addEvent(onCastSpell2, 200, parameters)

addEvent(onCastSpell3, 300, parameters)

 

return TRUE

end

 

=)

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...