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/Level2.cpp

    r37 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 
     
    617619                { 
    618620                    ReputationRank rank = target->GetReputationRank(factionEntry); 
    619                     std::string rankName = GetMangosString(ReputationRankStrIndex[rank]); 
     621                    std::string rankName = GetTrinityString(ReputationRankStrIndex[rank]); 
    620622 
    621623                    ss << " " << rankName << "|h|r (" << target->GetReputation(factionEntry) << ")"; 
    622624 
    623625                    if(repItr->second.Flags & FACTION_FLAG_VISIBLE) 
    624                         ss << GetMangosString(LANG_FACTION_VISIBLE); 
     626                        ss << GetTrinityString(LANG_FACTION_VISIBLE); 
    625627                    if(repItr->second.Flags & FACTION_FLAG_AT_WAR) 
    626                         ss << GetMangosString(LANG_FACTION_ATWAR); 
     628                        ss << GetTrinityString(LANG_FACTION_ATWAR); 
    627629                    if(repItr->second.Flags & FACTION_FLAG_PEACE_FORCED) 
    628                         ss << GetMangosString(LANG_FACTION_PEACE_FORCED); 
     630                        ss << GetTrinityString(LANG_FACTION_PEACE_FORCED); 
    629631                    if(repItr->second.Flags & FACTION_FLAG_HIDDEN) 
    630                         ss << GetMangosString(LANG_FACTION_HIDDEN); 
     632                        ss << GetTrinityString(LANG_FACTION_HIDDEN); 
    631633                    if(repItr->second.Flags & FACTION_FLAG_INVISIBLE_FORCED) 
    632                         ss << GetMangosString(LANG_FACTION_INVISIBLE_FORCED); 
     634                        ss << GetTrinityString(LANG_FACTION_INVISIBLE_FORCED); 
    633635                    if(repItr->second.Flags & FACTION_FLAG_INACTIVE) 
    634                         ss << GetMangosString(LANG_FACTION_INACTIVE); 
     636                        ss << GetTrinityString(LANG_FACTION_INACTIVE); 
    635637                } 
    636638                else 
    637                     ss << GetMangosString(LANG_FACTION_NOREPUTATION); 
     639                    ss << GetTrinityString(LANG_FACTION_NOREPUTATION); 
    638640 
    639641                SendSysMessage(ss.str().c_str()); 
     
    686688        for (; r < MAX_REPUTATION_RANK; ++r) 
    687689        { 
    688             std::string rank = GetMangosString(ReputationRankStrIndex[r]); 
     690            std::string rank = GetTrinityString(ReputationRankStrIndex[r]); 
    689691            if(rank.empty()) 
    690692                continue; 
     
    17971799    } 
    17981800 
    1799     std::string username = GetMangosString(LANG_ERROR); 
    1800     std::string last_ip = GetMangosString(LANG_ERROR); 
     1801    std::string username = GetTrinityString(LANG_ERROR); 
     1802    std::string last_ip = GetTrinityString(LANG_ERROR); 
    18011803    uint32 security = 0; 
    1802     std::string last_login = GetMangosString(LANG_ERROR); 
     1804    std::string last_login = GetTrinityString(LANG_ERROR); 
    18031805 
    18041806    QueryResult* result = loginDatabase.PQuery("SELECT username,gmlevel,last_ip,last_login FROM account WHERE id = '%u'",accId); 
     
    18221824    } 
    18231825 
    1824     PSendSysMessage(LANG_PINFO_ACCOUNT, (target?"":GetMangosString(LANG_OFFLINE)), name.c_str(), GUID_LOPART(targetGUID), username.c_str(), accId, security, last_ip.c_str(), last_login.c_str(), latency); 
     1826    PSendSysMessage(LANG_PINFO_ACCOUNT, (target?"":GetTrinityString(LANG_OFFLINE)), name.c_str(), GUID_LOPART(targetGUID), username.c_str(), accId, security, last_ip.c_str(), last_login.c_str(), latency); 
    18251827 
    18261828    std::string timeStr = secsToTimeString(total_player_time,true,true); 
     
    18491851                FactionName = "#Not found#"; 
    18501852            ReputationRank rank = target->GetReputationRank(factionEntry); 
    1851             std::string rankName = GetMangosString(ReputationRankStrIndex[rank]); 
     1853            std::string rankName = GetTrinityString(ReputationRankStrIndex[rank]); 
    18521854            std::ostringstream ss; 
    18531855            ss << itr->second.ID << ": |cffffffff|Hfaction:" << itr->second.ID << "|h[" << FactionName << "]|h|r " << rankName << "|h|r (" << target->GetReputation(factionEntry) << ")"; 
    18541856 
    18551857            if(itr->second.Flags & FACTION_FLAG_VISIBLE) 
    1856                 ss << GetMangosString(LANG_FACTION_VISIBLE); 
     1858                ss << GetTrinityString(LANG_FACTION_VISIBLE); 
    18571859            if(itr->second.Flags & FACTION_FLAG_AT_WAR) 
    1858                 ss << GetMangosString(LANG_FACTION_ATWAR); 
     1860                ss << GetTrinityString(LANG_FACTION_ATWAR); 
    18591861            if(itr->second.Flags & FACTION_FLAG_PEACE_FORCED) 
    1860                 ss << GetMangosString(LANG_FACTION_PEACE_FORCED); 
     1862                ss << GetTrinityString(LANG_FACTION_PEACE_FORCED); 
    18611863            if(itr->second.Flags & FACTION_FLAG_HIDDEN) 
    1862                 ss << GetMangosString(LANG_FACTION_HIDDEN); 
     1864                ss << GetTrinityString(LANG_FACTION_HIDDEN); 
    18631865            if(itr->second.Flags & FACTION_FLAG_INVISIBLE_FORCED) 
    1864                 ss << GetMangosString(LANG_FACTION_INVISIBLE_FORCED); 
     1866                ss << GetTrinityString(LANG_FACTION_INVISIBLE_FORCED); 
    18651867            if(itr->second.Flags & FACTION_FLAG_INACTIVE) 
    1866                 ss << GetMangosString(LANG_FACTION_INACTIVE); 
     1868                ss << GetTrinityString(LANG_FACTION_INACTIVE); 
    18671869 
    18681870            SendSysMessage(ss.str().c_str()); 
     
    18771879    std::string name; 
    18781880    if(!objmgr.GetPlayerNameByGUID(guid,name)) 
    1879         name = GetMangosString(LANG_UNKNOWN); 
     1881        name = GetTrinityString(LANG_UNKNOWN); 
    18801882 
    18811883    PSendSysMessage(LANG_COMMAND_TICKETVIEW, name.c_str(),time,text); 
     
    19001902            count = 0; 
    19011903 
    1902         PSendSysMessage(LANG_COMMAND_TICKETCOUNT, count, m_session->GetPlayer()->isAcceptTickets() ?  GetMangosString(LANG_ON) : GetMangosString(LANG_OFF)); 
     1904        PSendSysMessage(LANG_COMMAND_TICKETCOUNT, count, m_session->GetPlayer()->isAcceptTickets() ?  GetTrinityString(LANG_ON) : GetTrinityString(LANG_OFF)); 
    19031905        return true; 
    19041906    } 
     
    34793481    } 
    34803482 
    3481     sLog.outDebug(GetMangosString(LANG_GAMEOBJECT_CURRENT), goI->name, db_lowGUID, x, y, z, o); 
     3483    sLog.outDebug(GetTrinityString(LANG_GAMEOBJECT_CURRENT), goI->name, db_lowGUID, x, y, z, o); 
    34823484 
    34833485    map->Add(pGameObj); 
     
    35883590        if (Utf8FitTo(descr, wnamepart)) 
    35893591        { 
    3590             char const* active = activeEvents.find(id) != activeEvents.end() ? GetMangosString(LANG_ACTIVE) : ""; 
     3592            char const* active = activeEvents.find(id) != activeEvents.end() ? GetTrinityString(LANG_ACTIVE) : ""; 
    35913593            PSendSysMessage(LANG_EVENT_ENTRY_LIST,id,id,descr.c_str(),active ); 
    35923594            ++counter; 
     
    36073609    GameEvent::ActiveEvents const& activeEvents = gameeventmgr.GetActiveEventList(); 
    36083610 
    3609     char const* active = GetMangosString(LANG_ACTIVE); 
     3611    char const* active = GetTrinityString(LANG_ACTIVE); 
    36103612 
    36113613    for(GameEvent::ActiveEvents::const_iterator itr = activeEvents.begin(); itr != activeEvents.end(); ++itr ) 
     
    36553657    GameEvent::ActiveEvents const& activeEvents = gameeventmgr.GetActiveEventList(); 
    36563658    bool active = activeEvents.find(event_id) != activeEvents.end(); 
    3657     char const* activeStr = active ? GetMangosString(LANG_ACTIVE) : ""; 
     3659    char const* activeStr = active ? GetTrinityString(LANG_ACTIVE) : ""; 
    36583660 
    36593661    std::string startTimeStr = TimeToTimestampStr(eventData.start);