![errorluas.JPG errorluas.JPG](https://static3.otland.net/d/attachments/2/2144-0efa6751b6bc3f3a84989ac4d8e36a0d.jpg)
Hello. I made this custom spell. Im using TFS 0.3.6pl. This is the script im using. This is what i have is spells.xml <instant name="Jotolon" words="exevo gran mas jotolon" lvl="60" mana="1200" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="attack/jotolon loco.lua">
<vocation id="2"/>
<vocation id="6"/>
</instant>
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE,COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT,CONST_ME_TELEPORT)
setCombatParam(combat, COMBAT_PARAM_EFFECT,CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.0, -1000, 1.6, -)
arr = {
{1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1},
{0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0},
{0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0},
{0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0},
{1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end