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

Problem onEquip magiclevelpoints

PRLOts

Member
Joined
Jun 24, 2017
Messages
116
Solutions
4
Reaction score
15
I'm using [8.60] The Forgotten Server 0.3.6 (Crying Damson) V8 from here.

Hello guys, I have simple problem, but I can't fix that.

My shields are not working correct with magiclevelpoints. Is there more things to change than items.xml and movements?

data\items

XML:
    <item id="2537" article="a" name="mage shield">
        <attribute key="weight" value="1200" />
        <attribute key="defense" value="25" />
        <attribute key="magiclevelpoints" value="3" />
        <attribute key="description" value="ancient shield." />
        <attribute key="weaponType" value="shield" />
    </item>


data\movements


XML:
    <movevent type="Equip" itemid="2537" slot="shield" level="60" 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="2537" slot="shield" event="function" value="onDeEquipItem"/>

In game

Code:
17:51 You see a mage shield (Def:25, magic level +3).
ItemID: [2537].
Position: [X: 1545] [Y: 1315] [Z: 5].

It's not working as it should. All voc can wear it (in the game) and it's not giving m lvl as all shields that should. Anyone know how to solve this? Best regards!
 
Last edited by a moderator:
Your script is right... but try anyway:

<movevent event="Equip" itemid="2537" slot="shield" level="60" function="onEquipItem">
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</movevent>
<movevent event="DeEquip" itemid="2537" slot="shield" function="onDeEquipItem"/>
 
Your script is right... but try anyway:

<movevent event="Equip" itemid="2537" slot="shield" level="60" function="onEquipItem">
<vocation id="1"/>
<vocation id="5" showInDescription="0"/>
<vocation id="2"/>
<vocation id="6" showInDescription="0"/>
</movevent>
<movevent event="DeEquip" itemid="2537" slot="shield" function="onDeEquipItem"/>

Thx for reply, some movements scripts like in POI are not working now, in 99% movements.xml is failed somewhere I will check this after gym. Thx mate for reply I will post when I will fix this.
 
Thx for reply, some movements scripts like in POI are not working now, in 99% movements.xml is failed somewhere I will check this after gym. Thx mate for reply I will post when I will fix this.

But you solved your issue about the shield? If yes mark the best awnser if not, post the error (if have one)
 
But you solved your issue about the shield? If yes mark the best awnser if not, post the error (if have one)

If another issue was created by your fix it's not the correct fix, so no that post should not be marked in that case.
And TFS 0.3 and 0.4 requires you to use
XML:
event="script/function" value=".."
 
But you solved your issue about the shield? If yes mark the best awnser if not, post the error (if have one)

Shield still is not fixed, but I realised that more movements.xml are also not working well, I will find clear movements.xml, add again my scripts and i will reply if it's working.
 
Shield still is not fixed, but I realised that more movements.xml are also not working well, I will find clear movements.xml, add again my scripts and i will reply if it's working.

Try to find an unmodified 0.3.6 (aka not printer's) and see how the movements are coded there.
If you have more then one id say either movements.xml is incorrect or you have a source code issue.
 
Try to find an unmodified 0.3.6 (aka not printer's) and see how the movements are coded there.
If you have more then one id say either movements.xml is incorrect or you have a source code issue.

Yee I did that bro, everything was correct with scripts, just movements.xml was bugged. Thx for help guys!
 
Back
Top