Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (team == winner)
- {
- switch(player->GetZoneId())
- {
- case 3277: // Warsong Gulch
- player->ModifyMoney(250000);
- if (player->getFaction() == ALLIANCE)
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cff00ffffhas won|r |cffffff00Warsong Gluch!");
- }
- else
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cff00ffffhas won|r |cffffff00Warsong Gluch!");
- }
- break;
- case 3358: // Arathi Basin
- player->ModifyMoney(250000);
- if (player->getFaction() == ALLIANCE)
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cff00ffffhas won|r |cffffff00Arathi Basin!");
- }
- else
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cff00ffffhas won|r |cffffff00Arathi Basin!");
- }
- break;
- case 3820: // Eye of the Storm
- player->ModifyMoney(250000);
- if (player->getFaction() == ALLIANCE)
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cff00ffffhas won|r |cffffff00Eye of the Storm!");
- }
- else
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cff00ffffhas won|r |cffffff00Eye of the Storm!");
- }
- break;
- case 4710: // IOQ
- player->ModifyMoney(250000);
- if (player->getFaction() == ALLIANCE)
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cff00ffffhas won|r |cffffff00Isle of Conquest!");
- }
- else
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cff00ffffhas won|r |cffffff00Isle of Conquest!");
- }
- break;
- case 4384: // reward_SOTA
- player->ModifyMoney(250000);
- if (player->getFaction() == ALLIANCE)
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cff00ffffhas won|r |cffffff00Strand of the Ancients!");
- }
- else
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cff00ffffhas won|r |cffffff00Strand of the Ancients!");
- }
- break;
- case 2597: // AV
- player->ModifyMoney(250000);
- if (player->getFaction() == ALLIANCE)
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cff00ffffhas won|r |cffffff00Alterac Valley!");
- }
- else
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cff00ffffhas won|r |cffffff00Alterac Valley!");
- }
- break;
- default:
- break;
- }
- }
- else // Losers
- {
- switch(player->GetZoneId())
- {
- case 3277: // Warsong Gulch
- player->ModifyMoney(100000);
- if (player->getFaction() == ALLIANCE)
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cffffffffhas lose|r |cffffff00Warsong Gluch!");
- }
- else
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cffffffffhas lose|r |cffffff00Warsong Gluch!");
- }
- break;
- case 3358: // Arathi Basin
- player->ModifyMoney(100000);
- if (player->getFaction() == ALLIANCE)
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cffffffffhas lose|r |cffffff00Arathi Basin!");
- }
- else
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cffffffffhas lose|r |cffffff00Arathi Basin!");
- }
- break;
- case 3820: // Eye of the Storm
- player->ModifyMoney(100000);
- if (player->getFaction() == ALLIANCE)
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cffffffffhas lose|r |cffffff00Eye of the Storm!");
- }
- else
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cffffffffhas lose|r |cffffff00Eye of the Storm!");
- }
- break;
- case 4710: // IOQ
- player->ModifyMoney(100000);
- if (player->getFaction() == ALLIANCE)
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cffffffffhas lose|r |cffffff00Isle of Conquest!");
- }
- else
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cffffffffhas lose|r |cffffff00Isle of Conquest!");
- }
- break;
- case 4384: // SOTA
- player->ModifyMoney(100000);
- if (player->getFaction() == ALLIANCE)
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cffffffffhas lose|r |cffffff00Strand of the Ancients!");
- }
- else
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cffffffffhas lose|r |cffffff00Strand of the Ancients!");
- }
- break;
- case 2597: // AV
- player->ModifyMoney(100000);
- if (player->getFaction() == ALLIANCE)
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cffffffffhas lose|r |cffffff00Alterac Valley!");
- }
- else
- {
- ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cffffffffhas lose|r |cffffff00Alterac Valley!");
- }
- break;
- default:
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement