local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE,COMBAT_)
setCombatParam(combat, COMBAT_PARAM_EFFECT,CONST_ME_)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.0, -150, 1.6, -350)
arr = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0},
{0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
By Alek
<instant name="Energy mort" words="Energy mort" direction="1" lvl="12" maglv="3" mana="60" soul="0" exhaustion="1" prem="1" enabled="1" script="Energy mort.lua"><vocation id="2"/><vocation id="1"/><vocation id="6"/><vocation id="5"/></instant>
Your Alek