• 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 Bonus Health and Mana to Equipment

Brohemith

New Member
Joined
Nov 28, 2010
Messages
46
Reaction score
0
Location
United States of America
Hey there, i was curios if there was a way to make an item give you, say, 25% more health/mana, or even both!

I dont know if it would be as simple as {<attribute key="xxxx" value="xxxx" />}

Thank you in advance, I shall REP++.
 
data/items items.xml

search for the equipment you want to add this attribute to, and use what syntetic suggested. just like so:
Code:
<item id="8892" article="an" name="ethno coat">
		<attribute key="armor" value="7" />
		<attribute key="slotType" value="body" />
		<attribute key="weight" value="2550" />
                <attribute key="maxhealthpercent" value="25"/>
                <attribute key="maxmanapercent" value="25"/>
	</item>

Now go to data/movements movements.xml
This is the movement for this item:
Code:
	<movevent type="Equip" itemid="8892" slot="armor" event="function" value="onEquipItem">
		<vocation id="1"/>
		<vocation id="5" showInDescription="0"/>
		<vocation id="2"/>
		<vocation id="6" showInDescription="0"/>
	</movevent>
	<movevent type="DeEquip" itemid="8892" slot="armor" event="function" value="onDeEquipItem"/>

along with the required vocations to equip it, if you want without vocations do:
Code:
<movevent type="Equip" itemid="8892" slot="armor" event="function" value="onEquipItem">
	</movevent>
	<movevent type="DeEquip" itemid="8892" slot="armor" event="function" value="onDeEquipItem"/>
just that.

So now you can edit whichever item you want by using the examples here:)
If you edit an alredy existing onequip item such as dwarven legs or magma coat you don't have to add it into the movements.xml.
You can always use ctrl+f in the movements.xml (or any text document) and search for the item id that you just edited to check if it's alredy there.
 
Last edited:
Its still not adding mana, here, let me show you what i have

Code:
</item>
    <item id="1995" article="a" name="bag of mana">
        <attribute key="weight" value="800" />
        <attribute key="containerSize" value="20" />
		<attribute key="maxmanapercent" value="25"/>
        <attribute key="slotType" value="backpack" />
    </item>

Code:
<movevent type="Equip" itemid="1995" slot="backpack" level="1000" event="function" value="onEquipItem">
		<vocation id="1"/>
		<vocation id="2" showInDescription="0"/>
		<vocation id="3"/>
		<vocation id="5" showInDescription="0"/>
		<vocation id="6"/>
		<vocation id="7" showInDescription="0"/>
	</movevent>

Its a blue bag, i just placed it in the <-- others --> section of movements, perhaps that could be it?

REP++
 
Try this
Lua:
<attribute key="maxManaPointsPercent" value="125"/>
<attribute key="maxHitPointsPercent" value="125"/>
 
Back
Top