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

Solved Create / modify an amulet problem

Daniel Kopeć

Member
Joined
Dec 8, 2018
Messages
125
Solutions
4
Reaction score
12
Location
Poland
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
 
Solution
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" />

M0ustafa

1337
Senator
Joined
Mar 4, 2017
Messages
2,562
Solutions
315
Reaction score
1,134
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" />
 
Solution
Top