Bash
Member
- Joined
- Nov 7, 2008
- Messages
- 116
- Reaction score
- 15
Hello! Im using OTX 7.72 based on tfs 0.3. I want to add the vocation restriction (i know it is in movements.xml) for some items that gives magic level
for example dwarven armor:
i tried both codes, and didnt work, still all vocations can wear it.
Thanks!! Hope someone can help me!
for example dwarven armor:
i tried both codes, and didnt work, still all vocations can wear it.
Code:
<!-- Dwarven Armor -->
<movevent type="Equip" itemid="2503" slot="armor" event="function" value="onEquipItem"/>
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="2503" slot="armor" event="function" value="onDeEquipItem"/>
Code:
<!-- Dwarven Armor -->
<movevent type="Equip" itemid="2503" slot="armor" event="function" value="onEquipItem"/>
<vocation name="Sorcerer"/>
<vocation name="Druid"/>
<vocation name="Knight"/>
<vocation name="Paladin"/>
</movevent>
<movevent type="DeEquip" itemid="2503" slot="armor" event="function" value="onDeEquipItem"/>
Thanks!! Hope someone can help me!