Uma spell feita por mim, n sei se ja fizeram algo assim, mas ta ai
va em data/spell/scripts, copie algum arquivo e nomei-o como saint explosion , abra o arquivo, apague oq tem dentro e coloque
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 4)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -3.0, -150, -1.6, -150)
arr = {
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0},
{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},
{0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
dps va em spells.xml e coloque
<instant name="Saint Explosion" words="Saint Explosion" direction="1" lvl="70" maglv="50" mana="1000" soul="0" exhaustion="1" prem="1" enabled="1" script="saint explosion.lua"><vocation id="2"/><vocation id="1"/><vocation id="6"/><vocation id="5"/><vocation id="9"/><vocation id="10"/></instant>
Ta ai, espero que gostem