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

Lua How to add magic level to a item

massuco

Brazilian, sorry for my bad english XD
Joined
Feb 17, 2013
Messages
199
Solutions
8
Reaction score
22
Location
Brasil
I need to add one item that gives a player X magic level, like focus cape that gives +1 magic level when equips.
Im using OTHire 0.0.3 and Ive tried the magicPoints attribute, magicLevelPotions, magicPercent and etc on items.xml and dont works.

Ive also tried to add one script on moveevents OnEquip but got no success.
Can anyone help to make this item?
 
<attribute key="magicpoints" value="2"/>

You will need to add to movements.xml

<moveevent event="DeEquip" itemid="????" slot="necklace" function="onDeEquipItem"/>
<moveevent event="Equip" itemid="????" slot="necklace" function="onEquipItem"/>
 
Back
Top