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

Hat of the Mad.

DedicatedOT

New Member
Joined
Jun 13, 2009
Messages
977
Reaction score
4
Location
USA
LUA:
	<item id="2323" article="a" name="hat of the mad">
		<attribute key="description" value="You have a vague feeling that it looks somewhat silly."/>
		<attribute key="weight" value="700"/>
		<attribute key="armor" value="3"/>
		<attribute key="magicpoints" value="1"/>
		<attribute key="slotType" value="head"/>
	</item>

How come it doesn't add magic level?
 
You have to add it in movements.xml too.

Add in movements.xml:
Code:
<movevent type="Equip" event="function" itemid="2323" slot="head" value="onEquipItem">
	<vocation name="Sorcerer"/>
	<vocation name="Master Sorcerer" showInDescription="0"/>
	<vocation name="Druid"/>
	<vocation name="Elder Druid" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" event="function" itemid="2323" slot="head" value="onDeEquipItem"/>
 
PHP:
<attribute key="magiclevelpoints" value="1"/>

movements.xml

PHP:
	<movevent type="Equip" itemid="2323" slot="head" event="function" value="onEquipItem">
		<vocation name="Sorcerer"/>
		<vocation name="Master Sorcerer" showInDescription="0"/>
		<vocation name="Druid"/>
		<vocation name="Elder Druid" showInDescription="0"/>
	</movevent>
	<movevent type="DeEquip" itemid="2323" slot="head" event="function" value="onDeEquipItem"/>
 
@up:
He's using 0.2, so he doesn't have to change the line of magic points in items.xml.


For 0.2:
PHP:
<attribute key="magicpoints" value="1"/>

For 0.3:
PHP:
<attribute key="magiclevelpoints" value="1"/>
 
Back
Top