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

Add Health or mana %

Tjay

Retired Hoster
Joined
Nov 25, 2009
Messages
588
Reaction score
69
Location
Behind you. Look out!
Is there a code what adds like health% and mana%?
I want to make a quest that gives new equipment that add 10% health or mana.
Code:
		<attribute key="maxhealthpercent" value="10"/>
		<attribute key="maxmanapercent" value="10"/>
I used those but it didnt work is was like takin health away lol.

Thanks in advance,
Tjay
 
Lua:
<movevent type="Equip" itemid="xxxx" slot="depends if are head, armor, legs, feet" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="xxxx" slot="depends if are head, armor, legs, feet" event="function" value="onDeEquipItem"/>

if they are equip should it works. :D
 
Code:
	<item id="8866" article="a" name="Donation mage armor">
		<attribute key="weight" value="2850"/>
		<attribute key="armor" value="15"/>
		<attribute key="maxhealthpercent" value="10"/>
		<attribute key="maxmanapercent" value="10"/>
		<attribute key="slotType" value="body"/>
	        <attribute key="magiclevelpoints" value="20"/>
        </item>
This is one of the items.
 
you did something like this...
Lua:
<movevent type="Equip" itemid="8866" slot="armor" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="8866" slot="armor" event="function" value="onDeEquipItem"/>
 
actually im using
Code:
	<movevent type="Equip" itemid="8866" slot="armor" event="function" value="onEquipItem">
		<vocation id="2"/>
		<vocation id="6" showInDescription="0"/>
	</movevent>
	<movevent type="DeEquip" itemid="8866" slot="armor" event="function" value="onDeEquipItem"/>
 
Lua:
	<movevent type="Equip" itemid="8866" slot="armor" event="function" value="onEquipItem">
	<movevent type="DeEquip" itemid="8866" slot="armor" event="function" value="onDeEquipItem"/>
		<vocation id="2"/>
		<vocation id="6" showInDescription="0"/>
	</movevent>

Try this way i did in my server and it works.
 
Back
Top