Jump to content
  • 0
Sign in to follow this  
kyeme

SN_SHARPSHOOTING (Focused Arrow Strike)

Question

How to make this skill can also target party and guildmates/ally?

I changed to Friend from Enemy in skill.conf but no luck..

    SkillType: {
       Friend: true
    }

 

Thanks.
 

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

https://github.com/HerculesWS/Hercules/blob/stable/src/map/battle.c#L6815

Add this.

		if (src && (map->list[m].flag.gvg_castle || map->list[m].flag.gvg)
			&& (battle->get_current_skill(src) == SN_SHARPSHOOTING)) {
			state |= BCT_ENEMY;
			state &= ~BCT_GUILD;
			state &= ~BCT_PARTY;
		}

 

Share this post


Link to post
Share on other sites
  • 0

@vBrenth How about to target only the Party member (and Enemy) in your guilds.

example: 
  You and Player 2 (Player 2 is not in your party) = You cannot SharpShoot Player 2

  You and Player 3 (Player 3 is in your party) = You can target with Sharp Shoot Player 3

 

Thank you.

Share this post


Link to post
Share on other sites
  • 0
			state &= ~BCT_GUILD;
			state &= ~BCT_PARTY;

You can test by removing guild so it can only hit party?

Share this post


Link to post
Share on other sites
  • 0

It's not working. I can't hit my party members in my guilds.

 

		if (src && (map->list[m].flag.gvg_castle || map->list[m].flag.gvg)
			&& (battle->get_current_skill(src) == SN_SHARPSHOOTING)) {
			state |= BCT_ENEMY;
			state &= ~BCT_PARTY;
		}

 

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.