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

How can i add magiclevel attribute to items

Miggarapo

New Member
Joined
Jan 23, 2009
Messages
11
Reaction score
0
I would like to add 1 magiclevel to the leather helmet.

<item id="2461" article="a" name="leather helmet">
<attribute key="weight" value="500" />
<attribute key="armor" value="1" />
<attribute key="slotType" value="head" />
<attribute key="magiclevelpoints" value="1" />
</item>

It says +1 magic level, but its not giving any magic level. I also tried to add something to movenments.xml.

<movevent type="Equip" itemid="2461" slot="head" event="function" value="onEquipItem">
<movevent type="Equip" itemid="2461" slot="head" event="function" value="onDeEquipItem">

I tried this with and without the DeEquip. Help please

Its not working because i get an error after adding this script in movement.xml
[23/06/2011 23:10:50] [Warning - BaseEvents::loadFromXml] Cannot open movements.xml file.
[23/06/2011 23:10:50] Line: 870, Info: Premature end of data in tag movements line 2


[23/06/2011 23:10:50] > ERROR: Unable to load MoveEvents!
 
It would be like this:

(Just for mages)

Lua:
	<movevent type="Equip" itemid="2461" slot="head" event="function" value="onEquipItem">
		<vocation id="1"/>
		<vocation id="5" showInDescription="0"/>
		<vocation id="2"/>
		<vocation id="6" showInDescription="0"/>
	</movevent>
	<movevent type="DeEquip" itemid="2461" slot="head" event="function" value="onDeEquipItem"/>

(For All Vocations)

Lua:
	<movevent type="Equip" itemid="2461" slot="head" event="function" value="onEquipItem">
	</movevent>
	<movevent type="DeEquip" itemid="2461" slot="head" event="function" value="onDeEquipItem"/>

If I help you rep+ me :)
 
Back
Top