• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Level Requeriment to cast spells

Euro Tibia

New Member
Joined
Feb 24, 2015
Messages
2
Reaction score
0
Each spell has a certain level requirement to cast, is there a way to do this?
Im not talking about magiclevel i mean EXP level

thx
 
Inside of spells.xml you will see lvl="a number", that is the experience level required to cast the spell.
Example:
Code:
<instant name="Energy Strike" words="exori vis" lvl="12" mana="20" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="attack/energy strike.lua">
 
Assuming you're using TFS 1.0

in spells.xml
Code:
<instant group="attack" spellid="62" name="Annihilation" words="exori gran ico" lvl="110" mana="300" prem="1" range="1" needtarget="1" blockwalls="1" needweapon="1" exhaustion="30000" groupcooldown="4000" needlearn="0" script="attack/annihilation.lua">
        <vocation name="Knight"/>
        <vocation name="Elite Knight"/>
    </instant>

Notice the attribute lvl="110"?
this is where you set the required level.
 
Hello thanks for your reply, theres no ''lvl''


<conjure name="Fire Bomb" words="adevo mas flam" maglv="9" mana="150" soul="4" reagentId="2260" conjureId="2305" conjureCount="2" prem="0" needlearn="0" function="conjureRune">
<vocation name="Sorcerer"/> <vocation name="Master Sorcerer"/>
<vocation name="Druid"/> <vocation name="Elder Druid"/>

The Forgotten Server - Version 0.3 (Crying Damson).
 
Back
Top