Jump to content

how to make all player can kill all player like him in specific map


Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Premium
On 30/4/2017 at 7:09 PM, kingshero said:

hello every one 

if I need make all player can kill all player like him in specific map
I need make this because player should be sent pvp request first then kill

i need some advice how to begin or c++ code

i'm sorry for bad  English

You have the killer mode behavior, start from that

Link to comment
Share on other sites

13 minutes ago, Fleon said:

You have the killer mode behavior, start from that

i make all files but i don't know how to make all character when login map can kill player like him in same Empire 

plz help me where i begin i edit pvp.cpp and pvp.h but should be edit InstanceBese.cpp file

here because player can kill player like him in same empire this in client part in UserInterface

Spoiler

 

            if (IsSameEmpire(rkInstVictim))
            {
                if (IsPVPInstance(rkInstVictim))
                    return true;

                if (PK_MODE_REVENGE == GetPKMode())
                    if (!IAbstractPlayer::GetSingleton().IsSamePartyMember(GetVirtualID(), rkInstVictim.GetVirtualID()))
                        if (IsConflictAlignmentInstance(rkInstVictim))
                            return true;
            }
            else
            {
                return true;
            }

 

i edit this function in server part 

Spoiler

bool CPVPManager::CanAttack(LPCHARACTER pkChr, LPCHARACTER pkVictim) 

 

i edit 

Spoiler

bool beKillerMode = false;

to

Spoiler

bool beKillerMode = pkChr->GetMapIndex() == 377 ? true : false;

but after all this player can't kill player like him in same Empire !! 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.