Premium Dash 81 Posted January 22, 2015 Premium Share Posted January 22, 2015 (edited) M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) Hi metin2dev i want to share skill party flag This flag will give buff to all members from your party. Sorry for my english Open skill.h Search: SKILL_FLAG_FIRE = (1 << 26), After this add: SKILL_FLAG_PARTY = (1 << 27), Now open char_skill.cpp Search: SKILL_RESIST_PENETRATE And after add: struct FPartyPIDCollector { std::vector <DWORD> vecPIDs; FPartyPIDCollector() { } void operator () (LPCHARACTER ch) { vecPIDs.push_back(ch->GetPlayerID()); } }; Like in picturehttps://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif Now search: if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY)) pkVictim = this; And after Add: if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && !GetParty()) pkVictim = this; And again: if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY)) pkVictim = this; After if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && !GetParty()) pkVictim = this; Now search: if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY)) ComputeSkill(dwVnum, this); And after: else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && !GetParty()) ComputeSkill(dwVnum, this); else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && GetParty()) { FPartyPIDCollector f; GetParty()->ForEachOnMapMember(f, GetMapIndex()); for (std::vector <DWORD>::iterator it = f.vecPIDs.begin(); it != f.vecPIDs.end(); it++) { LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(*it); ComputeSkill(dwVnum, ch); } } Open guild.cpp and search: if ((pkSk->dwFlag & SKILL_FLAG_SELFONLY)) { // 이미 걸려 있으므로 사용하지 않음. if (ch->FindAffect(pkSk->dwVnum)) return; victim = ch; } After add: if ((pkSk->dwFlag & SKILL_FLAG_PARTY)) { if (ch->FindAffect(pkSk->dwVnum)) return; victim = ch; } Open navicat->player->skill_proto->design table and at setFlag change the values with: 'ATTACK','USE_MELEE_DAMAGE','COMPUTE_ATTGRADE','SELFONLY','USE_MAGIC_DAMAGE','USE_HP_AS_COST','COMPUTE_MAGIC_DAMAGE','SPLASH','GIVE_PENALTY','USE_ARROW_DAMAGE','PENETRATE','IGNORE_TARGET_RATING','ATTACK_SLOW','ATTACK_STUN','HP_ABSORB','SP_ABSORB','ATTACK_FIRE_CONT','REMOVE_BAD_AFFECT','REMOVE_GOOD_AFFECT','CRUSH','ATTACK_POISON','TOGGLE','DISABLE_BY_POINT_UP','CRUSH_LONG','WIND','ELEC','FIRE','PARTY' Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal 13 1 2 1 8 2 33 Link to comment Share on other sites More sharing options...
Reboot 770 Posted January 22, 2015 Share Posted January 22, 2015 Good, thanks for share. 2 Link to comment Share on other sites More sharing options...
Premium Dash 81 Posted January 23, 2015 Author Premium Share Posted January 23, 2015 I will post skill efects for wolfman soon 2 Link to comment Share on other sites More sharing options...
Squit 3 Posted February 6, 2015 Share Posted February 6, 2015 thanks for share T o b e g i n, b e g i n. Link to comment Share on other sites More sharing options...
Premium Galet 509 Posted February 9, 2015 Premium Share Posted February 9, 2015 Thanks for share ! It's working perfectly Link to comment Share on other sites More sharing options...
PeaceMaker 121 Posted February 9, 2015 Share Posted February 9, 2015 hello, could the party function make a core crash , ? Link to comment Share on other sites More sharing options...
Morphe 158 Posted February 9, 2015 Share Posted February 9, 2015 hello, could the party function make a core crash , ? NO, is tested. Link to comment Share on other sites More sharing options...
Krusty 32 Posted February 18, 2015 Share Posted February 18, 2015 Thanks for share ! But for me it doesn't work :x Indeed, if I cast the skill, neither the wolfman nor the other member got the points :x Same problem^^ Link to comment Share on other sites More sharing options...
Premium Dash 81 Posted February 18, 2015 Author Premium Share Posted February 18, 2015 Did you change in navicat skill flag with party_flag? Link to comment Share on other sites More sharing options...
Krusty 32 Posted February 18, 2015 Share Posted February 18, 2015 (edited) Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Krusty 32 Posted February 18, 2015 Share Posted February 18, 2015 Doesn't work for me... Link to comment Share on other sites More sharing options...
Krusty 32 Posted February 19, 2015 Share Posted February 19, 2015 doesn't work Link to comment Share on other sites More sharing options...
Krusty 32 Posted February 20, 2015 Share Posted February 20, 2015 Doesn't work Vote for close he gives no support to his thread Link to comment Share on other sites More sharing options...
Morphe 158 Posted February 20, 2015 Share Posted February 20, 2015 Doesn't work Vote for close he gives no support to his thread Work dude Link to comment Share on other sites More sharing options...
garofolo 12 Posted February 26, 2015 Share Posted February 26, 2015 (edited) Hello friend, this topic I noticed your posting saying that the system works perfectly, but to apply to my system and enter 2 characters shamans go into group and snort me my other shaman did not receive the buff that I applied. Could you help me or explain to me how the system works? I Went skill_proto and ids of abilities shaman and put the setflag "party" and not worked yet. Edited August 19, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Krusty 32 Posted February 27, 2015 Share Posted February 27, 2015 i think this doesnt work Link to comment Share on other sites More sharing options...
Premium Galet 509 Posted February 27, 2015 Premium Share Posted February 27, 2015 It's working perfectly. Design your table and put the "PARTY" flag at the 27th position. Link to comment Share on other sites More sharing options...
Krusty 32 Posted February 27, 2015 Share Posted February 27, 2015 It's working perfectly. Design your table and put the "PARTY" flag at the 27th position. Who is the logic? What is different between 27th and 25th position? Link to comment Share on other sites More sharing options...
Premium Dash 81 Posted February 27, 2015 Author Premium Share Posted February 27, 2015 It's working perfectly. Design your table and put the "PARTY" flag at the 27th position. Who is the logic? What is different between 27th and 25th position? Index of flag.if is 25 db will send to game for 25 th flag not Party flag witch is on the 27 1 Link to comment Share on other sites More sharing options...
Premium Galet 509 Posted February 27, 2015 Premium Share Posted February 27, 2015 We trying to solve your problem but you still criticize, really ? '-' Link to comment Share on other sites More sharing options...
Krusty 32 Posted February 28, 2015 Share Posted February 28, 2015 Doesnt work with 27th position Link to comment Share on other sites More sharing options...
Premium Galet 509 Posted February 28, 2015 Premium Share Posted February 28, 2015 Try with the position you put at the beginning, then check your code, it's work for me. Link to comment Share on other sites More sharing options...
Krusty 32 Posted February 28, 2015 Share Posted February 28, 2015 Okey.. I'll look Link to comment Share on other sites More sharing options...
Krusty 32 Posted February 28, 2015 Share Posted February 28, 2015 (edited) ps: Is this right? only "PARTY" doesnt work.. Is only "PARTY" right or "SELFONLY, PARTY"? Edited August 19, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium Galet 509 Posted February 28, 2015 Premium Share Posted February 28, 2015 If you have : SKILL_FLAG_PARTY = (1 << 27), In skill.h then put it in 27th pos. In your table the flag is in the first position, so it won't work. 1 Link to comment Share on other sites More sharing options...
Recommended Posts