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

Solved Editing items is not effective !

hassan1900111

New Member
Joined
Feb 13, 2009
Messages
15
Reaction score
0
Location
Somewhere
Hello ! I wanted to make donation items so i edited some items in item.xml, everything worked exept +magiclvl or +skills ! when i click on them in game i read for example: +2 magic level but it didnt add anything when equipping.
it only works with old items like yalahari mask,paladin armor,etc
i am using TFS 0.3.6
 
You have to add the items to movements.xml also.
Check other items which got attributes like that for example boots of hast or paladin armor and add the items with the correct slot and id in movements.xml.
 
@Hassan
that's because u need to add this in your movements.xml

XML:
        <movevent event="Equip" itemid="id xxxx" slot="head - armor - legs - feet - shield - hand - ring - necklace" function="onEquipItem"/>
	<movevent event="DeEquip" itemid="id xxxx" slot="head - armor - legs - feet - shield - hand - ring - necklace" function="onDeEquipItem"/>

head = helmets
armor = armors
legs = legs
feet = boots
shield = shields
hand = weapons
ring = rings
necklace = amulets


also u can add this to line for voc and level

XML:
<movevent event="Equip" itemid="id xxxx" slot="head - armor - legs - feet - shield - hand - ring - necklace" level="xxx" function="onEquipItem">
		<vocation name="voc 1"/>
		<vocation name="voc 2"/>
	</movevent>

for example this

XML:
<movevent event="Equip" itemid="16112" slot="shield" level="150" function="onEquipItem">
		<vocation name="Sorcerer"/>
		<vocation name="Master Sorcerer" showInDescription="0"/>
		<vocation name="Druid"/>
		<vocation name="Elder Druid" showInDescription="0"/>
	</movevent>
	<movevent event="DeEquip" itemid="16112" slot="shield" function="onDeEquipItem"/>
 
Try this:

PHP:
<movevent type="Equip" itemid="9820" slot="Head"  event="function" value="onEquipItem">
</movevent>

<movevent type="DeEquip" itemid="9820" slot="Head" event="function" value="onDeEquipItem"/>

change id and slot..
 
Back
Top