colocar essa parte bo spell xml
--credits Vinicius--
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE,COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT,CONST_ME_MORTAREA)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.0, -999, 1.6, -999999)
arr = {
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0},
{1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1},
{1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1},
{1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1},
{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, 1, 1, 1, 1, 1, 0, 0, 0},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
e essa vc pega uma magia da pasta spell>scropts e apaga tudo e cole isso:
<instant name="cassador de demon" words="cassador de demon" direction="1" lvl="50" maglv="30" mana="30" soul="o" exhaustion="1" prem="0" enabled="1" script="colocar essa parte bo spll xml
a e se alguen de vcs tiveren alguen cast spell de tibia 8.4 de magias multi-wave me passe aqui por favor