• 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 to add functions to equipment

Scootakid

New Member
Joined
Jun 6, 2009
Messages
32
Reaction score
0
i would like to make my armor etc., give hp and mana, like a percent. and also a magic level percent, and if there is any easier way to make it immuned to everything please tell. if not please tell me all the things to make it immuned to.
 
Go at items.xml. And find soft boots - on the soft boots you will find a another softboots id, like 2140 or something. Then go to it in items.xml and add the rows at your armors instead.
 
Code:
<attribute key="healthGain" value="1" />
<attribute key="healthTicks" value="2000" />
<attribute key="manaGain" value="2" />
<attribute key="manaTicks" value="1000" />

These few lines will give you 1 hp every 2 seconds and 2 mp every 1 second.

dont understand your further part of statement, so can't help you <_<
 
Example for magic plate armor:
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="maxHealthPercent" value="150"/>
		<attribute key="maxManaPercent" value="150"/>
		<attribute key="absorbPercentAll" value="100"/>[/COLOR][/B]
	</item>
(if the player has 1000 hp and 1000 mana, he would have 1500 hp and 1500 mana after equipping the armor)

Don't forget to register it in movements.xml if it's not there already!
 
Back
Top Bottom