Show
Ignore:
Timestamp:
11/19/08 13:27:40 (17 years ago)
Author:
yumileroy
Message:

[svn] * Merge Temp dev SVN with Assembla.
* Changes include:

  • Implementation of w12x's Outdoor PvP and Game Event Systems.
  • Temporary removal of IRC Chat Bot (until infinite loop when disabled is fixed).
  • All mangos -> trinity (to convert your mangos_string table, please run mangos_string_to_trinity_string.sql).
  • Improved Config cleanup.
  • And many more changes.

Original author: Seline
Date: 2008-10-14 11:57:03-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/BattleGroundAB.cpp

    r34 r44  
    11/* 
    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/> 
    35 * 
    46 * This program is free software; you can redistribute it and/or modify 
     
    911 * This program is distributed in the hope that it will be useful, 
    1012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
    1214 * GNU General Public License for more details. 
    1315 * 
    1416 * You should have received a copy of the GNU General Public License 
    1517 * along with this program; if not, write to the Free Software 
    16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
     18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
    1719 */ 
    1820 
     
    8385        { 
    8486            m_Events |= 0x04; 
    85             SendMessageToAll(GetMangosString(LANG_BG_AB_ONEMINTOSTART)); 
     87            SendMessageToAll(GetTrinityString(LANG_BG_AB_ONEMINTOSTART)); 
    8688        } 
    8789        // After 1,5 minute, warning is signalled 
     
    8991        { 
    9092            m_Events |= 0x08; 
    91             SendMessageToAll(GetMangosString(LANG_BG_AB_HALFMINTOSTART)); 
     93            SendMessageToAll(GetTrinityString(LANG_BG_AB_HALFMINTOSTART)); 
    9294        } 
    9395        // After 2 minutes, gates OPEN ! x) 
     
    9597        { 
    9698            m_Events |= 0x10; 
    97             SendMessageToAll(GetMangosString(LANG_BG_AB_STARTED)); 
     99            SendMessageToAll(GetTrinityString(LANG_BG_AB_STARTED)); 
    98100 
    99101            // spawn neutral banners 
     
    109111            DoorOpen(BG_AB_OBJECT_GATE_H); 
    110112 
     113            PlaySoundToAll(SOUND_BG_START); 
    111114            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 
    118116            SetStatus(STATUS_IN_PROGRESS); 
    119117 
     
    163161                    char buf[256]; 
    164162                    uint8 type = (teamIndex == 0) ? CHAT_MSG_BG_SYSTEM_ALLIANCE : CHAT_MSG_BG_SYSTEM_HORDE; 
    165                     sprintf(buf, GetMangosString(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)); 
    166164                    WorldPacket data; 
    167165                    ChatHandler::FillMessageData(&data, NULL, type, LANG_UNIVERSAL, NULL, 0, buf, NULL); 
     
    202200                { 
    203201                    if( team == BG_TEAM_ALLIANCE ) 
    204                         SendMessageToAll(GetMangosString(LANG_BG_AB_A_NEAR_VICTORY)); 
     202                        SendMessageToAll(GetTrinityString(LANG_BG_AB_A_NEAR_VICTORY)); 
    205203                    else 
    206                         SendMessageToAll(GetMangosString(LANG_BG_AB_H_NEAR_VICTORY)); 
     204                        SendMessageToAll(GetTrinityString(LANG_BG_AB_H_NEAR_VICTORY)); 
    207205                    PlaySoundToAll(SOUND_NEAR_VICTORY); 
    208206                    m_IsInformedNearVictory = true; 
     
    315313    { 
    316314        case BG_AB_NODE_STABLES: 
    317             return GetMangosString(LANG_BG_AB_NODE_STABLES); 
     315            return GetTrinityString(LANG_BG_AB_NODE_STABLES); 
    318316        case BG_AB_NODE_BLACKSMITH: 
    319             return GetMangosString(LANG_BG_AB_NODE_BLACKSMITH); 
     317            return GetTrinityString(LANG_BG_AB_NODE_BLACKSMITH); 
    320318        case BG_AB_NODE_FARM: 
    321             return GetMangosString(LANG_BG_AB_NODE_FARM); 
     319            return GetTrinityString(LANG_BG_AB_NODE_FARM); 
    322320        case BG_AB_NODE_LUMBER_MILL: 
    323             return GetMangosString(LANG_BG_AB_NODE_LUMBER_MILL); 
     321            return GetTrinityString(LANG_BG_AB_NODE_LUMBER_MILL); 
    324322        case BG_AB_NODE_GOLD_MINE: 
    325             return GetMangosString(LANG_BG_AB_NODE_GOLD_MINE); 
     323            return GetTrinityString(LANG_BG_AB_NODE_GOLD_MINE); 
    326324        default: 
    327325            ASSERT(0); 
     
    478476        _SendNodeUpdate(node); 
    479477        m_NodeTimers[node] = BG_AB_FLAG_CAPTURING_TIME; 
    480         sprintf(buf, GetMangosString(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)); 
    481479        sound = SOUND_NODE_CLAIMED; 
    482480    } 
     
    496494            _SendNodeUpdate(node); 
    497495            m_NodeTimers[node] = BG_AB_FLAG_CAPTURING_TIME; 
    498             sprintf(buf, GetMangosString(LANG_BG_AB_NODE_ASSAULTED), _GetNodeName(node)); 
     496            sprintf(buf, GetTrinityString(LANG_BG_AB_NODE_ASSAULTED), _GetNodeName(node)); 
    499497        } 
    500498        // If contested, change back to occupied 
     
    511509            m_NodeTimers[node] = 0; 
    512510            _NodeOccupied(node,(teamIndex == 0) ? ALLIANCE:HORDE); 
    513             sprintf(buf, GetMangosString(LANG_BG_AB_NODE_DEFENDED), _GetNodeName(node)); 
     511            sprintf(buf, GetTrinityString(LANG_BG_AB_NODE_DEFENDED), _GetNodeName(node)); 
    514512        } 
    515513        sound = (teamIndex == 0) ? SOUND_NODE_ASSAULTED_ALLIANCE : SOUND_NODE_ASSAULTED_HORDE; 
     
    528526        _NodeDeOccupied(node); 
    529527        m_NodeTimers[node] = BG_AB_FLAG_CAPTURING_TIME; 
    530         sprintf(buf, GetMangosString(LANG_BG_AB_NODE_ASSAULTED), _GetNodeName(node)); 
     528        sprintf(buf, GetTrinityString(LANG_BG_AB_NODE_ASSAULTED), _GetNodeName(node)); 
    531529        sound = (teamIndex == 0) ? SOUND_NODE_ASSAULTED_ALLIANCE : SOUND_NODE_ASSAULTED_HORDE; 
    532530    } 
     
    537535    if( m_Nodes[node] >= BG_AB_NODE_TYPE_OCCUPIED ) 
    538536    { 
    539         sprintf(buf, GetMangosString(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)); 
    540538        ChatHandler::FillMessageData(&data, NULL, type, LANG_UNIVERSAL, NULL, 0, buf, NULL); 
    541539        SendPacketToAll(&data);