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

Item bonuses don't work?

Darted450

New Member
Joined
Apr 28, 2014
Messages
54
Reaction score
1
[cryingdamson 0.3.6 V8.2

Let's take for example, my bag (TIBIA 8.6)

Inside ITEMS.XML
<item id="1991" article="a" name="godly bag of distance">
<attribute key="weight" value="800" />
<attribute key="containerSize" value="24" />
<attribute key="slotType" value="backpack" />
<attribute key="skillDist" value="2" />
<attribute key="absorbPercentAll" value="3" />
<attribute key="showattributes" value="1" />
</item>

Item ingame:
10:11 You see a godly bag of distance (distance fighting +2, protection all +3%).
It weighs 8.00 oz.

When I equip the bag, I don't get any of the bonuses. I relogged and it didn't fix anything.
 
You need to add 2 lines to data/movements/movements.xml

Code:
<movevent type="Equip" itemid="1991" slot="backpack" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="1991" slot="backpack" event="function" value="onDeEquipItem"/>
 
You need to add 2 lines to data/movements/movements.xml

Code:
<movevent type="Equip" itemid="1991" slot="backpack" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="1991" slot="backpack" event="function" value="onDeEquipItem"/>

Awesome, the answer I was looking for! Thanks :)
 
Back
Top