Jump to content

Recommended Posts

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

  • 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

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 !! 

  • 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

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



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.