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

Arrow that broke sometimes

leonmagmo

New Member
Joined
Mar 17, 2009
Messages
82
Reaction score
3
Hello guys, I was wondering if it's possible to make the ammunition(like arrow andbolt) break sometimes, for example, a arrow have 40% chance to broke.
I just know how to do it on spears and small stones using <attribute key="breakChance" value="3" /> at items.xml but this not work on arrows(beucase they use a bow i think) so it's possible to do it making a script or changing anything at source?
Thanks!
 
Dunno, think that is a source edit.

But what you could do is a onAttack - if itemID = arrowID in arrow slot and bow in wep slot then you have a 40% chance to receive a arrow on attack.

Ofcource you have to make a array with all the bows/xbows
and so on :p should not be to hard
 
Back
Top