• 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 BreakChance on Bolts

destroyer667

Member
Joined
Nov 21, 2007
Messages
290
Reaction score
6
I'm using Avesta 7.6 v4 and i tried putting this code into my items.xml to see if they wouldn't break but it doesn't work. im trying to make it so that the bolt breaks about every 3 hits so it lasts longer. +rep for help :]





LUA:
	<item id="2543" article="a" name="bolt" plural="bolts">
		<attribute key="weight" value="80"/>
		<attribute key="attack" value="30"/>
                <attribute key="hitChance" value="80"/>
		<attribute key="weaponType" value="ammunition"/>
		<attribute key="breakChance" value="1"/>
		<attribute key="ammoType" value="bolt"/>
		<attribute key="shootType" value="bolt"/>
	</item>
 
well yeah but the code isn't working like the server doesn't recognize it or something and the bolts break on every hit.

LUA:
<attribute key="breakChance" value="1"/>
 
i do have that in my config. Ill try that to see if they break every 3rd hit. but i think they wont break at all. Im trying to get them to break every 3rd hit so ppl still have to buy ammo but not as much.
 
it should be true if you got 1...

and if you dont know a hint check other items like spears becuse normaly bolts removes 1 and 1 or never removes and spears never destroys or the got a % of destroying or something like that
 
also you can try add this too your items.xml under bolt <attribute key="ammoAction" value="removecount"/> (but it will remove 1 and 1 if it works)
 
and now im going to sleep but if the one i gave you dident work try maybe
<attribute key="breakChance" value="33"/>
<attribute key="ammoAction" value="moveback"/> (ammo comes back after shooting)
 
Back
Top