• 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 TFS 1.2 Glooth axe, sword, club not removing charges

Shadow Dan

Sh4dowDan
Joined
Jun 5, 2010
Messages
344
Reaction score
88
Location
Poland
Does anyone know how to make glooth weapons losing charges (on attack and skill use) and then when it's 0 remove weapon?
Because this is not working:

items.xml
Code:
    <item id="23549" article="a" name="glooth club">
        <attribute key="defense" value="1" />
        <attribute key="attack" value="39" />
        <attribute key="weaponType" value="club" />
        <attribute key="slotType" value="two-handed" />
        <attribute key="elementEarth" value="26" />
        <attribute key="charges" value="2" />
        <attribute key="showcharges" value="1" />
        <attribute key="weight" value="1900" />
    </item>
movements.xml
Code:
    <movevent event="DeEquip" itemid="23549" slot="hand" function="onDeEquipItem" />
    <movevent event="Equip" itemid="23549" slot="hand" level="75" function="onEquipItem"/>
 
Add this to weapons.xml:

XML:
    <!-- Glooth Weapons -->
    <melee id="23549" action="removecharge" /> -- Glooth Club
    <melee id="23550" action="removecharge" /> -- Glooth Blade
    <melee id="23551" action="removecharge" /> -- Glooth Axe
 
Last edited:
Back
Top