eluna-scripts-ornfelt/lua/WowEmulationScriptPack/C++/arenapvpsystem.cpp
2024-09-23 07:59:23 +02:00

21 lines
444 B
C++

#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;
}