Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- class gurubashipvp : public PlayerScript
- {
- public:
- gurubashipvp() : PlayerScript("gurubashipvp") { }
- void OnPvPKill(Player *pKiller, Player *pVictim) {
- int reward = 100; //How many points shall the killer get?
- int pvparea = 2177; //Area ID of the place both characters must be to be eligible for reward
- int area1 = pKiller->GetAreaId();
- int area2 = pVictim->GetAreaId();
- if(area1 == area2) {
- int area = area;
- if(area == pvparea) {
- if(pKiller->GetTeam() != pVictim->GetTeam()) {
- int honor = pKiller->GetHonorPoints();
- pKiller->ModifyHonorPoints(honor + reward);
- }
- }
- }
- }
- };
- void AddSC_gurubashipvp() {
- new gurubashipvp;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement