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

TFS 1.X+ Question about movements/weapons

Joined
Sep 11, 2018
Messages
61
Solutions
1
Reaction score
8
So I saw that weapon are configured in movements but also in weapons the only difference that I could find is that in weapon you can also configure the minimum/maximum damage and type for rods and wands. So I was wondering is it then still needed to put in in movements? Since level and vocs can also be done in weapons or is there another reason that you have to add the weapon also in movements?

Example:
weapons.xml
XML:
    <!--Havoc Blade-->
    <melee id="7405" level="70" unproperly="1">
        <vocation name="Knight" />
        <vocation name="Elite Knight" showInDescription="0" />
    </melee>

movements.xml
XML:
    <!--Havoc Blade-->
    <movevent event="Equip" itemid="7405" slot="hand" level="70" function="onEquipItem" >
        <vocation name="Knight" />
        <vocation name="Elite Knight" showInDescription="0" />
    </movevent>
    <movevent event="DeEquip" itemid="7405" slot="hand" function="onDeEquipItem" />
 
Solution
My guess is that in weapons.xml you define the level to use the weapon, and in movements.xml you define the level from which the weapon can be equipped into specified slot.

Summarizing - there is a difference.

I may be wrong tho, need to take a look into sources to be sure.
So I saw that weapon are configured in movements but also in weapons the only difference that I could find is that in weapon you can also configure the minimum/maximum damage and type for rods and wands. So I was wondering is it then still needed to put in in movements? Since level and vocs can also be done in weapons or is there another reason that you have to add the weapon also in movements?

Example:
weapons.xml
XML:
    <!--Havoc Blade-->
    <melee id="7405" level="70" unproperly="1">
        <vocation name="Knight" />
        <vocation name="Elite Knight" showInDescription="0" />
    </melee>

movements.xml
XML:
    <!--Havoc Blade-->
    <movevent event="Equip" itemid="7405" slot="hand" level="70" function="onEquipItem" >
        <vocation name="Knight" />
        <vocation name="Elite Knight" showInDescription="0" />
    </movevent>
    <movevent event="DeEquip" itemid="7405" slot="hand" function="onDeEquipItem" />
You still need to put in movements if you want to be used only by Knight because weapons.xml have nothing to do with item equipment. So i think you can use only weapons.xml if your requirement is only level and vocation, so there is no point to put your item into weapons.xml
 
My guess is that in weapons.xml you define the level to use the weapon, and in movements.xml you define the level from which the weapon can be equipped into specified slot.

Summarizing - there is a difference.

I may be wrong tho, need to take a look into sources to be sure.
 
Solution
My guess is that in weapons.xml you define the level to use the weapon, and in movements.xml you define the level from which the weapon can be equipped into specified slot.

Summarizing - there is a difference.

I may be wrong tho, need to take a look into sources to be sure.
Ah oke that does indeed make sence! Thank you
 
Back
Top