• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Help with spell.

Boyegas

New Member
Joined
Jan 27, 2009
Messages
159
Reaction score
1
errorluas.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
 
Back
Top