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

Lua SlotType Or absorbPercent problem.

tompan

Member
Joined
Dec 13, 2008
Messages
646
Reaction score
24
Location
Sweden
Hey there otland.
So i have a little problem in my server i use Avesta 0.6.3 i think.
Well the problem is with Stone skin amulet and all other items with absorbPercent key value.
Items.xml code
Code:
	<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="absorbPercentPhysical" value="80"/>
	</item>
movements.xml code
Code:
	<movevent event="Equip" itemid="2197" slot="necklace" function="onEquipItem" />
	<movevent event="DeEquip" itemid="2197" slot="necklace" function="onDeEquipItem" />
So there is the code's everything is alright so far.
now we login and try but if i have the stone skin amulet in the hand Slot or arrow and neck slot it will work anyways. means i can use 4 stone skin amulets at the same time result in no DMG at all to the player wearing it.

BUT the amulet of loss preventLoss only works if i have it in the neck slot so my conclusion is that the attribute key = absorbPercent...fire/physical you name it doesnt cooporate with the slotType or something.

PLEASE HELP ME OUT!!

Regaards Johan.
 

Similar threads

Replies
0
Views
183
Back
Top