eluna-scripts-ornfelt/lua/WowEmulationScriptPack/C++/arenapvpsystem.cpp

22 lines
444 B
C++
Raw Permalink Normal View History

2023-08-16 00:50:59 +02:00
#include "ScriptPCH.h"
class ArenaPVPSystem : public PlayerScript
{
public:
ArenaPVPSystem() : PlayerScript("ArenaPVPSystem") {}
void OnPVPKill(Player* killer, Player* killed)
{
if (killer->GetMap()->IsBattleArena())
{
killer->GetSession()->SendNotification("You just killed %s and stole his soul!", killed->GetName());
killer->AddItem(29437, 1);
}
}
};
void AddSC_ArenaPVPSystem()
{
new ArenaPVPSystem;
}