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/trinitycore/CliRunnable.cpp

    r41 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 
    19 /// \addtogroup mangosd 
     21/// \addtogroup Trinityd 
    2022/// @{ 
    2123/// \file 
     
    3739#include "PlayerDump.h" 
    3840#include "Player.h" 
    39 #include "IRCClient.h" 
    4041 
    4142//CliCommand and CliCommandHolder are defined in World.h to avoid cyclic deps 
     
    315316    sWorld.SendWorldText(LANG_SYSTEMMESSAGE,textUtf8.c_str()); 
    316317    zprintf("Broadcasting to the world: %s\r\n",textUtf8.c_str()); 
    317  
    318     if((sIRC.BOTMASK & 256) != 0) 
    319     { 
    320         std::string ircchan = "#"; 
    321         ircchan += sIRC._irc_chan[sIRC.anchn].c_str(); 
    322         sIRC.Send_IRC_Channel(ircchan, sIRC.MakeMsg("\00304,08\037/!\\\037\017\00304 System Message \00304,08\037/!\\\037\017 %s", "%s", text), true); 
    323     } 
    324  
    325318} 
    326319 
     
    641634} 
    642635 
    643 /// Display %MaNGOS version 
     636/// Display %TrinIty version 
    644637void CliVersion(char*,pPrintf zprintf) 
    645638{ 
     
    948941    if (!result) 
    949942    { 
    950         zprintf(objmgr.GetMangosStringForDBCLocale(LANG_COMMAND_TELE_NOTFOUND),"\r\n"); 
     943        zprintf(objmgr.GetTrinityStringForDBCLocale(LANG_COMMAND_TELE_NOTFOUND),"\r\n"); 
    951944        return; 
    952945    } 
     
    962955    if(!MapManager::IsValidMapCoord(mapid,x,y,z,ort)) 
    963956    { 
    964         zprintf(objmgr.GetMangosStringForDBCLocale(LANG_INVALID_TARGET_COORD),"\r\n",x,y,mapid); 
     957        zprintf(objmgr.GetTrinityStringForDBCLocale(LANG_INVALID_TARGET_COORD),"\r\n",x,y,mapid); 
    965958        return; 
    966959    } 
     
    972965        if(chr->IsBeingTeleported()==true) 
    973966        { 
    974             zprintf(objmgr.GetMangosStringForDBCLocale(LANG_IS_TELEPORTED),"\r\n",chr->GetName()); 
     967            zprintf(objmgr.GetTrinityStringForDBCLocale(LANG_IS_TELEPORTED),"\r\n",chr->GetName()); 
    975968            return; 
    976969        } 
     
    978971        if(chr->isInFlight()) 
    979972        { 
    980             zprintf(objmgr.GetMangosStringForDBCLocale(LANG_CHAR_IN_FLIGHT),"\r\n",chr->GetName()); 
     973            zprintf(objmgr.GetTrinityStringForDBCLocale(LANG_CHAR_IN_FLIGHT),"\r\n",chr->GetName()); 
    981974            return; 
    982975        } 
    983976 
    984         zprintf(objmgr.GetMangosStringForDBCLocale(LANG_TELEPORTING_TO),"\r\n",chr->GetName(),"", location.c_str()); 
     977        zprintf(objmgr.GetTrinityStringForDBCLocale(LANG_TELEPORTING_TO),"\r\n",chr->GetName(),"", location.c_str()); 
    985978 
    986979        chr->SaveRecallPosition(); 
     
    990983    else if (uint64 guid = objmgr.GetPlayerGUIDByName(name.c_str())) 
    991984    { 
    992         zprintf(objmgr.GetMangosStringForDBCLocale(LANG_TELEPORTING_TO),"\r\n",name.c_str(), objmgr.GetMangosStringForDBCLocale(LANG_OFFLINE), location.c_str()); 
     985        zprintf(objmgr.GetTrinityStringForDBCLocale(LANG_TELEPORTING_TO),"\r\n",name.c_str(), objmgr.GetTrinityStringForDBCLocale(LANG_OFFLINE), location.c_str()); 
    993986        Player::SavePositionInDB(mapid,x,y,z,ort,MapManager::Instance().GetZoneId(mapid,x,y),guid); 
    994987    } 
    995988    else 
    996         zprintf(objmgr.GetMangosStringForDBCLocale(LANG_NO_PLAYER),"\r\n",name.c_str()); 
     989        zprintf(objmgr.GetTrinityStringForDBCLocale(LANG_NO_PLAYER),"\r\n",name.c_str()); 
    997990} 
    998991 
     
    10981091    ///- Save players 
    10991092    ObjectAccessor::Instance().SaveAllPlayers(); 
    1100     zprintf( objmgr.GetMangosStringForDBCLocale(LANG_PLAYERS_SAVED) ); 
     1093    zprintf( objmgr.GetTrinityStringForDBCLocale(LANG_PLAYERS_SAVED) ); 
    11011094 
    11021095    ///- Send a message