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

Solved Breakchance(spears, stars)

monkeyy

Member
Joined
Aug 20, 2011
Messages
153
Reaction score
9
Hello all!

All of my throwing items do not have a breakchance, well they break but its always 100% chance.
Lets say I want to give spears a 50% breakchance.
Everytime I want to add an attribute like breakchance my server shows warnings such as:
[Warning - Items::parseItemNode] Unknown key value: ammoAction
[Warning - Items::parseItemNode] Unknown key value: breakchance

Maybe I shouldnt be changing anything in items.xml or weapons.xml

Anyways this is how I have it currently:
Items.xml
Lua:
<item id="2389" article="a" name="spear">
        <attribute key="weight" value="2000" />
        <attribute key="attack" value="25" />
        <attribute key="weaponType" value="distance" />
        <attribute key="shootType" value="spear" />
        <attribute key="range" value="3" />      
    </item>
Weapons.xml
Lua:
<distance id="2389" action="removecount"/> <!-- spear -->

Edit: I found a lot of threads about ''breakchance'' but they dont seem to work on my server
Serverinfo: TFS 1.3 Tibia10.98
 
Last edited:
Back
Top