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

Armor that heals you

What you mean with heal?

1. that the armor heal u like a potion?
2. that the armor give u maxhp (if u have 1500 u wear and now u have 2000)
3. that the armor heals your hp like soft boots

1. lua script (maybe)


2. <attribute key="MaxHealth" value="1" /> (value=amount of hp)
<attribute key="MaxMana" value="1" /> (value=amount of mana)


3. <attribute key="healthGain" value="1" />
(how much hp will health)
<attribute key="healthTicks" value="2000" />
(how much time to heal) (2000=2 sec, 1 sec = 1000)
<attribute key="manaGain" value="2" />
the same thing above
<attribute key="manaTicks" value="1000" />
the same thing above
 
ok so you want the sword to heal?

items.xml
Lua:
	<item id="2407" article="a" name="bright sword">
		<attribute key="description" value="The blade shimmers in light blue."/>
		<attribute key="weight" value="2900"/>
		<attribute key="defense" value="30"/>
		<attribute key="attack" value="36"/>
		<attribute key="weaponType" value="sword"/>
		<attribute key="extradef" value="1"/>
		<attribute key="healthGain" value="1"/>
		<attribute key="healthTicks" value="2000"/>
	</item>

movements.xml
Code:
	<movevent type="DeEquip" itemid="2407" slot="shield" event="function" value="onDeEquipItem"/>
	<movevent type="Equip" itemid="2407" slot="shield" event="function" value="onEquipItem">

	</movevent>

I'm not sure if this will work on movements because i added it as a shield there, but i dont know try it out! :p

Also i just found out that my soft boots, dosnt heal me ? What can i do

Add them in movements.xml
Code:
	<movevent type="Equip" itemid="2640" slot="feet" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="2640" slot="feet" event="function" value="onDeEquipItem"/>
 
I've tried improving a pair of boots to reduce damage taken by everything + regenerating health and mana, but when i try to save my items.xml it says i cannot save in the texture format if i want the formations to stay.
When i change the armor rate of things it doesn't say anything of the above mentioned, but as soon as i try to do like an soft boot 2.0, i messes up.. help?
 
Well I am using 8.54, and this shit keeps happening to me.
As soon as i try to do the health+mana shit scripting on any other items than ring of healing, life ring or soft boots, it says i can't save the file changes, anyone got the solution?
 
Back
Top