michaelsoftman Posted October 25, 2012 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 410 Reputation: 29 Joined: 04/04/12 Last Seen: November 28, 2024 Share Posted October 25, 2012 So, I would like to make certain kinds of ammo unlimited, but NOT all of them. I know the setting in conf/battle/battle.conf, but it's not what I'm looking for. I think the simplest way would be to add an item ID check into void battle_consume_ammo. Something like if(sd->equip_index[EQI_AMMO]>=0 && item_ID != 20000) pc_delitem(sd,sd->equip_index[EQI_AMMO],qty,0,1,LOG_TYPE_CONSUME); But I'm not really sure. Anyone care to help me out? Quote Link to comment Share on other sites More sharing options...
GmOcean Posted October 25, 2012 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted October 25, 2012 http://rathena.org/wiki/Adding_new_bonuses Following that will allow you to create a new bonus' that will let you have a x/10% chance to NOT consume ammo, so 1000/10 = 100% Chance, then just add this to the Arrows/Bullets item script, that you don't want to be consumed. Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted October 26, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted October 26, 2012 search key word: ammo, ammunition http://www.eathena.ws/board/index.php?showtopic=270221 Quote Link to comment Share on other sites More sharing options...
Question
michaelsoftman
So, I would like to make certain kinds of ammo unlimited, but NOT all of them. I know the setting in conf/battle/battle.conf, but it's not what I'm looking for.
I think the simplest way would be to add an item ID check into void battle_consume_ammo.
Something like
But I'm not really sure. Anyone care to help me out?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.