Jump to content
External pictures are being replaced... ×
×
×
  • Create New...
  • 0

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


kingshero

Question

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

Link to comment
Share on other sites

  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

5 answers to this question

Recommended Posts

  • 0
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

  • -1
  • 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

  • -2
  • Premium

you should create something new, you can do something like this:

if (GetMapIndex() == 123)

//put everyone in killer mode

//do what you want, count the killings and if someone has killed 10 players give him idam = idam * 2; or shit like that

Link to comment
Share on other sites

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
  • Recently Browsing   0 members

    • No registered users viewing this page.


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.