Jump to content
  • 0

Certain arrows / bullets are unlimited?


michaelsoftman

Question


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  410
  • Reputation:   29
  • Joined:  04/04/12
  • Last Seen:  

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?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...