Jump to content

Recommended Posts

  • VIP

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 picturehttp://s8.postimg.org/o93db5645/Untitled.png
 
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'
  • Love 18
Link to comment
  • Replies 76
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 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
Link to comment
  • VIP

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.