aboutsummaryrefslogtreecommitdiff
path: root/src/trinitycore
diff options
context:
space:
mode:
authorKingPin <none@none>2008-10-20 12:23:56 -0500
committerKingPin <none@none>2008-10-20 12:23:56 -0500
commit35f378aef9e2da3b24b2adb182f165d52da6a09b (patch)
tree317bd32acf1b2447ed11cd6b9962e000dfaeaffc /src/trinitycore
parenta1d00528a32f124f99ea26273b7172c2a5e2868e (diff)
[svn] * fixed help for subcommands - source mangos
* Renamed accounts column tbc to expansion and it only took a little over 4 hours o.O --HG-- branch : trunk
Diffstat (limited to 'src/trinitycore')
-rw-r--r--src/trinitycore/CliRunnable.cpp24
-rw-r--r--src/trinitycore/trinitycore.conf.dist10
2 files changed, 18 insertions, 16 deletions
diff --git a/src/trinitycore/CliRunnable.cpp b/src/trinitycore/CliRunnable.cpp
index b94176178f8..ee4e5c3be54 100644
--- a/src/trinitycore/CliRunnable.cpp
+++ b/src/trinitycore/CliRunnable.cpp
@@ -67,7 +67,7 @@ void CliMotd(char*,pPrintf);
void CliCorpses(char*,pPrintf);
void CliSetLogLevel(char*,pPrintf);
void CliUpTime(char*,pPrintf);
-void CliSetTBC(char*,pPrintf);
+void CliSetAddon(char*,pPrintf);
void CliWritePlayerDump(char*,pPrintf);
void CliLoadPlayerDump(char*,pPrintf);
void CliSave(char*,pPrintf);
@@ -91,7 +91,7 @@ const CliCommand Commands[]=
{"unban", & CliRemoveBan,"Remove ban from account|ip"},
{"setgm", & CliSetGM,"Edit user privileges"},
{"setpass", & CliSetPassword,"Set password for account"},
- {"setbc", & CliSetTBC,"Set user expansion allowed"},
+ {"setaddon", & CliSetAddon,"Set user expansion addon level allowed"},
{"listgm", & CliListGM,"Display user privileges"},
{"loadscripts", & CliLoadScripts,"Load script library"},
{"setloglevel", & CliSetLogLevel,"Set Log Level"},
@@ -472,7 +472,7 @@ void CliInfo(char*,pPrintf zprintf)
///- Display the list of account/characters online
zprintf("=====================================================================\r\n");
- zprintf("| Account | Character | IP | GM | TBC |\r\n");
+ zprintf("| Account | Character | IP | GM | Exp |\r\n");
zprintf("=====================================================================\r\n");
///- Circle through accounts
@@ -485,7 +485,7 @@ void CliInfo(char*,pPrintf zprintf)
///- Get the username, last IP and GM level of each account
// No SQL injection. account is uint32.
// 0 1 2 3
- QueryResult *resultLogin = loginDatabase.PQuery("SELECT username, last_ip, gmlevel, tbc FROM account WHERE id = '%u'",account);
+ QueryResult *resultLogin = loginDatabase.PQuery("SELECT username, last_ip, gmlevel, expansion FROM account WHERE id = '%u'",account);
if(resultLogin)
{
@@ -1037,23 +1037,23 @@ void CliUpTime(char*,pPrintf zprintf)
}
/// Set/Unset the TBC flag for an account
-void CliSetTBC(char *command,pPrintf zprintf)
+void CliSetAddon(char *command,pPrintf zprintf)
{
///- Get the command line arguments
char *szAcc = strtok(command," ");
- char *szTBC = strtok(NULL," ");
+ char *szExp = strtok(NULL," ");
- if(!szAcc||!szTBC)
+ if(!szAcc||!szExp)
{
- zprintf("Syntax is: setbc $account $number (0 - normal, 1 - tbc)>\r\n");
+ zprintf("Syntax is: setbc $account $number (0 - normal, 1 - tbc, 2 - wotlk)>\r\n");
return;
}
- int lev=atoi(szTBC); //get int anyway (0 if error)
+ int lev=atoi(szExp); //get int anyway (0 if error)
- if((lev > 1)|| (lev < 0))
+ if(lev < 0)
{
- zprintf("Syntax is: setbc $account $number (0 - normal, 1 - tbc)>\r\n");
+ zprintf("Syntax is: setbc $account $number (0 - normal, 1 - tbc, 2 - wotlk)>\r\n");
return;
}
@@ -1074,7 +1074,7 @@ void CliSetTBC(char *command,pPrintf zprintf)
if (result)
{
// No SQL injection (account name is escaped)
- loginDatabase.PExecute("UPDATE account SET tbc = '%d' WHERE username = '%s'",lev,safe_account_name.c_str());
+ loginDatabase.PExecute("UPDATE account SET expansion = '%d' WHERE username = '%s'",lev,safe_account_name.c_str());
zprintf("We set %s to expansion allowed %d\r\n",safe_account_name.c_str(),lev);
delete result;
diff --git a/src/trinitycore/trinitycore.conf.dist b/src/trinitycore/trinitycore.conf.dist
index 7e4351e8779..9bd69ec6c5e 100644
--- a/src/trinitycore/trinitycore.conf.dist
+++ b/src/trinitycore/trinitycore.conf.dist
@@ -354,10 +354,12 @@ LogColors = ""
# 29 CN9 - basic-Latin at create, any at login
#
# Expansion
-# Allow server use expansion content
-# Default: 1 - check expansion maps existence, and if client support expansion and account have
-# expansion setting then allow visit expansion maps, allow create new races character)
-# 0 - not check expansion maps existence, not allow wisit its, not allow create new race
+# Allow server use content from expansion
+# 2 - check expansion 2 maps existence, and if client support expansion 2 and account have
+# expansion 2 setting then allow visit expansion 2 maps, allow create new class character)
+# Default: 1 - check expansion 1 maps existence, and if client support expansion 1 and account have
+# expansion 1 setting then allow visit expansion 1 maps, allow create new races character)
+# 0 - not check expansion maps existence, not allow wisit its, not allow create new race or new class
# characters, ignore account expansion setting)
#
# DBC.Locale