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

itens.xml

Exura ATS

New Member
Joined
Feb 5, 2017
Messages
72
Reaction score
4
Hello again, everyone!!!

I'm having a little headache with this script, I'm trying to add some attributes to some itens, but they aren't working when I equip them. Their status tell me they are right, but when I equip them nothing happens, their boosts don't work.

Please, have you guys a look on my script and tell me what I'm doing wrong, please:

19:41 You see ferumbras' hat (Arm:5, magic level +3).
It weighs 8.00 oz.

<item id="5903" name="ferumbras' hat">
<attribute key="weight" value="800"/>
<attribute key="armor" value="5"/>
<attribute key="slotType" value="head"/>
<attribute key="magicpoints" value="3"/>
</item>

19:41 You see a deathbringer (magic level +2).
It can only be wielded properly by wizards and druids of level 150 or higher.
It weighs 28.00 oz.

<item id="13760" article="a" name="deathbringer">
<attribute key="weight" value="2800"/>
<attribute key="weaponType" value="wand"/>
<attribute key="shootType" value="death"/>
<attribute key="magicpoints" value="2"/>
<attribute key="range" value="4"/>
</item>

19:42 You see the calamity (Atk:62, Def:30, sword fighting +3).
It can only be wielded properly by warriors of level 100 or higher.
It weighs 160.00 oz.

<item id="8932" article="the" name="calamity">
<attribute key="weight" value="16000"/>
<attribute key="defense" value="30"/>
<attribute key="attack" value="62"/>
<attribute key="weaponType" value="sword"/>
<attribute key="slotType" value="two-handed"/>
<attribute key="skillSword" value="3"/>
</item>

19:42 You see the epiphany (Atk:55, Def:40, sword fighting +2).
It can only be wielded properly by players of level 120 or higher.
It weighs 45.00 oz.

<item id="8931" article="the" name="epiphany">
<attribute key="weight" value="4500"/>
<attribute key="defense" value="40"/>
<attribute key="attack" value="55"/>
<attribute key="weaponType" value="sword"/>
<attribute key="skillSword" value="2"/>
</item>

19:42 You see a wailing widow's necklace (speed +9).
It weighs 8.00 oz.

<item id="11329" article="a" name="wailing widow's necklace">
<attribute key="weight" value="800"/>
<attribute key="slotType" value="necklace"/>
<attribute key="speed" value="18"/>
<attribute key="showattributes" value="1"/>
</item>
 
did you add them to movements.xml aswell?
Do I need to add every item I create or edit on itens.xml in movements.xml too?

Speed on description is half of what you put in "speed" key, look at boots of haste.
Boots of Haste:
<item id="2195" name="boots of haste">
<attribute key="weight" value="800"/>
<attribute key="slotType" value="feet"/>
<attribute key="speed" value="40"/>
<attribute key="showattributes" value="1"/>
</item>
 
20:37 You see boots of haste (speed +20).
It weighs 7.50 oz.


<attribute key="speed" value="40"/>


And yes, you gain 40 speed using BoH

dinpjr3.jpg
 
20:37 You see boots of haste (speed +20).
It weighs 7.50 oz.


<attribute key="speed" value="40"/>


And yes, you gain 40 speed using BoH
Well, not in my case:

97rv9s.png


2jacj0g.png


Boots of Haste on itens.xml:
<item id="2195" name="boots of haste">
<attribute key="weight" value="800"/>
<attribute key="slotType" value="feet"/>
<attribute key="speed" value="40"/>
<attribute key="showattributes" value="1"/>
</item>

I've heard a long time ago that every 2 points of speed is equal to 1 point in-game, like on tibia.com, every level you advance, you gain 2 points of speed. That's why I'm using 18 points of speed to gain +9 speed in-game (ww's necklace)

im pretty sure you ahve to do it to every item that does something to the character ex. regen health or gives speed

I'm gonna try this. Thanks bro!
 
Everything is working now, I only needed to add these lines on movements.xml:
<!-- Item Name -->
<movevent type="Equip" itemid="ITEM ID" slot="SLOT" event="function" value="onEquipItem">
<vocation id="VOCATION ID"/>
</movevent>
<movevent type="DeEquip" itemid="ITEM ID" slot="SLOT" event="function" value="onDeEquipItem"/>
Thanks guys!!!
 
Back
Top Bottom