Changeset 44 for trunk/src/game/BattleGroundAB.cpp
- Timestamp:
- 11/19/08 13:27:40 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/BattleGroundAB.cpp
r34 r44 1 1 /* 2 * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 3 * 4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 3 5 * 4 6 * This program is free software; you can redistribute it and/or modify … … 9 11 * This program is distributed in the hope that it will be useful, 10 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 14 * GNU General Public License for more details. 13 15 * 14 16 * You should have received a copy of the GNU General Public License 15 17 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 19 */ 18 20 … … 83 85 { 84 86 m_Events |= 0x04; 85 SendMessageToAll(Get MangosString(LANG_BG_AB_ONEMINTOSTART));87 SendMessageToAll(GetTrinityString(LANG_BG_AB_ONEMINTOSTART)); 86 88 } 87 89 // After 1,5 minute, warning is signalled … … 89 91 { 90 92 m_Events |= 0x08; 91 SendMessageToAll(Get MangosString(LANG_BG_AB_HALFMINTOSTART));93 SendMessageToAll(GetTrinityString(LANG_BG_AB_HALFMINTOSTART)); 92 94 } 93 95 // After 2 minutes, gates OPEN ! x) … … 95 97 { 96 98 m_Events |= 0x10; 97 SendMessageToAll(Get MangosString(LANG_BG_AB_STARTED));99 SendMessageToAll(GetTrinityString(LANG_BG_AB_STARTED)); 98 100 99 101 // spawn neutral banners … … 109 111 DoorOpen(BG_AB_OBJECT_GATE_H); 110 112 113 PlaySoundToAll(SOUND_BG_START); 111 114 if(sWorld.getConfig(CONFIG_BG_START_MUSIC)) 112 { 113 PlaySoundToAll(SOUND_BG_START); 114 PlaySoundToAll(SOUND_BG_START_L70ETC); //MUSIC 115 } 116 else 117 PlaySoundToAll(SOUND_BG_START); 115 PlaySoundToAll(SOUND_BG_START_L70ETC); //MUSIC 118 116 SetStatus(STATUS_IN_PROGRESS); 119 117 … … 163 161 char buf[256]; 164 162 uint8 type = (teamIndex == 0) ? CHAT_MSG_BG_SYSTEM_ALLIANCE : CHAT_MSG_BG_SYSTEM_HORDE; 165 sprintf(buf, Get MangosString(LANG_BG_AB_NODE_TAKEN), (teamIndex == 0) ? GetMangosString(LANG_BG_AB_ALLY) : GetMangosString(LANG_BG_AB_HORDE), _GetNodeName(node));163 sprintf(buf, GetTrinityString(LANG_BG_AB_NODE_TAKEN), (teamIndex == 0) ? GetTrinityString(LANG_BG_AB_ALLY) : GetTrinityString(LANG_BG_AB_HORDE), _GetNodeName(node)); 166 164 WorldPacket data; 167 165 ChatHandler::FillMessageData(&data, NULL, type, LANG_UNIVERSAL, NULL, 0, buf, NULL); … … 202 200 { 203 201 if( team == BG_TEAM_ALLIANCE ) 204 SendMessageToAll(Get MangosString(LANG_BG_AB_A_NEAR_VICTORY));202 SendMessageToAll(GetTrinityString(LANG_BG_AB_A_NEAR_VICTORY)); 205 203 else 206 SendMessageToAll(Get MangosString(LANG_BG_AB_H_NEAR_VICTORY));204 SendMessageToAll(GetTrinityString(LANG_BG_AB_H_NEAR_VICTORY)); 207 205 PlaySoundToAll(SOUND_NEAR_VICTORY); 208 206 m_IsInformedNearVictory = true; … … 315 313 { 316 314 case BG_AB_NODE_STABLES: 317 return Get MangosString(LANG_BG_AB_NODE_STABLES);315 return GetTrinityString(LANG_BG_AB_NODE_STABLES); 318 316 case BG_AB_NODE_BLACKSMITH: 319 return Get MangosString(LANG_BG_AB_NODE_BLACKSMITH);317 return GetTrinityString(LANG_BG_AB_NODE_BLACKSMITH); 320 318 case BG_AB_NODE_FARM: 321 return Get MangosString(LANG_BG_AB_NODE_FARM);319 return GetTrinityString(LANG_BG_AB_NODE_FARM); 322 320 case BG_AB_NODE_LUMBER_MILL: 323 return Get MangosString(LANG_BG_AB_NODE_LUMBER_MILL);321 return GetTrinityString(LANG_BG_AB_NODE_LUMBER_MILL); 324 322 case BG_AB_NODE_GOLD_MINE: 325 return Get MangosString(LANG_BG_AB_NODE_GOLD_MINE);323 return GetTrinityString(LANG_BG_AB_NODE_GOLD_MINE); 326 324 default: 327 325 ASSERT(0); … … 478 476 _SendNodeUpdate(node); 479 477 m_NodeTimers[node] = BG_AB_FLAG_CAPTURING_TIME; 480 sprintf(buf, Get MangosString(LANG_BG_AB_NODE_CLAIMED), _GetNodeName(node), (teamIndex == 0) ? GetMangosString(LANG_BG_AB_ALLY) : GetMangosString(LANG_BG_AB_HORDE));478 sprintf(buf, GetTrinityString(LANG_BG_AB_NODE_CLAIMED), _GetNodeName(node), (teamIndex == 0) ? GetTrinityString(LANG_BG_AB_ALLY) : GetTrinityString(LANG_BG_AB_HORDE)); 481 479 sound = SOUND_NODE_CLAIMED; 482 480 } … … 496 494 _SendNodeUpdate(node); 497 495 m_NodeTimers[node] = BG_AB_FLAG_CAPTURING_TIME; 498 sprintf(buf, Get MangosString(LANG_BG_AB_NODE_ASSAULTED), _GetNodeName(node));496 sprintf(buf, GetTrinityString(LANG_BG_AB_NODE_ASSAULTED), _GetNodeName(node)); 499 497 } 500 498 // If contested, change back to occupied … … 511 509 m_NodeTimers[node] = 0; 512 510 _NodeOccupied(node,(teamIndex == 0) ? ALLIANCE:HORDE); 513 sprintf(buf, Get MangosString(LANG_BG_AB_NODE_DEFENDED), _GetNodeName(node));511 sprintf(buf, GetTrinityString(LANG_BG_AB_NODE_DEFENDED), _GetNodeName(node)); 514 512 } 515 513 sound = (teamIndex == 0) ? SOUND_NODE_ASSAULTED_ALLIANCE : SOUND_NODE_ASSAULTED_HORDE; … … 528 526 _NodeDeOccupied(node); 529 527 m_NodeTimers[node] = BG_AB_FLAG_CAPTURING_TIME; 530 sprintf(buf, Get MangosString(LANG_BG_AB_NODE_ASSAULTED), _GetNodeName(node));528 sprintf(buf, GetTrinityString(LANG_BG_AB_NODE_ASSAULTED), _GetNodeName(node)); 531 529 sound = (teamIndex == 0) ? SOUND_NODE_ASSAULTED_ALLIANCE : SOUND_NODE_ASSAULTED_HORDE; 532 530 } … … 537 535 if( m_Nodes[node] >= BG_AB_NODE_TYPE_OCCUPIED ) 538 536 { 539 sprintf(buf, Get MangosString(LANG_BG_AB_NODE_TAKEN), (teamIndex == 0) ? GetMangosString(LANG_BG_AB_ALLY) : GetMangosString(LANG_BG_AB_HORDE), _GetNodeName(node));537 sprintf(buf, GetTrinityString(LANG_BG_AB_NODE_TAKEN), (teamIndex == 0) ? GetTrinityString(LANG_BG_AB_ALLY) : GetTrinityString(LANG_BG_AB_HORDE), _GetNodeName(node)); 540 538 ChatHandler::FillMessageData(&data, NULL, type, LANG_UNIVERSAL, NULL, 0, buf, NULL); 541 539 SendPacketToAll(&data);