kingshero 8 Posted April 30, 2017 Share Posted April 30, 2017 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 More sharing options...
kingshero 8 Posted May 1, 2017 Author Share Posted May 1, 2017 up Link to comment Share on other sites More sharing options...
Premium North 1191 Posted May 1, 2017 Premium Share Posted May 1, 2017 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 More sharing options...
kingshero 8 Posted May 1, 2017 Author Share Posted May 1, 2017 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 More sharing options...
Premium North 1191 Posted May 1, 2017 Premium Share Posted May 1, 2017 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 More sharing options...
kingshero 8 Posted May 1, 2017 Author Share Posted May 1, 2017 i don't count killings i want can player kill player like him if him in same empire you understand me ? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now