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

Need help with %dmg to item

Enter data/items items.xml

Find the item id of your helmet or whatever.
And add this attribute to it: (This example = 80%, taken from stone skin amulet).
LUA:
		<attribute key="absorbPercentAll" value="80"/>

Then you enter
data/movements/movements.xml
and add:
LUA:
	<movevent event="Equip" itemid="XXXX" slot="head" function="onEquipItem"/>
	<movevent event="DeEquip" itemid="XXXX" slot="head" function="onDeEquipItem"/>

Thats how you do it in TFS 0.2.5, I think its almost the same way on crying damson.

You can use lots of attributes, example:
LUA:
	<item id="2197" article="a" name="stone skin amulet">
		<attribute key="weight" value="760"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="charges" value="5"/>
		<attribute key="showcharges" value="1"/>
		<attribute key="absorbPercentAll" value="80"/>
	</item>

and

LUA:
	<item id="2198" article="an" name="elven amulet">
		<attribute key="weight" value="270"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="charges" value="50"/>
		<attribute key="showcharges" value="1"/>
		<attribute key="absorbPercentPhysical" value="10"/>
		<attribute key="absorbPercentElements" value="10"/>
	</item>

LUA:
	<item id="2199" article="a" name="garlic necklace">
		<attribute key="weight" value="380"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="charges" value="150"/>
		<attribute key="showcharges" value="1"/>
		<attribute key="absorbPercentLifeDrain" value="20"/>
	</item>
	<item id="2200" article="a" name="protection amulet">
		<attribute key="weight" value="550"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="charges" value="250"/>
		<attribute key="showcharges" value="1"/>
		<attribute key="absorbPercentPhysical" value="10"/>
	</item>
	<item id="2201" article="a" name="dragon necklace">
		<attribute key="weight" value="630"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="charges" value="200"/>
		<attribute key="showcharges" value="1"/>
		<attribute key="absorbPercentFire" value="10"/>
	</item>

etc... Just use your creativity.
 
Last edited:
Back
Top