Jump to content

Recommended Posts

  • Premium

M2 Download Center

This is the hidden content, please
( 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());
}
};
 
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 by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 23
  • Think 1
  • Confused 2
  • Lmao 1
  • Good 12
  • Love 2
  • Love 42
Link to comment
https://metin2.dev/topic/5029-party-flag/
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
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.

kjOmh.png
Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/5029-party-flag/#findComment-35815
Share on other sites

  • Premium

 

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

  • Love 1
Link to comment
https://metin2.dev/topic/5029-party-flag/#findComment-35976
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.