Nome: Exevo con star
Tipo: Spell
Versao: 8.4
Testado em: Slyfer Yurots v.FINAL
Criador: GOD Fire
Classe: Paladin e Royal Paladin
_______________________________________________
Essa Spell sao dois Hits de Energia, bom para servers PVP, Spell bem simples mais muitos gostaram e to postando.
Deve ser colocada em Spell/scripts/Attack
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT,31)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.5, -32, -2.9, -400)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT,31)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.5, -32, -2.9, -400)
local arr1 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 1, 0, 1, 0, 1, 0, 1, 0},
{0, 0, 1, 0, 1, 0, 1, 0, 0},
{0, 1, 0, 1, 0, 1, 0, 1, 0},
{0, 0, 1, 0, 3, 0, 1, 0, 0},
{0, 1, 0, 1, 0, 1, 0, 1, 0},
{0, 0, 1, 0, 1, 0, 1, 0, 0},
{0, 1, 0, 1, 0, 1, 0, 1, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
}
local arr2 = {
{1, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 0, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 3, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 0, 0, 0},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
}
local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end
local function onCastSpell2(parameters)
doCombat(parameters.cid, parameters.combat2, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 =
combat2 }
addEvent(onCastSpell1, 150, parameters)
addEvent(onCastSpell2, 270, parameters)
Deve ser colocado em Spells.xml
<instant name="exevo con star" words="exevo con star" lvl="300" mana="2000" prem="1" exhaustion="2000" selftarget="1" needlearn="0" script="attack/exevo con star.lua">
<vocation name="paladin"/>
<vocation name="Royal paladin"/>
</instant>