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

Lua Items

Big Gunz

Active Member
Joined
Nov 17, 2011
Messages
1,064
Reaction score
32
Location
United States
can someone please explain how to make the an item only work for one profesion? for example: yalahari legs (only paladins can use them) Thank you!
 
there is difrance between items
the weapons you can edit it weapons.xml
and the other items
legs - armors - helmets - shields - rings can be edited in movements.xml

i give you examples

this a weapon example
in weapons.xml

PHP:
	<wand id="8911" level="22" mana="5" min="27" max="33" type="ice" event="function" value="default"> <!-- Northwind Rod -->
<vocation id="2"/>
</wand>

vocation 2 is druid

and here is an example in movements

PHP:
	<movevent type="Equip" itemid="8890" slot="armor" level="100" event="function" value="onEquipItem">
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
</movevent>

can be used by sorcerers and master sorcerers
 
Back
Top