data/spells/scripts/create a new lua called:slepper
data/spells/spells.xml
PHP:
setCombatParam(combat, COMBAT_PARAM_TYPE,COMBAT_ICEDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT,65)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -3.2, -30, -1.1, 0)
local 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, 1, 1, 3, 1, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 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
data/spells/spells.xml
PHP:
<instant name="The Sleeper" words="sleeper soul" lvl="80" mana="500" direction="1" exhaustion="2500" needlearn="0" script="sleeper.lua">