If BattleGround is won by an alliance, all players in the alliance (on BG) will receive a 305047 item.
If a horde wins a BattleGround, all players in the hordes (on BG) receive a 305048 item.
These are the items of the award chests. Can you tell me how to do this?
Maybe it can be done in LUA using Eluna?
if (player->GetTeamId(TEAM_HORDE))
player->AddItem(305047, 1);
else
player->AddItem(305048, 1);
upd2: This code works but not correctly. It gives out awards everywhere. At Arena and BG. I need the award to be given only on BG.
It's ok for this ?