Jump to content
  • 0

Place vip player with infinite arrows


Question

3 answers to this question

Recommended Posts

  • 0
Posted

Try on battle.cpp https://github.com/rathena/rathena/blob/c74ad5c8c227f1464de790651a52b2b1f8f92b38/src/map/battle.cpp#L2618

add

if (pc_isvip(sd))
        return;

after

if (!battle_config.arrow_decrement)
        return;

 

final result

 

void battle_consume_ammo(map_session_data*sd, int skill, int lv)
{
    int qty = 1;
 
    if (!battle_config.arrow_decrement)
        return;
 
    if (pc_isvip(sd))
        return;
 
    if (skill) {....................................................
  • 0
Posted
17 hours ago, Jayz said:

Try on battle.cpp https://github.com/rathena/rathena/blob/c74ad5c8c227f1464de790651a52b2b1f8f92b38/src/map/battle.cpp#L2618

add

if (pc_isvip(sd))
        return;

after

if (!battle_config.arrow_decrement)
        return;

 

final result

 

void battle_consume_ammo(map_session_data*sd, int skill, int lv)
{
    int qty = 1;
 
    if (!battle_config.arrow_decrement)
        return;
 
    if (pc_isvip(sd))
        return;
 
    if (skill) {....................................................

 

I made the change, but the arrows are being consumed normally for VIP players.

 

void battle_consume_ammo(map_session_data*sd, int skill, int lv)
{
	int qty = 1;

	if (!battle_config.arrow_decrement)
		return;
	
	if (pc_isvip(sd))
        return;

	if (skill) {
		qty = skill_get_ammo_qty(skill, lv);
		if (!qty) qty = 1;
	}

	if (sd->equip_index[EQI_AMMO] >= 0) //Qty check should have been done in skill_check_condition
		pc_delitem(sd,sd->equip_index[EQI_AMMO],qty,0,1,LOG_TYPE_CONSUME);

	sd->state.arrow_atk = 0;
}

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...