Changeset 44 for trunk/src/game/Level2.cpp
- Timestamp:
- 11/19/08 13:27:40 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Level2.cpp
r37 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 … … 617 619 { 618 620 ReputationRank rank = target->GetReputationRank(factionEntry); 619 std::string rankName = Get MangosString(ReputationRankStrIndex[rank]);621 std::string rankName = GetTrinityString(ReputationRankStrIndex[rank]); 620 622 621 623 ss << " " << rankName << "|h|r (" << target->GetReputation(factionEntry) << ")"; 622 624 623 625 if(repItr->second.Flags & FACTION_FLAG_VISIBLE) 624 ss << Get MangosString(LANG_FACTION_VISIBLE);626 ss << GetTrinityString(LANG_FACTION_VISIBLE); 625 627 if(repItr->second.Flags & FACTION_FLAG_AT_WAR) 626 ss << Get MangosString(LANG_FACTION_ATWAR);628 ss << GetTrinityString(LANG_FACTION_ATWAR); 627 629 if(repItr->second.Flags & FACTION_FLAG_PEACE_FORCED) 628 ss << Get MangosString(LANG_FACTION_PEACE_FORCED);630 ss << GetTrinityString(LANG_FACTION_PEACE_FORCED); 629 631 if(repItr->second.Flags & FACTION_FLAG_HIDDEN) 630 ss << Get MangosString(LANG_FACTION_HIDDEN);632 ss << GetTrinityString(LANG_FACTION_HIDDEN); 631 633 if(repItr->second.Flags & FACTION_FLAG_INVISIBLE_FORCED) 632 ss << Get MangosString(LANG_FACTION_INVISIBLE_FORCED);634 ss << GetTrinityString(LANG_FACTION_INVISIBLE_FORCED); 633 635 if(repItr->second.Flags & FACTION_FLAG_INACTIVE) 634 ss << Get MangosString(LANG_FACTION_INACTIVE);636 ss << GetTrinityString(LANG_FACTION_INACTIVE); 635 637 } 636 638 else 637 ss << Get MangosString(LANG_FACTION_NOREPUTATION);639 ss << GetTrinityString(LANG_FACTION_NOREPUTATION); 638 640 639 641 SendSysMessage(ss.str().c_str()); … … 686 688 for (; r < MAX_REPUTATION_RANK; ++r) 687 689 { 688 std::string rank = Get MangosString(ReputationRankStrIndex[r]);690 std::string rank = GetTrinityString(ReputationRankStrIndex[r]); 689 691 if(rank.empty()) 690 692 continue; … … 1797 1799 } 1798 1800 1799 std::string username = Get MangosString(LANG_ERROR);1800 std::string last_ip = Get MangosString(LANG_ERROR);1801 std::string username = GetTrinityString(LANG_ERROR); 1802 std::string last_ip = GetTrinityString(LANG_ERROR); 1801 1803 uint32 security = 0; 1802 std::string last_login = Get MangosString(LANG_ERROR);1804 std::string last_login = GetTrinityString(LANG_ERROR); 1803 1805 1804 1806 QueryResult* result = loginDatabase.PQuery("SELECT username,gmlevel,last_ip,last_login FROM account WHERE id = '%u'",accId); … … 1822 1824 } 1823 1825 1824 PSendSysMessage(LANG_PINFO_ACCOUNT, (target?"":Get MangosString(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); 1825 1827 1826 1828 std::string timeStr = secsToTimeString(total_player_time,true,true); … … 1849 1851 FactionName = "#Not found#"; 1850 1852 ReputationRank rank = target->GetReputationRank(factionEntry); 1851 std::string rankName = Get MangosString(ReputationRankStrIndex[rank]);1853 std::string rankName = GetTrinityString(ReputationRankStrIndex[rank]); 1852 1854 std::ostringstream ss; 1853 1855 ss << itr->second.ID << ": |cffffffff|Hfaction:" << itr->second.ID << "|h[" << FactionName << "]|h|r " << rankName << "|h|r (" << target->GetReputation(factionEntry) << ")"; 1854 1856 1855 1857 if(itr->second.Flags & FACTION_FLAG_VISIBLE) 1856 ss << Get MangosString(LANG_FACTION_VISIBLE);1858 ss << GetTrinityString(LANG_FACTION_VISIBLE); 1857 1859 if(itr->second.Flags & FACTION_FLAG_AT_WAR) 1858 ss << Get MangosString(LANG_FACTION_ATWAR);1860 ss << GetTrinityString(LANG_FACTION_ATWAR); 1859 1861 if(itr->second.Flags & FACTION_FLAG_PEACE_FORCED) 1860 ss << Get MangosString(LANG_FACTION_PEACE_FORCED);1862 ss << GetTrinityString(LANG_FACTION_PEACE_FORCED); 1861 1863 if(itr->second.Flags & FACTION_FLAG_HIDDEN) 1862 ss << Get MangosString(LANG_FACTION_HIDDEN);1864 ss << GetTrinityString(LANG_FACTION_HIDDEN); 1863 1865 if(itr->second.Flags & FACTION_FLAG_INVISIBLE_FORCED) 1864 ss << Get MangosString(LANG_FACTION_INVISIBLE_FORCED);1866 ss << GetTrinityString(LANG_FACTION_INVISIBLE_FORCED); 1865 1867 if(itr->second.Flags & FACTION_FLAG_INACTIVE) 1866 ss << Get MangosString(LANG_FACTION_INACTIVE);1868 ss << GetTrinityString(LANG_FACTION_INACTIVE); 1867 1869 1868 1870 SendSysMessage(ss.str().c_str()); … … 1877 1879 std::string name; 1878 1880 if(!objmgr.GetPlayerNameByGUID(guid,name)) 1879 name = Get MangosString(LANG_UNKNOWN);1881 name = GetTrinityString(LANG_UNKNOWN); 1880 1882 1881 1883 PSendSysMessage(LANG_COMMAND_TICKETVIEW, name.c_str(),time,text); … … 1900 1902 count = 0; 1901 1903 1902 PSendSysMessage(LANG_COMMAND_TICKETCOUNT, count, m_session->GetPlayer()->isAcceptTickets() ? Get MangosString(LANG_ON) : GetMangosString(LANG_OFF));1904 PSendSysMessage(LANG_COMMAND_TICKETCOUNT, count, m_session->GetPlayer()->isAcceptTickets() ? GetTrinityString(LANG_ON) : GetTrinityString(LANG_OFF)); 1903 1905 return true; 1904 1906 } … … 3479 3481 } 3480 3482 3481 sLog.outDebug(Get MangosString(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); 3482 3484 3483 3485 map->Add(pGameObj); … … 3588 3590 if (Utf8FitTo(descr, wnamepart)) 3589 3591 { 3590 char const* active = activeEvents.find(id) != activeEvents.end() ? Get MangosString(LANG_ACTIVE) : "";3592 char const* active = activeEvents.find(id) != activeEvents.end() ? GetTrinityString(LANG_ACTIVE) : ""; 3591 3593 PSendSysMessage(LANG_EVENT_ENTRY_LIST,id,id,descr.c_str(),active ); 3592 3594 ++counter; … … 3607 3609 GameEvent::ActiveEvents const& activeEvents = gameeventmgr.GetActiveEventList(); 3608 3610 3609 char const* active = Get MangosString(LANG_ACTIVE);3611 char const* active = GetTrinityString(LANG_ACTIVE); 3610 3612 3611 3613 for(GameEvent::ActiveEvents::const_iterator itr = activeEvents.begin(); itr != activeEvents.end(); ++itr ) … … 3655 3657 GameEvent::ActiveEvents const& activeEvents = gameeventmgr.GetActiveEventList(); 3656 3658 bool active = activeEvents.find(event_id) != activeEvents.end(); 3657 char const* activeStr = active ? Get MangosString(LANG_ACTIVE) : "";3659 char const* activeStr = active ? GetTrinityString(LANG_ACTIVE) : ""; 3658 3660 3659 3661 std::string startTimeStr = TimeToTimestampStr(eventData.start);