Changeset 44 for trunk/src/trinitycore
- Timestamp:
- 11/19/08 13:27:40 (17 years ago)
- Location:
- trunk/src/trinitycore
- Files:
-
- 11 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/trinitycore/CliRunnable.cpp
r41 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 19 /// \addtogroup mangosd21 /// \addtogroup Trinityd 20 22 /// @{ 21 23 /// \file … … 37 39 #include "PlayerDump.h" 38 40 #include "Player.h" 39 #include "IRCClient.h"40 41 41 42 //CliCommand and CliCommandHolder are defined in World.h to avoid cyclic deps … … 315 316 sWorld.SendWorldText(LANG_SYSTEMMESSAGE,textUtf8.c_str()); 316 317 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 325 318 } 326 319 … … 641 634 } 642 635 643 /// Display % MaNGOSversion636 /// Display %TrinIty version 644 637 void CliVersion(char*,pPrintf zprintf) 645 638 { … … 948 941 if (!result) 949 942 { 950 zprintf(objmgr.Get MangosStringForDBCLocale(LANG_COMMAND_TELE_NOTFOUND),"\r\n");943 zprintf(objmgr.GetTrinityStringForDBCLocale(LANG_COMMAND_TELE_NOTFOUND),"\r\n"); 951 944 return; 952 945 } … … 962 955 if(!MapManager::IsValidMapCoord(mapid,x,y,z,ort)) 963 956 { 964 zprintf(objmgr.Get MangosStringForDBCLocale(LANG_INVALID_TARGET_COORD),"\r\n",x,y,mapid);957 zprintf(objmgr.GetTrinityStringForDBCLocale(LANG_INVALID_TARGET_COORD),"\r\n",x,y,mapid); 965 958 return; 966 959 } … … 972 965 if(chr->IsBeingTeleported()==true) 973 966 { 974 zprintf(objmgr.Get MangosStringForDBCLocale(LANG_IS_TELEPORTED),"\r\n",chr->GetName());967 zprintf(objmgr.GetTrinityStringForDBCLocale(LANG_IS_TELEPORTED),"\r\n",chr->GetName()); 975 968 return; 976 969 } … … 978 971 if(chr->isInFlight()) 979 972 { 980 zprintf(objmgr.Get MangosStringForDBCLocale(LANG_CHAR_IN_FLIGHT),"\r\n",chr->GetName());973 zprintf(objmgr.GetTrinityStringForDBCLocale(LANG_CHAR_IN_FLIGHT),"\r\n",chr->GetName()); 981 974 return; 982 975 } 983 976 984 zprintf(objmgr.Get MangosStringForDBCLocale(LANG_TELEPORTING_TO),"\r\n",chr->GetName(),"", location.c_str());977 zprintf(objmgr.GetTrinityStringForDBCLocale(LANG_TELEPORTING_TO),"\r\n",chr->GetName(),"", location.c_str()); 985 978 986 979 chr->SaveRecallPosition(); … … 990 983 else if (uint64 guid = objmgr.GetPlayerGUIDByName(name.c_str())) 991 984 { 992 zprintf(objmgr.Get MangosStringForDBCLocale(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()); 993 986 Player::SavePositionInDB(mapid,x,y,z,ort,MapManager::Instance().GetZoneId(mapid,x,y),guid); 994 987 } 995 988 else 996 zprintf(objmgr.Get MangosStringForDBCLocale(LANG_NO_PLAYER),"\r\n",name.c_str());989 zprintf(objmgr.GetTrinityStringForDBCLocale(LANG_NO_PLAYER),"\r\n",name.c_str()); 997 990 } 998 991 … … 1098 1091 ///- Save players 1099 1092 ObjectAccessor::Instance().SaveAllPlayers(); 1100 zprintf( objmgr.Get MangosStringForDBCLocale(LANG_PLAYERS_SAVED) );1093 zprintf( objmgr.GetTrinityStringForDBCLocale(LANG_PLAYERS_SAVED) ); 1101 1094 1102 1095 ///- Send a message -
trunk/src/trinitycore/CliRunnable.h
r2 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 19 /// \addtogroup mangosd21 /// \addtogroup Trinityd 20 22 /// @{ 21 23 /// \file -
trunk/src/trinitycore/Main.cpp
r39 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 19 /// \addtogroup mangosd MangosDaemon21 /// \addtogroup Trinityd Trinity Daemon 20 22 /// @{ 21 23 /// \file … … 26 28 #include "Log.h" 27 29 #include "Master.h" 28 #include "../game/IRCConf.h"29 #include "../game/IRCClient.h"30 30 31 31 #ifndef _TRINITY_CORE_CONFIG … … 41 41 #ifdef WIN32 42 42 #include "ServiceWin32.h" 43 char serviceName[] = " mangosd";44 char serviceLongName[] = " MaNGOS worldservice";43 char serviceName[] = "Trinityd"; 44 char serviceLongName[] = "Trinity core service"; 45 45 char serviceDescription[] = "Massive Network Game Object Server"; 46 46 /* … … 73 73 } 74 74 75 /// Launch the mangosserver75 /// Launch the Trinity server 76 76 extern int main(int argc, char **argv) 77 77 { 78 78 ///- Command line parsing to get the configuration file name 79 79 char const* cfg_file = _TRINITY_CORE_CONFIG; 80 char const* mc_cfg_file = _TRINITY_CORE_CONFIG;81 80 int c=1; 82 81 while( c < argc ) … … 140 139 } 141 140 142 sIRC.SetCfg(mc_cfg_file);143 141 sLog.outString("Using configuration file %s.", cfg_file); 144 142 … … 163 161 // 0 - normal shutdown 164 162 // 1 - shutdown at error 165 // 2 - restart command used, this code can be used by restarter for restart mangosd163 // 2 - restart command used, this code can be used by restarter for restart Trinityd 166 164 } 167 165 -
trunk/src/trinitycore/Makefile.am
r23 r44 5 5 # This program is free software; you can redistribute it and/or modify 6 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation; either version 3of the License, or7 # the Free Software Foundation; either version 2 of the License, or 8 8 # (at your option) any later version. 9 9 # … … 83 83 done 84 84 85 -
trunk/src/trinitycore/Master.cpp
r39 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 19 21 /** \file 20 \ingroup mangosd22 \ingroup Trinityd 21 23 */ 22 24 … … 39 41 #include "ScriptCalls.h" 40 42 #include "Util.h" 41 #include "IRCClient.h"42 43 43 44 #include "sockets/TcpSocket.h" … … 156 157 ipaddr_t raip; 157 158 if (!Utility::u2ip (stringip, raip)) 158 sLog.outError (" MaNGOSRA can not bind to ip %s", stringip.c_str ());159 sLog.outError ("Trinity RA can not bind to ip %s", stringip.c_str ()); 159 160 else if (RAListenSocket.Bind (raip, raport)) 160 sLog.outError (" MaNGOSRA can not bind to port %d on %s", raport, stringip.c_str ());161 sLog.outError ("Trinity RA can not bind to port %d on %s", raport, stringip.c_str ()); 161 162 else 162 163 { … … 228 229 return 1; 229 230 230 ///- Load IRC Config (need DB for gm levels, AutoBroadcast uses world timers)231 sIRC.LoadConfig(sIRC.CfgFile);232 233 231 ///- Initialize the World 234 232 sWorld.SetInitialWorldSettings(); … … 243 241 // set server online 244 242 loginDatabase.PExecute("UPDATE realmlist SET color = 0, population = 0 WHERE id = '%d'",realmID); 245 246 // Create table: has_logged_in_before - used for certain custom options247 sLog.outBasic("ImpConfig: Creating/Checking table 'has_logged_in_before'...");248 CharacterDatabase.PExecute("CREATE TABLE IF NOT EXISTS `has_logged_in_before` (`guid` int(11) unsigned NOT NULL default '0', PRIMARY KEY (`guid`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='ImpConfig check';");249 sLog.outBasic("ImpConfig: Done...");250 243 251 244 #ifdef WIN32 … … 278 271 if(!curAff ) 279 272 { 280 sLog.outError("Processors marked in UseProcessors bitmask (hex) %x not accessible for mangosd. Accessible processors bitmask (hex): %x",Aff,appAff);273 sLog.outError("Processors marked in UseProcessors bitmask (hex) %x not accessible for Trinityd. Accessible processors bitmask (hex): %x",Aff,appAff); 281 274 } 282 275 else … … 299 292 sLog.outString("TrinityCore process priority class set to HIGH"); 300 293 else 301 sLog.outError("ERROR: Can't set mangosd process priority class.");294 sLog.outError("ERROR: Can't set Trinityd process priority class."); 302 295 sLog.outString(); 303 296 } … … 313 306 uint32 numLoops = (sConfig.GetIntDefault( "MaxPingTime", 30 ) * (MINUTE * 1000000 / socketSelecttime)); 314 307 uint32 loopCounter = 0; 315 316 // Start up IRC bot317 ZThread::Thread irc(new IRCClient);318 irc.setPriority ((ZThread::Priority )2);319 320 321 308 322 309 ///- Start up freeze catcher thread -
trunk/src/trinitycore/Master.h
r2 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 19 /// \addtogroup mangosd21 /// \addtogroup Trinityd 20 22 /// @{ 21 23 /// \file … … 46 48 }; 47 49 48 #define sMaster MaNGOS::Singleton<Master>::Instance()50 #define sMaster Trinity::Singleton<Master>::Instance() 49 51 #endif 50 52 /// @} -
trunk/src/trinitycore/RASocket.cpp
r41 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 19 21 /** \file 20 \ingroup mangosd22 \ingroup Trinityd 21 23 */ 22 24 -
trunk/src/trinitycore/RASocket.h
r2 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 19 /// \addtogroup mangosd21 /// \addtogroup Trinityd 20 22 /// @{ 21 23 /// \file -
trunk/src/trinitycore/WorldRunnable.cpp
r6 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 19 21 /** \file 20 \ingroup mangosd22 \ingroup Trinityd 21 23 */ 22 24 -
trunk/src/trinitycore/WorldRunnable.h
r2 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 19 /// \addtogroup mangosd21 /// \addtogroup Trinityd 20 22 /// @{ 21 23 /// \file -
trunk/src/trinitycore/trinitycore.conf.dist
r41 r44 300 300 LogSQL = 1 301 301 PidFile = "" 302 LogLevel = 3302 LogLevel = 1 303 303 LogTime = 0 304 304 LogFile = "server.log" … … 808 808 # Visibility grey distance for creatures/players (fast changing objects) 809 809 # addition to appropriate object type Visibility.Distance.* use in case visibility removing to 810 # object (except corpse around distences) If ᅵis distance and G is grey distance then object810 # object (except corpse around distences) If ? is distance and G is grey distance then object 811 811 # make visible if distance to it <= D but make non visible if distance > D+G 812 812 # Default: 1 (yard) … … 1134 1134 # Players will start with all flight paths (Note: ALL flight paths, not only player's team) 1135 1135 # 1136 # AntiCheat.GMIsland1137 # If a player enters GM island, he will get teleported away. This will prevent cheaters from buying GM stuff1138 # on servers with a GM mall. GM's will not get teleported away.1139 #1140 1136 # GamemasterStartLevel 1141 1137 # GM starting level … … 1150 1146 # If enabled, "L70ETC - Power of the horde" will be played when BG starts ;) 1151 1147 # 1152 # EnableQueueForGMs1153 # NOTE: This option currently does not work due to ACE patch1154 # GMs will also be added to the login queue (not gmlvl 3+) if enabled. Useful for GM servers.1155 # Default: 0 - off1156 # 1 - on1157 #1158 1148 # HonorPointsAfterDuel 1159 1149 # The amount of honor points the duel winner will get after a duel. … … 1162 1152 # DisableWaterBreath 1163 1153 # Disable/enable waterbreathing for players 1164 #1165 # DisableResurrectSickness1166 # Players wont get any resurrect sickness when speaking with a spirit healer if this is enabled+1167 1154 # 1168 1155 # AlwaysMaxWeaponSkill … … 1188 1175 # NoResetTalentsCost 1189 1176 # Enable or disable no cost when reseting talents 1177 # 1178 # ForbiddenMaps 1179 # map ids that users below SEC_GAMEMASTER cannot enter, with delimiter ',' 1180 # Default: "" 1181 # example: "538,90" 1182 # Note that it's HIGHLY DISCOURAGED to forbid starting maps (0, 1, 530)! 1190 1183 # 1191 1184 ################################################################################################################### … … 1198 1191 PlayerStart.MapsExplored = 0 1199 1192 PlayerStart.AllFlightPaths = 0 1200 AntiCheat.GMIsland = 01201 1193 GamemasterStartLevel = 70 1202 1194 PlayerInstantLogout = 0 1203 1195 MusicInBattleground = 0 1204 EnableQueueForGMs = 01205 1196 HonorPointsAfterDuel = 0 1206 1197 DisableWaterBreath = 0 1207 DisableResurrectSickness = 01208 1198 AlwaysMaxWeaponSkill = 0 1209 1199 PvPToken.Enable = 0 … … 1213 1203 NoResetTalentsCost = 0 1214 1204 1215 ###################################################################################################################1216 # IRC SYSTEM CONFIG1217 #1218 # irc.active1219 # Enable IRC bot/system1220 # Default: 0 - Disable1221 # 0 - Enable1222 # irc.icc1223 # IRC connect code1224 # Default: 001 - Welcome To Network msg1225 # 375 - Beginning Of MOTD1226 # 376 - End Of MOTD1227 #1228 # irc.host1229 # IRC server to connect to1230 #1231 # irc.port1232 # IRC server port to use1233 # Default: "6667" - Semi-standard IRC port1234 #1235 # irc.user1236 # The username/ident to use when connecting to the IRC server1237 #1238 # irc.nick1239 # IRC nickname to be used by the bot1240 #1241 # irc.pass1242 # The password to be used to identify to NickServ1243 #1244 # irc.auth1245 # IRC Authentication Method1246 # Default: 0 - Disable1247 # 1 - NickServ - Normal Method - PRIVMSG NickServ :IDENTIFY Password1248 # 2 - NickServ - Alternate Method To Identify To A Different Nick - PRIVMSG NickServ :IDENTIFY irc.auth.nick Password1249 # 3 - QuakeNet - Normal Method - PRIVMSG Q@CServe.quakenet.org :AUTH irc.nick Password1250 # 4 - QuakeNet - Alternate Method To Identify To A Different Nick - PRIVMSG Q@CServe.quakenet.org :AUTH irc.auth.nick Password1251 #1252 # irc.auth.nick1253 # IRC Nickname to use if Auth method 2 or 4 is used1254 #1255 # irc.ldef1256 # Leave a defined IRC channel on server connect1257 # Default: 0 - Disable1258 # 1 - Enable1259 # irc.defchan1260 # IRC channel to leave on server connect if irc.ldef is on1261 #1262 # irc.wct1263 # Time to wait before (re)attemptimg connection to IRC server1264 # Default: 30000 - (30 Seconds)1265 #1266 # irc.maxattempt1267 # Maximum attempts to try IRC server1268 # Default: 201269 #1270 # irc.auto.announce1271 # Time to wait in Minutes to announce random messages from database.1272 # Default: 30 - (30 Minutes)1273 #1274 # irc.autojoin_kick1275 # Autojoin IRC channel if kicked1276 # Default: 1 - Enable1277 # 0 - Disable1278 #1279 # irc.command_prefix1280 # IRC command prefix1281 # Example: (.)online all1282 #1283 # irc.joinmsg1284 # irc.rstmsg1285 # irc.kickmsg1286 # Bot join/restart/kick messages1287 #1288 # irc.chan_#1289 # wow.chan_#1290 # IRC and WOW channels to link. Leave # out of IRC channel. Both channels _ARE_ case sensitive1291 # Example: irc.chan_1 = "Trinity"1292 # irc.chan_2 = "trinity2"1293 # wow.chan_1 = "world"1294 # wow.chan_2 = "LookingForGroup"1295 #1296 # irc.StatusChannel1297 # Channel Number To Display Status Messages In (AuctionHouse, Levels, Deaths, Etc)1298 # Default: 1 - Channel ID 11299 #1300 # irc.AnnounceChannel1301 # Channel Number To Display Announcements In (Announces, Notifies, Event)1302 # Default: 1 - Channel ID 11303 #1304 # irc.op_gm_login1305 # Op The GM In All Channels The Bot Is On When They Log In1306 # Default: 0 - Disable1307 # 1 - Enable1308 #1309 # irc.op_gm_level1310 # The Minimum GM Level Required To Have The Bot Op The User1311 # Default: 5 - GM Level 51312 #1313 # irc.ajoin (Experimental/Under Development)1314 # Force players to autojoin an in game channel1315 # Atleast one player must be in the channel on server start, and atleast one person online for invite to work1316 # Default: 0 - Disable1317 # 1 - Enable1318 # irc.ajchan1319 # Channel to join if above is Enabled.1320 #1321 # irc.online.result1322 # Maximum number of results per line for the online command1323 #1324 # chat.*** (Defineable Strings)1325 # wow_* - String is displayed in IRC channel1326 # irc_* - String is displayed in WOW channel1327 # Options: $Name, $Level, $Msg, $GM (not all options work in every string)1328 #1329 # Botmask1330 # This defines what the bot announces, if its 0 everything is disabled1331 # simply add the values of the elements you want to create this mask.1332 # Example: WoW join/leaves are 1 and IRC join/leaves are 2, if you want both of these active then the BotMask is 3.1333 # (1)Display WoW Chan Join/Leaves In IRC1334 # (2)Display IRC Chan Join/Leaves/NickChanges In WoW1335 # (4)Display Unknown Command Message When Trigger Is Used And No Command Exists1336 # (8)Announce Security Level > 0 As GM At Login1337 # (16)Announce GM In GM ON State AS GM At Login1338 # (32)Return Errors To Notice. (If disabled then default is Private Message)1339 # (64)Display WoW Status Messages (Levels/Deaths)1340 # (128)Display Nick Changes From IRC In WOW1341 # (256)Display WoW Announces/Notifies In IRC1342 # (512)Do Not Let Players Use Commands On Higher GM Level Players1343 # (1024)Enable AuctionHouse Announcements1344 #1345 # irc.gmlog1346 # Minimum GM level to not show login/pass info in IRC logs1347 #1348 # irc.logfile.prefix1349 # The prefix of the IRC logfile. Directories can be added here.1350 # Example: "IRC/IRC_" outputs IRC_YYYY-MM-DD.log to the IRC subdirectory in your logs dir1351 #1352 # irc.fun.games (Experimental/Under Development)1353 # Enable IRC games1354 # Default: 0 - Disable1355 # 1 - Enable1356 # irc.gm#1357 # GM tag to append to (GM onjoin / online command) IRC color codes are acceptable1358 #1359 ###################################################################################################################1360 1361 irc.active = 01362 irc.icc = 0011363 irc.host = ""1364 irc.port = "6667"1365 irc.user = "TC"1366 irc.nick = "TrinityCoreBot"1367 irc.pass = ""1368 irc.auth = 01369 irc.auth.nick = "TrinityCoreBot"1370 irc.ldef = 01371 irc.defchan = "lobby"1372 irc.wct = 300001373 irc.maxattempt = 201374 irc.auto.announce = 301375 irc.autojoin_kick = 11376 irc.command_prefix = "-"1377 irc.joinmsg = "Trinity Core running. Command trigger is $Trigger."1378 irc.rstmsg = "Trinity Core is restarting..."1379 irc.kickmsg = "Do not kick me."1380 irc.chan_1 = "mangos"1381 wow.chan_1 = "world"1382 irc.StatusChannel = 11383 irc.AnnounceChannel = 11384 irc.op_gm_login = 01385 irc.op_gm_level = 31386 irc.ajoin = 11387 irc.ajchan = "World"1388 irc.online.result = 301389 chat.wow_irc = "-WoW-$Name [$Level]: $Msg"1390 chat.irc_wow = "-IRC-$Name: $Msg"1391 chat.join_wow = "[$GM] $Name has joined IRC."1392 chat.leave_wow = "[$GM] $Name has left IRC."1393 Botmask = 10231394 irc.gmlog = 11395 irc.logfile.prefix = "irc_"1396 irc.fun.games = 01397 irc.gm1 = "[Moderator]"1398 irc.gm2 = "[Game Master]"1399 irc.gm3 = "[BugTracker]"1400 irc.gm4 = "[DevTeam Admin]"1401 irc.gm5 = "[SysOP]"