Changeset 41
- Timestamp:
- 11/19/08 13:27:02 (17 years ago)
- Location:
- trunk/src
- Files:
-
- 14 removed
- 7 modified
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bindings/scripts/Makefile.am
r23 r41 33 33 -I$(top_srcdir)/src/game \ 34 34 -I$(srcdir)/include \ 35 $(TRINI_INCLUDES) \ 36 -D_TRINITY_SCRIPT_CONFIG='"$(sysconfdir)/trinityscript.conf"' 35 $(TRINI_INCLUDES) 37 36 38 37 libtrinityscript_la_SOURCES = \ … … 399 398 400 399 ## Additional files to install 401 sysconf_DATA = \ 402 trinityscript.conf.dist 403 404 EXTRA_DIST = \ 405 trinityscript.conf.dist 400 ## sysconf_DATA = 401 402 ## EXTRA_DIST = 406 403 407 404 ## Prevend overwrite of the config file, if its already installed -
trunk/src/bindings/scripts/README
r37 r41 1 = Trinity Core -- Implementing scripts = 2 1 3 To compile this properly, you need to get the scripts from: 2 4 3 5 http://svn.assembla.com/svn/trinityscripts 4 6 5 and get them in a "scripts" folder inside this folder 6 7 Simply put them in a folder called "scripts" in this folder. -
trunk/src/bindings/scripts/ScriptMgr.cpp
r37 r41 13 13 #define _FULLVERSION "TrinityScript" 14 14 15 #ifndef _TSCRIPTCONFVERSION16 # define _TSCRIPTCONFVERSION 200810020117 #endif //_TSCRIPTCONFVERSION18 19 15 #ifndef _TRINITY_SCRIPT_CONFIG 20 # define _TRINITY_SCRIPT_CONFIG "trinity script.conf"21 #endif //_TRINITY_SCRIPT_CONFIG16 # define _TRINITY_SCRIPT_CONFIG "trinitycore.conf" 17 #endif _TRINITY_SCRIPT_CONFIG 22 18 23 19 //*** Global data *** … … 597 593 char const* dbstring = NULL; 598 594 599 if( !TScriptConfig.GetString(" TScriptDatabaseInfo", &dbstring) )600 { 601 error_log("TSCR: Missing Trinity Scriptdatabase info from configuration file. Load database aborted.");595 if( !TScriptConfig.GetString("WorldDatabaseInfo", &dbstring) ) 596 { 597 error_log("TSCR: Missing world database info from configuration file. Load database aborted."); 602 598 return; 603 599 } … … 1214 1210 } 1215 1211 else outstring_log("TSCR: Using configuration file %s",_TRINITY_SCRIPT_CONFIG); 1216 1217 //Check config file version1218 if (TScriptConfig.GetIntDefault("ConfVersion", 0) != _TSCRIPTCONFVERSION)1219 error_log("TSCR: Configuration file version doesn't match expected version. Some config variables may be wrong or missing.");1220 1212 1221 1213 //Locale -
trunk/src/game/IRCConf.cpp
r39 r41 26 26 int ConfCnt = 0; 27 27 sIRC._chan_count = 0; 28 if(MCConfig.GetIntDefault("irc.active", 1) == 1)28 if(MCConfig.GetIntDefault("irc.active", 0) == 1) 29 29 sIRC.Active = true; 30 30 else 31 31 sIRC.Active = false; 32 sIRC._Host = MCConfig.GetStringDefault("irc.host", "irc. freenode.net");32 sIRC._Host = MCConfig.GetStringDefault("irc.host", "irc.rizon.net"); 33 33 if(sIRC._Host.size() > 0) 34 34 ConfCnt++; 35 35 sIRC._Mver = MCConfig.GetStringDefault("irc.mver", "Version 1.6.5"); 36 36 sIRC._Port = MCConfig.GetIntDefault("irc.port", 6667); 37 sIRC._User = MCConfig.GetStringDefault("irc.user", " MangChat");38 sIRC._Pass = MCConfig.GetStringDefault("irc.pass", " MyDumbPass");39 sIRC._Nick = MCConfig.GetStringDefault("irc.nick", " MangChat");37 sIRC._User = MCConfig.GetStringDefault("irc.user", "TC"); 38 sIRC._Pass = MCConfig.GetStringDefault("irc.pass", ""); 39 sIRC._Nick = MCConfig.GetStringDefault("irc.nick", "TrinityCoreBot"); 40 40 sIRC._Auth = MCConfig.GetIntDefault("irc.auth", 0); 41 sIRC._Auth_Nick = MCConfig.GetStringDefault("irc.auth.nick", " AuthNick");41 sIRC._Auth_Nick = MCConfig.GetStringDefault("irc.auth.nick", "TrinityCoreBot"); 42 42 sIRC._ICC = MCConfig.GetStringDefault("irc.icc", "001"); 43 43 sIRC._defchan = MCConfig.GetStringDefault("irc.defchan", "lobby"); … … 45 45 sIRC._wct = MCConfig.GetIntDefault("irc.wct", 30000); 46 46 sIRC.ajoin = MCConfig.GetIntDefault("irc.ajoin", 1); 47 sIRC.ajchan = MCConfig.GetStringDefault("irc.ajchan", " world");47 sIRC.ajchan = MCConfig.GetStringDefault("irc.ajchan", "World"); 48 48 sIRC.onlrslt = MCConfig.GetIntDefault("irc.online.result", 10); 49 49 sIRC.BOTMASK = MCConfig.GetIntDefault("Botmask", 0); 50 sIRC.logfile = MCConfig.GetStringDefault("irc.logfile.prefix", " IRC_");50 sIRC.logfile = MCConfig.GetStringDefault("irc.logfile.prefix", "irc_"); 51 51 for(int i = 1; i < MAX_CONF_CHANNELS;i++) 52 52 { … … 63 63 } 64 64 } 65 sIRC.JoinMsg = MCConfig.GetStringDefault("irc.joinmsg", " Whhaaazzzzaaaa, MangChat $Ver Baby!!");66 sIRC.RstMsg = MCConfig.GetStringDefault("irc.rstmsg", " MangChat Is Restarting, I Will Be Right Back!");67 sIRC.kikmsg = MCConfig.GetStringDefault("irc.kickmsg", "Do Not Kick Me Again, Severe Actions Will Be Taken!");65 sIRC.JoinMsg = MCConfig.GetStringDefault("irc.joinmsg", "Trinity Core running. Command trigger is $Trigger."); 66 sIRC.RstMsg = MCConfig.GetStringDefault("irc.rstmsg", "Trinity Core is restarting..."); 67 sIRC.kikmsg = MCConfig.GetStringDefault("irc.kickmsg", "Do not kick me."); 68 68 // IRC LINES 69 69 sIRC.ILINES[WOW_IRC] = MCConfig.GetStringDefault("chat.wow_irc", "\003<WoW>[\002$Name($Level)\002\003] $Msg"); … … 77 77 sIRC._MCA = MCConfig.GetIntDefault("irc.maxattempt", 10); 78 78 sIRC._autojoinkick = MCConfig.GetIntDefault("irc.autojoin_kick", 1); 79 sIRC._cmd_prefx = MCConfig.GetStringDefault("irc.command_prefix", " .");79 sIRC._cmd_prefx = MCConfig.GetStringDefault("irc.command_prefix", "-"); 80 80 81 81 sIRC._op_gm = MCConfig.GetIntDefault("irc.op_gm_login", 0); -
trunk/src/game/World.cpp
r39 r41 607 607 uint32 val = sConfig.GetIntDefault("MaxPlayerLevel", 60); 608 608 if(val!=m_configs[CONFIG_MAX_PLAYER_LEVEL]) 609 sLog.outError("MaxPlayerLevel option can't be changed at mangosd.confreload, using current value (%u).",m_configs[CONFIG_MAX_PLAYER_LEVEL]);609 sLog.outError("MaxPlayerLevel option can't be changed at config reload, using current value (%u).",m_configs[CONFIG_MAX_PLAYER_LEVEL]); 610 610 } 611 611 else … … 2507 2507 } 2508 2508 // print the console message here so it looks right 2509 p_zprintf("T rinity Core> ");2509 p_zprintf("TC> "); 2510 2510 } 2511 2511 -
trunk/src/trinitycore/CliRunnable.cpp
r39 r41 897 897 } 898 898 if (!bSuccess) 899 zprintf(" mangos>");899 zprintf("TC>"); 900 900 } 901 901 … … 1239 1239 // print this here the first time 1240 1240 // later it will be printed after command queue updates 1241 printf(" mangos>");1241 printf("TC>"); 1242 1242 1243 1243 ///- As long as the World is running (no World::m_stopEvent), get the command line and handle it -
trunk/src/trinitycore/RASocket.cpp
r2 r41 205 205 Sendf("+Logged in.\r\n"); 206 206 sLog.outRALog("User %s has logged in.\n",szLogin.c_str()); 207 Sendf(" mangos>");207 Sendf("TC>"); 208 208 } 209 209 else … … 224 224 } 225 225 else 226 Sendf(" mangos>");226 Sendf("TC>"); 227 227 break; 228 228 ///</ul> -
trunk/src/trinitycore/trinitycore.conf.dist
r39 r41 52 52 WorldServerPort = 8085 53 53 BindIP = "0.0.0.0" 54 55 ################################################################################################################### 56 # SCRIPTING SETTINGS 57 # 58 # TScriptDatabaseInfo 59 # Database connection settings for the wor 60 # .;somenumber;username;password;database - use named pipes at Windows 61 # Named pipes: mySQL required adding "enable-named-pipe" to [mysqld] section my.ini 62 # .;/path/to/unix_socket;username;password;database - use Unix sockets at Unix/Linux 63 # Unix sockets: experimental, not tested 64 # 65 # Locale 66 # Setting for current (DBC) locale to use 67 # 68 # EventAI Error reporting 69 # 0 - Only startup (Default) 70 # 1 - Startup errors and Runtime event errors 71 # 2 - Startup errors, Runtime event errors, and Creation errors 72 ################################################################################################################### 73 74 Locale = 0 75 EAIErrorLevel = 2 54 76 55 77 ################################################################################################################### … … 1352 1374 irc.auto.announce = 30 1353 1375 irc.autojoin_kick = 1 1354 irc.command_prefix = " ."1376 irc.command_prefix = "-" 1355 1377 irc.joinmsg = "Trinity Core running. Command trigger is $Trigger." 1356 1378 irc.rstmsg = "Trinity Core is restarting..." … … 1363 1385 irc.op_gm_level = 3 1364 1386 irc.ajoin = 1 1365 irc.ajchan = " world"1387 irc.ajchan = "World" 1366 1388 irc.online.result = 30 1367 chat.wow_irc = " <WoW>$Name [$Level]: $Msg"1368 chat.irc_wow = " <IRC>$Name: $Msg"1389 chat.wow_irc = "-WoW-$Name [$Level]: $Msg" 1390 chat.irc_wow = "-IRC-$Name: $Msg" 1369 1391 chat.join_wow = "[$GM] $Name has joined IRC." 1370 1392 chat.leave_wow = "[$GM] $Name has left IRC."