• Congratulations to the OTLand February Mapping Competition Winner! The grand prize of Otland Premium goes to eiserne festung.
  • 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!

Create / modify an amulet problem

Daniel Kopeć

Premium User
Premium User
Joined
Dec 8, 2018
Messages
29
Reaction score
4
How to create or modify any amulet to regenerate mana and hp etc. For example Ancient Tiara?

I added attributes to Ancient Tiara in items.xml and in movements.xml

XML:
<! - Amulets ->
<movevent type = "Equip" itemid = "2139" slot = "necklace" event = "function" value = "onEquipItem" />
<movevent type = "DeEquip" itemid = "2139" slot = "necklace" event = "function" value = "onDeEquipItem" />

but it doesn't work
 

M0ustafa

1337
Support Team
Joined
Mar 4, 2017
Messages
2,414
Solutions
301
Reaction score
987
Location
Egypt
TFS version? How you added it to your items.xml? Test it with a normal player, Those XML lines look fine or maybe you have to remove the extra spaces after every "=" so it looks like this.
XML:
<! - Amulets ->
<movevent type ="Equip" itemid ="2139" slot ="necklace" event ="function" value ="onEquipItem" />
<movevent type ="DeEquip" itemid ="2139" slot ="necklace" event ="function" value ="onDeEquipItem" />
 
Top