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

Spellbook remove magic level!

Ray Rewind

Doctor
Joined
Jun 6, 2009
Messages
1,349
Reaction score
76
Location
Germany
Donation Spellbook removes Magic Level for players ! :O I have a problem this donation spellbook removes the magic level from the char why ?:O


Items.XML
PHP:
	<item id="8981" article="a" name="Golden Donation Spellbook">
		<attribute key="description" value="There is a lot of Magic inside this spellbook."/>
		<attribute key="weight" value="100"/>
		<attribute key="magiclevelpoints" value="5"/>
		<attribute key="defense" value="32"/>
		<attribute key="weaponType" value="shield"/>


movement.xml!
PHP:
    <movevent event="DeEquip" itemid="8981" slot="shield" function="onDeEquipItem"/>
		<movevent type="DeEquip" itemid="8981" slot="shield" event="function" value="onDeEquipItem"/>
	<movevent type="Equip" itemid="8981" slot="shield" event="function" value="onEquipItem">
		<vocation id="1"/>
		<vocation id="5" showInDescription="0"/>
		<vocation id="2"/>
		<vocation id="5" showInDescription="0"/>
	</movevent>



PHP:
    <movevent event="DeEquip" itemid="2538" slot="shield" function="onDeEquipItem"/>
		<movevent type="DeEquip" itemid="2538" slot="shield" event="function" value="onDeEquipItem"/>
	<movevent type="Equip" itemid="2538" slot="shield" event="function" value="onEquipItem">
		<vocation id="3"/>
		<vocation id="6" showInDescription="0"/>
		<vocation id="4"/>
		<vocation id="8" showInDescription="0"/>
	</movevent>
same with this shield it decrease the skills when changing with another shield!

Another shit thing happen! -.- When you change spellbook of mind control for example for Spellbook of Dark mysteries u get +1 magic level every time
 
Last edited:
<movevent type="Equip" itemid="8981" slot="shield" event="function" value="onEquipItem">
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="5" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="8981" slot="shield" event="function" value="onDeEquipItem"/>
like that.
must be one Equip and one deEquip.
 
Yeah like Majster12 said you just have an extra Equip/DeEquip

Code:
<movevent type="DeEquip" itemid="8981" slot="shield" event="function" value="onDeEquipItem"/>
    <movevent type="Equip" itemid="8981" slot="shield" event="function" value="onEquipItem">
        <vocation id="1"/>
        <vocation id="5" showInDescription="0"/>
        <vocation id="2"/>
        <vocation id="5" showInDescription="0"/>
    </movevent>

Code:
<movevent type="DeEquip" itemid="2538" slot="shield" event="function" value="onDeEquipItem"/>
    <movevent type="Equip" itemid="2538" slot="shield" event="function" value="onEquipItem">
        <vocation id="3"/>
        <vocation id="6" showInDescription="0"/>
        <vocation id="4"/>
        <vocation id="8" showInDescription="0"/>
    </movevent>
 
Back
Top