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

Special Item

Scurzo

New Member
Joined
Aug 23, 2008
Messages
66
Reaction score
0
I was wondering if anyone could help me to do an item that adds 50% Hp and 50% Mana to the Total Max amount of HP/MANA of a player when is equiped (it could be an armor or something like that)


Im using Mystic Spirit
 
Last edited:
example, add in items.xml:
Code:
	<item id="2472" article="a" name="magic plate armor">
		<attribute key="description" value="An enchanted gem glows on the plate armor."/>
		<attribute key="weight" value="8500"/>
		<attribute key="armor" value="17"/>
		<attribute key="slotType" value="body"/>
[B][COLOR="Red"]		<attribute key="maxhitpointspercent" value="150"/>
		<attribute key="maxmanapointspercent" value="150"/>[/COLOR][/B]
	</item>
And if it's not already added in movements.xml, add it like this:
Code:
	<movevent event="Equip" itemid="[B][COLOR="Red"]2472[/COLOR][/B]" slot="armor" function="onEquipItem">
		<vocation name="Knight"/>
		<vocation name="Elite Knight" showInDescription="0"/>
		<vocation name="Paladin"/>
		<vocation name="Royal Paladin" showInDescription="0"/>
	</movevent>
	<movevent event="DeEquip" itemid="[B][COLOR="Red"]2472[/COLOR][/B]" slot="armor" function="onDeEquipItem"/>
 
Back
Top