kyeme 71 Posted February 1, 2018 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. Quote Share this post Link to post Share on other sites
0 vBrenth 39 Posted February 1, 2018 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; } 1 kyeme reacted to this Quote Share this post Link to post Share on other sites
0 kyeme 71 Posted February 1, 2018 @vBrenth thank you very much it worked! Quote Share this post Link to post Share on other sites
0 kyeme 71 Posted February 2, 2018 @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. Quote Share this post Link to post Share on other sites
0 vBrenth 39 Posted February 4, 2018 state &= ~BCT_GUILD; state &= ~BCT_PARTY; You can test by removing guild so it can only hit party? Quote Share this post Link to post Share on other sites
0 kyeme 71 Posted February 4, 2018 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; } 1 said33 reacted to this Quote Share this post Link to post Share on other sites
0 xVec 1 Posted July 11, 2018 Sorry for the old post, buy anyone knows the solution of this? :/ Quote Share this post Link to post Share on other sites
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