Advertisement
julienanid

[Trinity] BG error message

Nov 14th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 6.03 KB | None | 0 0
  1. if (team == winner)
  2.   {
  3.  
  4.    switch(player->GetZoneId())
  5.    {
  6.  
  7.    case 3277: // Warsong Gulch
  8.     player->ModifyMoney(250000);
  9.     if (player->getFaction() == ALLIANCE)
  10.     {
  11.      ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cff00ffffhas won|r |cffffff00Warsong Gluch!");
  12.     }
  13.     else
  14.     {
  15.      ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cff00ffffhas won|r |cffffff00Warsong Gluch!");
  16.     }
  17.     break;
  18.    case 3358: // Arathi Basin
  19.     player->ModifyMoney(250000);
  20.     if (player->getFaction() == ALLIANCE)
  21.     {
  22.      ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cff00ffffhas won|r |cffffff00Arathi Basin!");
  23.     }
  24.     else
  25.     {
  26.      ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cff00ffffhas won|r |cffffff00Arathi Basin!");
  27.     }
  28.     break;
  29.    case 3820: // Eye of the Storm
  30.     player->ModifyMoney(250000);
  31.     if (player->getFaction() == ALLIANCE)
  32.     {
  33.      ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cff00ffffhas won|r |cffffff00Eye of the Storm!");
  34.     }
  35.     else
  36.     {
  37.      ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cff00ffffhas won|r |cffffff00Eye of the Storm!");
  38.     }
  39.     break;
  40.    case 4710: // IOQ      
  41.     player->ModifyMoney(250000);
  42.     if (player->getFaction() == ALLIANCE)
  43.     {
  44.      ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cff00ffffhas won|r |cffffff00Isle of Conquest!");
  45.     }
  46.     else
  47.     {
  48.      ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cff00ffffhas won|r |cffffff00Isle of Conquest!");
  49.     }
  50.     break;
  51.    case 4384: // reward_SOTA
  52.     player->ModifyMoney(250000);
  53.     if (player->getFaction() == ALLIANCE)
  54.     {
  55.      ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cff00ffffhas won|r |cffffff00Strand of the Ancients!");
  56.     }
  57.     else
  58.     {
  59.      ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cff00ffffhas won|r |cffffff00Strand of the Ancients!");
  60.     }
  61.     break;
  62.    case 2597: // AV
  63.     player->ModifyMoney(250000);
  64.     if (player->getFaction() == ALLIANCE)
  65.     {
  66.      ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cff00ffffhas won|r |cffffff00Alterac Valley!");
  67.     }
  68.     else
  69.     {
  70.      ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cff00ffffhas won|r |cffffff00Alterac Valley!");
  71.     }
  72.     break;
  73.    default:
  74.     break;
  75.    }
  76.   }
  77.   else                 // Losers
  78.  {
  79.  
  80.  switch(player->GetZoneId())
  81.  {
  82.  case 3277: // Warsong Gulch
  83.   player->ModifyMoney(100000);
  84.   if (player->getFaction() == ALLIANCE)
  85.   {
  86.    ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cffffffffhas lose|r |cffffff00Warsong Gluch!");
  87.   }
  88.      else
  89.      {
  90.       ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cffffffffhas lose|r |cffffff00Warsong Gluch!");
  91.      }
  92.      break;
  93.  case 3358: // Arathi Basin
  94.   player->ModifyMoney(100000);
  95.   if (player->getFaction() == ALLIANCE)
  96.   {
  97.    ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cffffffffhas lose|r |cffffff00Arathi Basin!");
  98.   }
  99.      else
  100.      {
  101.       ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cffffffffhas lose|r |cffffff00Arathi Basin!");
  102.      }
  103.   break;
  104.  case 3820: // Eye of the Storm
  105.   player->ModifyMoney(100000);
  106.   if (player->getFaction() == ALLIANCE)
  107.   {
  108.    ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cffffffffhas lose|r |cffffff00Eye of the Storm!");
  109.   }
  110.      else
  111.      {
  112.       ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cffffffffhas lose|r |cffffff00Eye of the Storm!");
  113.      }
  114.   break;
  115.  case 4710: // IOQ
  116.   player->ModifyMoney(100000);
  117.   if (player->getFaction() == ALLIANCE)
  118.   {
  119.    ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cffffffffhas lose|r |cffffff00Isle of Conquest!");
  120.   }
  121.      else
  122.      {
  123.       ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cffffffffhas lose|r |cffffff00Isle of Conquest!");
  124.      }
  125.   break;
  126.  case 4384: // SOTA
  127.   player->ModifyMoney(100000);
  128.   if (player->getFaction() == ALLIANCE)
  129.   {
  130.    ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cffffffffhas lose|r |cffffff00Strand of the Ancients!");
  131.   }
  132.      else
  133.      {
  134.       ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cffffffffhas lose|r |cffffff00Strand of the Ancients!");
  135.      }
  136.   break;
  137.  case 2597: // AV
  138.   player->ModifyMoney(100000);
  139.   if (player->getFaction() == ALLIANCE)
  140.   {
  141.    ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cffff0000The Horde|r |cffffffffhas lose|r |cffffff00Alterac Valley!");
  142.   }
  143.      else
  144.      {
  145.       ChatHandler(player->GetSession()).SendGlobalSysMessage("|cff00ff00[Battleground Announcer]:|r|cff00E5EEThe Alliance|r |cffffffffhas lose|r |cffffff00Alterac Valley!");
  146.      }
  147.   break;
  148.  default:
  149.   break;
  150.  }
  151. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement