• 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 Custom items does not work?

agel

New Member
Joined
Jul 21, 2009
Messages
49
Reaction score
0
I'm using TFS 0.3.4PL2, this is in my items.xml:
<item id="2504" name="dwarven legs">
<attribute key="weight" value="3000"/>
<attribute key="armor" value="3"/>
<attribute key="slotType" value="legs"/>
<attribute key="magiclevelpoints" value="5"/>
<attribute key="absorbPercentDeath" value="15"/>
<attribute key="skillShield" value="7"/>
<attribute key="skillSword" value="7"/>
<attribute key="skillAxe" value="7"/>
<attribute key="skillClub" value="7"/>
<attribute key="skillDist" value="7"/>
</item>
When I look at the item, it shows everything properly. But when you put it on - which you also can do - no skills change. What have I done wrong?
 
Last edited:
Add this in movements.xml:
PHP:
<movevent type="Equip" itemid="2504" slot="legs" event="function" value="onEquipItem">
	<movevent type="DeEquip" itemid="2504" slot="legs" event="function" value="onDeEquipItem"/>

If you want the legs to work for certain vocations:
PHP:
	<movevent type="Equip" itemid="2504" slot="legs" event="function" value="onEquipItem">
		<vocation name="Knight"/>
		<vocation name="Elite Knight" showInDescription="0"/>
		<vocation name="Paladin"/>
		<vocation name="Royal Paladin" showInDescription="0"/>
	</movevent>
	<movevent type="DeEquip" itemid="2504" slot="legs" event="function" value="onDeEquipItem"/>


Rep++? ;*
 
Back
Top