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

Item script

DestinationSer

@echo off
Joined
Mar 7, 2009
Messages
2,806
Solutions
1
Reaction score
676
Hey!
Today i am requesting a script that adds mana / health regen to a certain item..
Please, I hope somebody reads this and that you are able to help me.

Thanks
 
here you are without source edit

lol
he don't need source edit man
he request regain mana and health
why does he need that's source edit

here you are man

look at the soft boots in item.xml
have those more lines
anyway u can add those to any item in your xml file

items.xml

LUA:
                                <attribute key="healthGain" value="how much health you need" />
		<attribute key="healthTicks" value="time to regain health 1000 = 1 sec" />
		<attribute key="manaGain" value="how much mana you need" />
		<attribute key="manaTicks" value="time to regain mana 1000 = 1 sec" />

in your movements.xml do this

LUA:
                <movevent event="Equip" itemid="id of your item" slot="feet" function="onEquipItem"/>
	<movevent event="DeEquip" itemid="same id of your item" slot="feet" function="onDeEquipItem"/>
more explain when player equip item will regain the health and mana
if he deEquip nothing will happen Oki

now if u need to make them by vocation

so in movements.xml do this

LUA:
               <movevent event="Equip" itemid="item id" slot="feet" function="onEquipItem">
		<vocation name="vocation"/>
		<vocation name="promotion of vocation" showInDescription="0"/>
	</movevent>
	<movevent event="DeEquip" itemid="same item id" slot="feet" function="onDeEquipItem"/>

for more explain feel free to ask
 
Last edited:
you don't understand him he don't need to add player mana when equip item and it's also can be done with script no source

he need regain mana and heal like soft boots
 
Back
Top