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

how do u make it so only 1 class can use a weapon

Strata

Hoster
Joined
Apr 12, 2010
Messages
124
Reaction score
6
Location
USA
Hello I am using TFS 0.3.6. i was wondering how exactly do you go about making it so only a certian vocation can use a weapon i have added the info to movements

<movevent type="Equip" itemid="11398" slot="two-handed" level="1" event="function" value="onEquipItem">
<vocation name="Sniper"/>
<vocation name="Elite Marksmen"/>showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="11398" slot="two-handed" event="function" value="onDeEquipItem"/>

but every class can still use it how do i fix it.
 
/> unecessary in middle.

Try this.
Code:
<movevent type="Equip" itemid="11398" slot="two-handed" level="1" event="function" value="onEquipItem">
<vocation name="Sniper"/>
<vocation name="Elite Marksmen" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="11398" slot="two-handed" event="function" value="onDeEquipItem"/>
 
ahh, I know, weapons.xml, do it there, because th game is set up so that you can put anything in your hand, and weapons check who can use it when you try and use it.
 
Back
Top