• 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!

Solved [TFS 1.0] Items.xml

Sentinel3

New Member
Joined
Oct 16, 2014
Messages
180
Reaction score
0
Hello everyone,

Using: TFS 1.0 with Tibia 10.41

I got a problem and it's very very weird, becouse when I wear Umbral master spellbook didn't give me any attribute (for example: magic level). And when I wear Spellbook of ancient arcana it gives me the attributes.


Umbral master spellbook, in items.xml
HTML:
<item id="22424" article="a" name="umbral master spellbook">
        <attribute key="weight" value="3500" />
        <attribute key="magiclevelpoints" value="5" />
        <attribute key="absorbPercentEarth" value="5" />
        <attribute key="absorbPercentFire" value="5" />
        <attribute key="absorbPercentIce" value="5" />
        <attribute key="absorbPercentEnergy" value="5" />
        <attribute key="defense" value="25" />
        <attribute key="weaponType" value="shield" />
    </item>

Spellbook of ancient arcana, in items.xml
HTML:
<item id="16112" article="a" name="spellbook of ancient arcana">
        <attribute key="weight" value="2500" />
        <attribute key="description" value="It shows your spells and can also shield against attacks when worn." />
        <attribute key="defense" value="19" />
        <attribute key="magiclevelpoints" value="4" />
        <attribute key="weaponType" value="shield" />
        <attribute key="absorbPercentDeath" value="5" />
        <attribute key="showattributes" value="1" />
    </item>

Thank you so much for read, and I hope that you can help me.
 
You need to add it also to movements.xml in order to work, with onEquip and onDeEquip functions.
Like this:
Code:
  <movevent event="Equip" itemid="22424" slot="shield" level="250" function="onEquipItem">
        <vocation name="Sorcerer"/>
        <vocation name="Master Sorcerer" showInDescription="0"/>
        <vocation name="Druid"/>
        <vocation name="Elder Druid" showInDescription="0"/>
    </movevent>
    <movevent event="DeEquip" itemid="22424" slot="shield" function="onDeEquipItem"/>
 
PHP:
   <item id="22424" article="a" name="umbral master spellbook">
        <attribute key="weight" value="3000" />
        <attribute key="magiclevelpoints" value="4" />
        <attribute key="absorbPercentEarth" value="5" />
        <attribute key="absorbPercentFire" value="5" />
        <attribute key="absorbPercentIce" value="5" />
        <attribute key="absorbPercentEnergy" value="5" />
        <attribute key="defense" value="20" />
        <attribute key="weaponType" value="shield" />

PHP:
<item id="16112" article="a" name="spellbook of ancient arcana">
        <attribute key="weight" value="2500" />
        <attribute key="description" value="It shows your spells and can also shield against attacks when worn." />
        <attribute key="defense" value="19" />
        <attribute key="weaponType" value="shield" />
        <attribute key="absorbPercentDeath" value="5" />
        <attribute key="magiclevelpoints" value="4" />
        <attribute key="showattributes" value="1" />
 
Back
Top