Jump to content

No grouping in FFA?


Guest phelpsben

Recommended Posts

Ah ok.. I guess the easies way is to tamper with the group.cpp file and make sure you cant group at all ....

But its going to be realy hard to do any instances at all if you cant get healed. But it might be fun too hehe... Constant backstabs...

But if you make them unable to group then they wont be able to enter same instance anyway... So what you want is healing and damage(?), aedamage to be FFA even in a group right?

Should be some flag type isFriendly in combat or similar for groupmembers or so... But all those things will be kinda hard to do since if you do it in town or similar alot of NPC:s will get annoyed...

But then again just ignore isFriendly just for PC:s and it would work somewhat what you want....

Look in combathandling or similar ;)

Good luck

Bjerlk

Link to comment
Share on other sites

Well you can do a check in Group::AddInvite for the Zone or Area that the players are PvPing in FFA. I would use the area ID. So eg:

bool Group::AddInvite(Player *player)
{
   if(player->GetAreaId() == 3817) {
   sLog.outError("Flagging in not allowed area. Just a debug check.");
       return false;
   }
   else if(!player || player->GetGroupInvite() || player->GetGroup())
       return false;

   RemoveInvite(player);

   m_invitees.insert(player);

   player->SetGroupInvite(this);

   return true;
}

Tested and it works fine. However, if you want it to return a group failed error you'll need to do something extra, but simply making it not work is fine too.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

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. Privacy Policy Terms of Use