Idea Motion Group
လူၾကီးမင္းတြင္ Idea Motion Group မွမွတ္ပံုတင္ျပီးေသာ Member Account ရွိပါက Log In မွ တဆင့္ဝင္ေရာက္ပါ။
New Guest ျဖစ္ပါက Register ျပဳလုပ္၍ဝင္ေရာက္ေပးပို႔ႏိုင္ပါသည္။။
*********Idea Motion Group*********
Log in

I forgot my password

Latest topics
» Gemcom Whittle 4.3 With Crack
Yesterday at 4:44 am by egorkabbo

» Bromas Anda Ya DR Tangalanga Mp3
Sun Nov 29, 2015 1:20 am by egorkabbo

» Freedownload For 3gp Purn Movis
Sat Nov 28, 2015 5:21 am by egorkabbo

» Trap House 3 Album Zip
Fri Oct 09, 2015 4:38 am by egorkabbo

» ASTUCE Cls XP Pro SP3 Corporate WGA Ok !!!
Thu Oct 08, 2015 2:43 am by egorkabbo

Country Codes


  • >



(C++) Killstreak PvP System – TrinityCore

View previous topic View next topic Go down

default (C++) Killstreak PvP System – TrinityCore

Post   on Thu Jul 05, 2012 5:23 pm

#include "ScriptPCH.h"

class System_OnPvPKill : public PlayerScript
System_OnPvPKill() : PlayerScript("System_OnPvPKill") {}

struct SystemInfo
uint32 KillStreak;
uint32 LastGUIDKill;

static std::map<uint32, SystemInfo> KillingStreak;

void OnPvPKill(Player *pKiller, Player *pVictim)
uint32 kGUID;
uint32 vGUID;
kGUID = pKiller->GetGUID();
vGUID = pVictim->GetGUID();
if(kGUID == vGUID)
if(KillingStreak[kGUID].LastGUIDKill == vGUID)

KillingStreak[vGUID].KillStreak = 0;
KillingStreak[kGUID].LastGUIDKill = vGUID;
KillingStreak[vGUID].LastGUIDKill = 0;

case 10:
char msg[500];
sprintf(msg, "[PvP System]: %s killed %s
and is on a 10 kill streak. ",
pKiller->GetName(), pVictim->GetName());
sWorld.SendWorldText(LANG_SYSTEMMESSAGE, msg);

void AddSC_System()
new System_OnPvPKill;
Added only announce if the player is on 10 kill streak, however you can easily add more if you want.
This script is TESTED and It’s working properly.

Join date: 1970-01-01

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum