• 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 Spear Breakchance doesn't work!

Movement

New Member
Joined
Dec 5, 2007
Messages
102
Reaction score
0
PHP:
	<item id="2389" article="a" name="spear" plural="spears">
		<attribute key="weight" value="2000"/>
		<attribute key="attack" value="25"/>
		<attribute key="weaponType" value="distance"/>
		<attribute key="shootType" value="spear"/>
		<attribute key="range" value="5"/>
		<attribute key="breakChance" value="0"/>
		<attribute key="ammoAction" value="moveback"/>
	</item>

And Weapons:

PHP:
<!-- Ammunition -->
	<distance id="2545" event="script" value="poison_arrow.lua"/>
	<distance id="2546" event="script" value="burst_arrow.lua"/>
	<distance id="7366" event="script" value="viper_star.lua"/>
	<distance id="7838" type="energy" event="function" value="default"/>
	<distance id="7839" type="ice" event="function" value="default"/>
	<distance id="7840" type="fire" event="function" value="default"/>
	<distance id="7850" type="earth" event="function" value="default"/>
	<distance id="3965" level="20" event="function" value="default"/> <!-- Hunting Spear -->
	<distance id="7378" level="25" event="function" value="default"/> <!-- Royal Spear -->
	<distance id="7367" level="42" event="function" value="default"/> <!-- Enchanted Spear -->
	<distance id="7368" level="80" event="function" value="default"/> <!-- Assassin Star -->
	<distance id="7364" level="20" event="function" value="default"/> <!-- Sniper Arrow -->
	<distance id="7365" level="40" event="function" value="default"/> <!-- Onyx Arrow -->
	<distance id="7363" level="30" event="function" value="default"/> <!-- Piercing Bolt -->
	<distance id="2547" level="55" event="function" value="default"/> <!-- Power Bolt -->
	<distance id="6529" level="70" event="function" value="default"/> <!-- Infernal Bolt -->

PHP:
<attribute key="breakChance" value="0"/>

Why it's not working?

Why no "spear" at weapon data?


best regards

Move
 
bump,

we add it and set breakChance to 0 but still break!

Config.lua
PHP:
  removeWeaponAmmunition = "yes"

Maybe the server think that the spear one of this wepon ammunition?

Idk how to check this!, Please help me...
 
Last edited:
Here:
Lua:
    <item id="2389" article="a" name="spear" plural="spears">
        <attribute key="weight" value="2000"/>
        <attribute key="attack" value="25"/>
        <attribute key="weaponType" value="distance"/>
        <attribute key="shootType" value="spear"/>
        <attribute key="range" value="5"/>
        <attribute key="ammoAction" value="moveback"/>
    </item>
 
just added
Code:
<attribute key="hitChance" value="100"/>
<attribute key="breakChance" value="0"/>
 
Back
Top