aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2011-11-24 00:35:11 +0000
committerNay <dnpd.dd@gmail.com>2011-11-24 00:35:11 +0000
commit7e6afa7fe8a30b3878c9d0ba32ff18d5a11fcbae (patch)
tree4a866868a5bffa3723e2187982fa1db99477b29b
parentdfa2fdc2cb1caa0f0e16873f4112f72e03e478c0 (diff)
Core/Enums: Add two new races to enumerations and update maxlevel in config
-rw-r--r--sql/updates/world/2011_11_24_01_world_command.sql2
-rwxr-xr-xsrc/server/game/Chat/Commands/Level2.cpp2
-rwxr-xr-xsrc/server/game/Miscellaneous/SharedDefines.h15
-rw-r--r--src/server/worldserver/worldserver.conf.dist13
4 files changed, 19 insertions, 13 deletions
diff --git a/sql/updates/world/2011_11_24_01_world_command.sql b/sql/updates/world/2011_11_24_01_world_command.sql
new file mode 100644
index 00000000000..849a7538621
--- /dev/null
+++ b/sql/updates/world/2011_11_24_01_world_command.sql
@@ -0,0 +1,2 @@
+UPDATE `command` SET `help`='Syntax: .account set addon [$account] #addon\n\nSet user (possible targeted) expansion addon level allowed. Addon values: 0 - normal, 1 - tbc, 2 - wotlk, 3 - cata.' WHERE `name`='account set addon';
+UPDATE `command` SET `help`='Syntax: .account addon #addon\nSet expansion addon level allowed. Addon values: 0 - normal, 1 - tbc, 2 - wotlk, 3 - cata.' WHERE `name`='account addon';
diff --git a/src/server/game/Chat/Commands/Level2.cpp b/src/server/game/Chat/Commands/Level2.cpp
index 1dd603094f6..295ab1fbf99 100755
--- a/src/server/game/Chat/Commands/Level2.cpp
+++ b/src/server/game/Chat/Commands/Level2.cpp
@@ -385,6 +385,8 @@ bool ChatHandler::HandlePInfoCommand(const char* args)
case RACE_TROLL: race_s = "Troll"; break;
case RACE_BLOODELF: race_s = "Blood Elf"; break;
case RACE_DRAENEI: race_s = "Draenei"; break;
+ case RACE_GOBLIN: race_s = "Goblin"; break;
+ case RACE_WORGEN: race_s = "Worgen"; break;
}
switch (Class)
{
diff --git a/src/server/game/Miscellaneous/SharedDefines.h b/src/server/game/Miscellaneous/SharedDefines.h
index a99d0f37c02..8cb9056ed07 100755
--- a/src/server/game/Miscellaneous/SharedDefines.h
+++ b/src/server/game/Miscellaneous/SharedDefines.h
@@ -62,9 +62,9 @@ enum Races
RACE_TAUREN = 6,
RACE_GNOME = 7,
RACE_TROLL = 8,
- //RACE_GOBLIN = 9,
+ RACE_GOBLIN = 9,
RACE_BLOODELF = 10,
- RACE_DRAENEI = 11
+ RACE_DRAENEI = 11,
//RACE_FEL_ORC = 12,
//RACE_NAGA = 13,
//RACE_BROKEN = 14,
@@ -74,7 +74,8 @@ enum Races
//RACE_FOREST_TROLL = 18,
//RACE_TAUNKA = 19,
//RACE_NORTHREND_SKELETON = 20,
- //RACE_ICE_TROLL = 21
+ //RACE_ICE_TROLL = 21,
+ RACE_WORGEN = 22
};
// max+1 for player race
@@ -82,13 +83,13 @@ enum Races
#define RACEMASK_ALL_PLAYABLE \
((1<<(RACE_HUMAN-1)) |(1<<(RACE_ORC-1)) |(1<<(RACE_DWARF-1)) | \
- (1<<(RACE_NIGHTELF-1))|(1<<(RACE_UNDEAD_PLAYER-1))|(1<<(RACE_TAUREN-1)) | \
- (1<<(RACE_GNOME-1)) |(1<<(RACE_TROLL-1)) |(1<<(RACE_BLOODELF-1))| \
- (1<<(RACE_DRAENEI-1)))
+ (1<<(RACE_NIGHTELF-1))|(1<<(RACE_UNDEAD_PLAYER-1))|(1<<(RACE_TAUREN-1)) | \
+ (1<<(RACE_GNOME-1)) |(1<<(RACE_TROLL-1)) |(1<<(RACE_BLOODELF-1))| \
+ (1<<(RACE_DRAENEI-1)) |(1<<(RACE_GOBLIN-1)) |(1<<(RACE_WORGEN-1)))
#define RACEMASK_ALLIANCE \
((1<<(RACE_HUMAN-1)) | (1<<(RACE_DWARF-1)) | (1<<(RACE_NIGHTELF-1)) | \
- (1<<(RACE_GNOME-1)) | (1<<(RACE_DRAENEI-1)))
+ (1<<(RACE_GNOME-1)) | (1<<(RACE_DRAENEI-1)) | (1<<(RACE_WORGEN-1)))
#define RACEMASK_HORDE RACEMASK_ALL_PLAYABLE & ~RACEMASK_ALLIANCE
diff --git a/src/server/worldserver/worldserver.conf.dist b/src/server/worldserver/worldserver.conf.dist
index 742421b5ead..818db5d46b8 100644
--- a/src/server/worldserver/worldserver.conf.dist
+++ b/src/server/worldserver/worldserver.conf.dist
@@ -910,11 +910,12 @@ DeclinedNames = 0
# Expansion
# Description: Allow server to use content from expansions. Checks for expansion-related
# map files, client compatibility and class/race character creation.
-# Default: 2 - (Expansion 2)
+# Default: 3 - (Expansion 3)
+# 2 - (Expansion 2)
# 1 - (Expansion 1)
# 0 - (Disabled, Ignore and disable expansion content (maps, races, classes)
-Expansion = 2
+Expansion = 3
#
# MinPlayerName
@@ -1041,16 +1042,16 @@ SkipCinematics = 0
# Description: Maximum level that can be reached by players.
# Important: Levels beyond 100 are not recommended at all.
# Range: 1-255
-# Default: 80
+# Default: 85
-MaxPlayerLevel = 80
+MaxPlayerLevel = 85
#
# MinDualSpecLevel
# Description: Level requirement for Dual Talent Specialization
-# Default: 40
+# Default: 30
-MinDualSpecLevel = 40
+MinDualSpecLevel = 30
#
# StartPlayerLevel