Hi, is possible dissable in DB this type of arenas (3vs3/5vs5) ? I look on battleground_template
table MaxPlayersPerTeam, but it is not work for me (default is 2 in TDB and 3v3 ppl can join). Thanks for answer
http://www.trinitycore.org/w/Disables_tc2
Try to use DISABLE_TYPE_BATTLEGROUND with an arena entry from battleground_template table.
but it disable 2v2,3v3,5v5 … I need only 3v3 and 5v5 … 2v2 need still work
Or you mean try change “flags” and search Number that I need …
Nevermind, it is not possible to only disable one type of arenas DB only.
— Canned message start —
This thread is not related to the official Trinity codebase and was moved to the Custom Code section.
Please read the stickies next time.
— Canned message end —
ok thanks for answer
try this, you must make changes manually
[CODE]# HG changeset patch
User Zabustak
Date 1294116907 -7200
Node ID 9b66dc515aec6fa98fb10423cadcbd8e29f01e7c
Parent ed1e5b518ea5b52720dde9982652d1cd629df3b7
Disable arenas by type 2v2,3v3,5v5
diff -r ed1e5b518ea5 -r 9b66dc515aec src/server/game/Battlegrounds/BattlegroundMgr.cpp
— a/src/server/game/Battlegrounds/BattlegroundMgr.cpp Mon Jan 03 15:57:59 2011 +0200
+++ b/src/server/game/Battlegrounds/BattlegroundMgr.cpp Tue Jan 04 06:55:07 2011 +0200
@@ -984,11 +984,23 @@
switch(arenaType)
{
case ARENA_TYPE_2v2:
-
if (sWorld->getBoolConfig(CONFIG_ARENA_2v2_TEAM_ENABLE) == 1) return BATTLEGROUND_QUEUE_2v2;
-
else
-
return BATTLEGROUND_QUEUE_NONE;
case ARENA_TYPE_3v3:
-
if (sWorld->getBoolConfig(CONFIG_ARENA_3v3_TEAM_ENABLE) == 1) return BATTLEGROUND_QUEUE_3v3;
-
else
-
return BATTLEGROUND_QUEUE_NONE;
case ARENA_TYPE_5v5:
-
if (sWorld->getBoolConfig(CONFIG_ARENA_5v5_TEAM_ENABLE) == 1) return BATTLEGROUND_QUEUE_5v5;
-
else
-
return BATTLEGROUND_QUEUE_NONE;
default:
return BATTLEGROUND_QUEUE_NONE;
}
diff -r ed1e5b518ea5 -r 9b66dc515aec src/server/game/World/World.cpp
— a/src/server/game/World/World.cpp Mon Jan 03 15:57:59 2011 +0200
+++ b/src/server/game/World/World.cpp Tue Jan 04 06:55:07 2011 +0200
@@ -1028,6 +1028,10 @@
m_bool_configs[CONFIG_ARENA_SEASON_IN_PROGRESS] = sConfig->GetBoolDefault("Arena.ArenaSeason.InProgress", true);
m_bool_configs[CONFIG_ARENA_LOG_EXTENDED_INFO] = sConfig->GetBoolDefault("ArenaLog.ExtendedInfo", false);
-
m_bool_configs[CONFIG_ARENA_2v2_TEAM_ENABLE] = sConfig->GetBoolDefault (“Arena.2v2.Team”, 1);
-
m_bool_configs[CONFIG_ARENA_3v3_TEAM_ENABLE] = sConfig->GetBoolDefault (“Arena.3v3.Team”, 1);
-
m_bool_configs[CONFIG_ARENA_5v5_TEAM_ENABLE] = sConfig->GetBoolDefault (“Arena.5v5.Team”, 1);
m_bool_configs[CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN] = sConfig->GetBoolDefault("OffhandCheckAtSpellUnlearn", true);
if (int32 clientCacheId = sConfig->GetIntDefault("ClientCacheVersion", 0))
diff -r ed1e5b518ea5 -r 9b66dc515aec src/server/game/World/World.h
— a/src/server/game/World/World.h Mon Jan 03 15:57:59 2011 +0200
+++ b/src/server/game/World/World.h Tue Jan 04 06:55:07 2011 +0200
@@ -163,6 +163,9 @@
CONFIG_ALLOW_TICKETS,
CONFIG_DBC_ENFORCE_ITEM_ATTRIBUTES,
CONFIG_PRESERVE_CUSTOM_CHANNELS,
-
CONFIG_ARENA_2v2_TEAM_ENABLE,
-
CONFIG_ARENA_3v3_TEAM_ENABLE,
-
CONFIG_ARENA_5v5_TEAM_ENABLE,
BOOL_CONFIG_VALUE_COUNT
};
diff -r ed1e5b518ea5 -r 9b66dc515aec src/server/worldserver/worldserver.conf.dist
— a/src/server/worldserver/worldserver.conf.dist Mon Jan 03 15:57:59 2011 +0200
+++ b/src/server/worldserver/worldserver.conf.dist Tue Jan 04 06:55:07 2011 +0200
@@ -2738,3 +2738,32 @@
###################################################################################################
+###################################################################################################
+# CUSTOM OPTIONS
+#
+# Arena.2v2.Team
+# Disable Arena 2v2
+# Default: 1 - Enable
+# 0 - Disable
+Arena.2v2.Team = 1
+#
+# Arena.3v3.Team
+# Disable Arena 3v3
+# Default: 1 - Enable
+# 0 - Disable
+Arena.3v3.Team = 1
+#
+# Arena.5v5.Team
+# Disable Arena 5v5
+# Default: 1 - Enable
+# 0 - Disable
+Arena.5v5.Team = 1
+#
+###################################################################################################
\ No newline at end of file
[/CODE]
I sugest you to change the patch to use disables system, on that way it can be added to core.
[CODE]From 2b66d6fa8dce2148bff246db0de28a7b455cd49a Mon Sep 17 00:00:00 2001
From: zabustak [email protected]
Date: Sat, 26 Feb 2011 09:02:21 +0200
Subject: Disable arenas by type 2v2,3v3 and 5v5.
src/server/game/Battlegrounds/BattlegroundMgr.cpp | 9 +++++++
src/server/game/World/World.cpp | 3 ++
src/server/game/World/World.h | 3 ++
src/server/worldserver/worldserver.conf.dist | 24 +++++++++++++++++++++
4 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/src/server/game/Battlegrounds/BattlegroundMgr.cpp b/src/server/game/Battlegrounds/BattlegroundMgr.cpp
index ce5a60e…e64ac8c 100755
— a/src/server/game/Battlegrounds/BattlegroundMgr.cpp
+++ b/src/server/game/Battlegrounds/BattlegroundMgr.cpp
@@ -992,11 +992,20 @@ BattlegroundQueueTypeId BattlegroundMgr::BGQueueTypeId(BattlegroundTypeId bgType
switch(arenaType)
{
case ARENA_TYPE_2v2:
-
if (sWorld->getBoolConfig(CONFIG_ARENA_2v2_TEAM_ENABLE) == 1) return BATTLEGROUND_QUEUE_2v2;
-
else
-
return BATTLEGROUND_QUEUE_NONE; case ARENA_TYPE_3v3:
-
if (sWorld->getBoolConfig(CONFIG_ARENA_3v3_TEAM_ENABLE) == 1) return BATTLEGROUND_QUEUE_3v3;
-
else
-
return BATTLEGROUND_QUEUE_NONE; case ARENA_TYPE_5v5:
-
if (sWorld->getBoolConfig(CONFIG_ARENA_5v5_TEAM_ENABLE) == 1) return BATTLEGROUND_QUEUE_5v5;
-
else
-
return BATTLEGROUND_QUEUE_NONE; default: return BATTLEGROUND_QUEUE_NONE; }
diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp
index 586a931…c82097c 100755
— a/src/server/game/World/World.cpp
+++ b/src/server/game/World/World.cpp
@@ -1027,6 +1027,9 @@ void World::LoadConfigSettings(bool reload)
m_int_configs[CONFIG_ARENA_START_MATCHMAKER_RATING] = sConfig->GetIntDefault ("Arena.ArenaStartMatchmakerRating", 1500);
m_bool_configs[CONFIG_ARENA_SEASON_IN_PROGRESS] = sConfig->GetBoolDefault("Arena.ArenaSeason.InProgress", true);
m_bool_configs[CONFIG_ARENA_LOG_EXTENDED_INFO] = sConfig->GetBoolDefault("ArenaLog.ExtendedInfo", false);
-
m_bool_configs[CONFIG_ARENA_2v2_TEAM_ENABLE] = sConfig->GetBoolDefault(“Arena.2v2.Team”, 1);
-
m_bool_configs[CONFIG_ARENA_3v3_TEAM_ENABLE] = sConfig->GetBoolDefault(“Arena.3v3.Team”, 1);
-
m_bool_configs[CONFIG_ARENA_5v5_TEAM_ENABLE] = sConfig->GetBoolDefault(“Arena.5v5.Team”, 1);
m_bool_configs[CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN] = sConfig->GetBoolDefault(“OffhandCheckAtSpellUnlearn”, true);
diff --git a/src/server/game/World/World.h b/src/server/game/World/World.h
index 7e052ed…926ee4f 100755
— a/src/server/game/World/World.h
+++ b/src/server/game/World/World.h
@@ -163,6 +163,9 @@ enum WorldBoolConfigs
CONFIG_ALLOW_TICKETS,
CONFIG_DBC_ENFORCE_ITEM_ATTRIBUTES,
CONFIG_PRESERVE_CUSTOM_CHANNELS,
-
CONFIG_ARENA_2v2_TEAM_ENABLE,
-
CONFIG_ARENA_3v3_TEAM_ENABLE,
-
CONFIG_ARENA_5v5_TEAM_ENABLE,
BOOL_CONFIG_VALUE_COUNT
};
diff --git a/src/server/worldserver/worldserver.conf.dist b/src/server/worldserver/worldserver.conf.dist
index 3109c92…c836688 100644
— a/src/server/worldserver/worldserver.conf.dist
+++ b/src/server/worldserver/worldserver.conf.dist
@@ -2477,6 +2477,30 @@ Arena.ArenaStartPersonalRating = 0
Arena.ArenaStartMatchmakerRating = 1500
+# Arena.2v2.Team
+# Disable Arena 2v2
+# Default: 1 - Enable
+# 0 - Disable
+Arena.2v2.Team = 1
+#
+# Arena.3v3.Team
+# Disable Arena 3v3
+# Default: 1 - Enable
+# 0 - Disable
+Arena.3v3.Team = 1
+#
+# Arena.5v5.Team
+# Disable Arena 5v5
+# Default: 1 - Enable
+# 0 - Disable
+Arena.5v5.Team = 1
+#
###################################################################################################
###################################################################################################
–
1.7.3.1.msysgit.0
[/CODE]
Great Gj /emoticons/default_wink.png
DELETED