Essa Spell foi 90% copiada da Spell Big Bang feita por KryServer
O que eu fiz foi editar a área do ataque para parecer uma onda e o elemento.
Entre na pasta data/spells/scripts(pode estar como data/spells/scripts/attack dependendo do seu ot) do seu ot, copie qualquer arquivo .xml, renomeie para deathwave.xml, abra e cole o código a seguir:
local combat16 = createCombatObject()
setCombatParam(combat16, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat16, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatFormula(combat16, COMBAT_FORMULA_LEVELMAGIC, -18.0, -1800, -18.0, -1800)
local combat17 = createCombatObject()
setCombatParam(combat17, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat17, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatFormula(combat17, COMBAT_FORMULA_LEVELMAGIC, -20.5, -2050, -20.5, -2050)
local combat18 = createCombatObject()
setCombatParam(combat18, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat18, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatFormula(combat18, COMBAT_FORMULA_LEVELMAGIC, -22.0, -2200, -22.0, -2200)
local combat19 = createCombatObject()
setCombatParam(combat19, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat19, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatFormula(combat19, COMBAT_FORMULA_LEVELMAGIC, -23.5, -2350, -23.5, -2350)
local combat20 = createCombatObject()
setCombatParam(combat20, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat20, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatFormula(combat20, COMBAT_FORMULA_LEVELMAGIC, -25.0, -2500, -25.0, -2500)
local combat21 = createCombatObject()
setCombatParam(combat20, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat20, COMBAT_PARAM_EFFECT, CONST_ME_MORTA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0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
}
local area16 = createCombatArea(arr16)
local area17 = createCombatArea(arr17)
local area18 = createCombatArea(arr18)
local area19 = createCombatArea(arr19)
local area20 = createCombatArea(arr20)
local area21 = createCombatArea(arr21)
setCombatArea(combat16, area16)
setCombatArea(combat17, area17)
setCombatArea(combat18, area18)
setCombatArea(combat19, area19)
setCombatArea(combat20, area20)
setCombatArea(combat21, area21)
local function onCastSpell16(parameters)
doCombat(parameters.cid, parameters.combat16, parameters.var)
end
local function onCastSpell17(parameters)
doCombat(parameters.cid, parameters.combat17, parameters.var)
end
local function onCastSpell18(parameters)
doCombat(parameters.cid, parameters.combat18, parameters.var)
end
local function onCastSpell19(parameters)
doCombat(parameters.cid, parameters.combat19, parameters.var)
end
local function onCastSpell20(parameters)
doCombat(parameters.cid, parameters.combat20, parameters.var)
end
local function onCastSpell21(parameters)
doCombat(parameters.cid, parameters.combat21, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat16 = combat16, combat17 = combat17, combat18 = combat18,
combat19 = combat19, combat20 = combat20, combat21 = combat21 }
addEvent(onCastSpell16, 0, parameters)
doSendAnimatedText(getPlayerPosition(cid), "DeathWave", TEXTCOLOR_WHITE)
addEvent(onCastSpell17, 200, parameters)
addEvent(onCastSpell18, 400, parameters)
addEvent(onCastSpell19, 600, parameters)
addEvent(onCastSpell20, 800, parameters)
addEvent(onCastSpell21, 1000, parameters)
end
Depois abra o arquivo spells.xml( da pasta data/spells) e cole o seguinte trecho:
<instant name="Death Wave" words="exevo gran mas mort" lvl="300" mana="1500" selftarget="1" prem="0" exhaustion="2000" needlearn="0" script="attack/deathwave.lua]">
<vocation name="Sorcerer"/>
<vocation name="Master Sorcerer"/>
<vocation name="Druid"/>
<vocation name="Elder Druid"/>
</instant>
exevo gran mas mort=palavras para ativar a magia.
300=level para usar a magia.
1500=quantidade de mana para usar a magia.
attack/deathwave.lua=caminho para o script da magia(primeiro código)
<vocation name="Sorcerer"/>
<vocation name="Master Sorcerer"/>
<vocation name="Druid"/>
<vocation name="Elder Druid"/>= vocações necessárias para se usar a magia.
Pronto, acho que está bem explicado, qualquer dúvida é só perguntar. Lembrando que 90% dos créditos são do Spell Big Bang feita por KryServer
Aqui tem algumas fotos do spell: