Jump to content

Party Flag


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 13
  • Think 1
  • Confused 2
  • Lmao 1
  • Good 8
  • Love 2
  • Love 32
Link to comment
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
Share on other sites

Announcements



  • Similar Content

  • Similar Content

  • Similar Content

  • Tags

  • Activity

    1. 3

      Crystal Metinstone

    2. 3

      Feeding game source to LLM

    3. 113

      Ulthar SF V2 (TMP4 Base)

    4. 3

      Feeding game source to LLM

    5. 0

      Target Information System

    6. 3

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.