Originally Posted by
Pedregon
Name of Script(If applicable):
Any name.PvP Announcer
What you want it to do:
When a player kills another player,the server announces it
saying " <Name of player> has killed <Name of player> and after
a certain amount of killers it says somthing like <Name of player> is on a killing
spree!
Notes:None
Timeframe?:Anytime
Other things you want to add:none
You can get a kill spree script from the arcemu forums, look under c++ section. But for the killing player part, thats a simple server hook.
e.g.
Code:
void PvPKill(Player * Plr, Player * Vic)
{
// the follow is to check players before death
if (Plr->GetTeam() == Vic->GetTeam()) return; // Same Team
if (Plr->GetLowGUID() == Vic->GetLowGUID()) return; // Suicide
// On pvp kill do following
char messagePlayerKill[200];
sprintf(messagePlayerKill, "[|cff00ff00World PvP|r]|cffffffff%s|r has defeated |cffffff00%s|r in pvp combat", Plr->GetName(), Vic->GetName());
sWorld.SendWorldText(messagePlayerKill)
}
void SetupPVPKill(ScriptMgr * mgr)
{
mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, (void*)PvPKill);
}