• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Items for vocations

Fare

Advanced OT User
Joined
Apr 3, 2008
Messages
2,387
Reaction score
151
Location
Ukraine
I've got an armor :15:39 You see a windborn colossus armor (Arm:15, protection earth -5%, energy +5%).
It can only be wielded properly by knights of level 90 or higher.
It weighs 120.00 oz.
It has 5% energy protection, but also increases damage taken from earth by 5%.

And when I've use it on sorc,I can equip this armor and armor still works(I've tested with rats). Yeah, I have movements.xml :
PHP:
<movevent event="DeEquip" itemid="8882" slot="armor" function="onDeEquipItem"/>
	<movevent event="Equip" itemid="8883" slot="armor" level="90" function="onEquipItem">
		<vocation name="Knight"/>
		<vocation name="Elite Knight" showInDescription="0"/>
	</movevent>

I've use TFS 0,3 alpha.

It's a bug? or missconfig? Can somebody test it for me?
 
Last edited:
Code:
<item id="8883" article="a" name="windborn colossus armor">
		<attribute key="description" value="It has 5% energy protection, but also increases damage taken from earth by 5%."/>
		<attribute key="weight" value="12000"/>
		<attribute key="armor" value="15"/>
		<attribute key="absorbPercentEnergy" value="5"/>
		<attribute key="absorbPercentEarth" value="-5"/>
		<attribute key="slotType" value="body"/>
	</item>
Code:
	<movevent event="Equip" itemid="8883" slot="armor" level="90" function="onEquipItem">
		<vocation name="Warrior"/>
		<vocation name="Elite Warrior" showInDescription="0"/>
	</movevent>
	<movevent event="DeEquip" itemid="8883" slot="armor" function="onDeEquipItem"/>

my bad, mistake in first post ;D
 
Back
Top