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

Vocation restriction OTX

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.

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!
 
Solution
you can't have /> to close the movevent tag if you want the vocations to register
XML:
<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"/>
you can't have /> to close the movevent tag if you want the vocations to register
XML:
<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"/>
 
Solution
Back
Top