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

Items are not increasing skill or magic level

Sleet

Member
Joined
Sep 3, 2016
Messages
107
Solutions
2
Reaction score
7
It is happening with all the items, including the edited ones, the items are not giving players skill or magic level. How do I fix that?

Here is an item example:

Code:
    <item id="11405" article="a" name="Great Blessed armor">
        <attribute key="weight" value="2000"/>
        <attribute key="armor" value="35"/>
        <attribute key="slotType" value="body"/>
        <attribute key="speed" value="80"/>
            <attribute key="absorbPercentEnergy" value="5"/>
            <attribute key="absorbPercentPoison" value="5"/>
            <attribute key="absorbPercentFire" value="5"/>
                 <attribute key="absorbPercentPhysical" value="5"/>
            <attribute key="absorbPercentIce" value="5"/>
            <attribute key="absorbPercentDeath" value="5"/>
               <attribute key="absorbPercentHoly" value="5"/>
                <attribute key="skillSword" value="3"/>
            <attribute key="skillDist" value="3"/>
            <attribute key="skillAxe" value="3"/>
            <attribute key="skillClub" value="3"/>
            <attribute key="skillShield" value="3"/>
        </item>

I am using TFS 0.4 rev 0.377 on Linux Ubuntu 12.04
Client is 8.60

There are no errors in console
 
Solution
How should I add them to movements.xml?

Ex;
XML:
<movevent type="Equip" itemid="8870" slot="armor" 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="8870" slot="armor" event="function" value="onDeEquipItem"/>
global860/movements.xml at master · otservme/global860 · GitHub

Just change the vocations and itemid.
you need to add an armor, just looke how another armor is written, such as focus cape, look for it's id in movements.xml and just copy the code and replace item id with your new armor :)
 
How should I add them to movements.xml?

Ex;
XML:
<movevent type="Equip" itemid="8870" slot="armor" 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="8870" slot="armor" event="function" value="onDeEquipItem"/>
global860/movements.xml at master · otservme/global860 · GitHub

Just change the vocations and itemid.
 
Solution
Back
Top