disable lfg and battleground queue
Some checks are pending
nopch-build / ubuntu-22.04-clang-15-nopch (push) Waiting to run
nopch-build / ubuntu-24.04-clang-18-nopch (push) Waiting to run
nopch-build / ubuntu-24.04-gcc-14-nopch (push) Waiting to run
pch-build / ubuntu-22.04-clang-15-pch (push) Waiting to run
pch-build / ubuntu-24.04-clang-18-pch (push) Waiting to run
nopch-module-build / ubuntu-24.04-clang-18-nopch-modules (push) Waiting to run
Dashboard CI / Test Bash Scripts (push) Waiting to run
Dashboard CI / Test Bash Scripts-1 (push) Waiting to run
Dashboard CI / Build and Integration Test (push) Waiting to run
Dashboard CI / Build and Integration Test-1 (push) Waiting to run
docker-build / build-containers (push) Waiting to run
import-pending / import-pending (push) Waiting to run
macos-build / macos-14 (push) Waiting to run
tools / ubuntu-24.04-clang-18 (push) Waiting to run
windows-build / windows-latest (push) Waiting to run

This commit is contained in:
ElderShell 2026-05-15 21:48:19 -06:00
parent 6454c737da
commit 4e1eaea0b4
6 changed files with 52 additions and 0 deletions

14
.github/README.md vendored
View file

@ -91,3 +91,17 @@ It's important to note that AzerothCore is not an official Blizzard Entertainmen
[JetBrains](https://www.jetbrains.com/?from=AzerothCore) is providing free [open-source licenses](https://www.jetbrains.com/community/opensource/) to the AzerothCore developers.
[![JetBrains logo.](https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg)](https://jb.gg/OpenSourceSupport)
## Quick compile guide for Debian 13
Note: Only mariadb has been tested, but mysql should be compatible.
```sh
apt install git cmake make gcc g++ clang libssl-dev libbz2-dev libreadline-dev libncurses-dev libboost-all-dev lsb-release gnupg wget screen mariadb-server libmariadb-dev libmariadb-dev-compat
git clone https://git.everwrath.xyz/ElderShell/EverWrath.git
mkdir build
cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=../env/dist/ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=1 -DTOOLS_BUILD=all -DSCRIPTS=static -DMODULES=static
make -j$(nproc)
make install
```

View file

@ -107,6 +107,8 @@ option(WITH_STRICT_DATABASE_TYPE_CHECKS "Enable strict checking of database fiel
option(WITHOUT_METRICS "Disable metrics reporting (i.e. InfluxDB and Grafana)" 0)
option(WITH_DETAILED_METRICS "Enable detailed metrics reporting (i.e. time each session takes to update)" 0)
option(TOOL_CONFIG_MERGER "Install the Python config merger tool alongside config files" 0)
option(DISABLE_LFG "Disable dungeon finder system" 1)
option(DISABLE_BATTLEGROUND "Disable battleground queue" 1)
CheckApplicationsBuildList()
CheckToolsBuildList()

View file

@ -148,6 +148,18 @@ else()
message("* Show source tree : No (For UNIX default)")
endif()
if(DISABLE_LFG)
message("* Disable dungeon finder : Yes (default)")
else()
message("* Disable dungeon finder : No")
endif()
if(DISABLE_BATTLEGROUND)
message("* Disable battleground queue : Yes (default)")
else()
message("* Disable battleground queue : No")
endif()
if(WITH_STRICT_DATABASE_TYPE_CHECKS)
message("")
message(" *** WITH_STRICT_DATABASE_TYPE_CHECKS - WARNING!")

View file

@ -67,3 +67,11 @@ if (USE_COREPCH)
endif ()
CU_RUN_HOOK(AFTER_GAME_LIBRARY)
if(DISABLE_LFG)
add_definitions(-DDISABLE_LFG)
endif()
if(DISABLE_BATTLEGROUND)
add_definitions(-DDISABLE_BATTLEGROUND)
endif()

View file

@ -601,6 +601,14 @@ namespace lfg
ObjectGuid guid = player->GetGUID();
ObjectGuid gguid = grp ? grp->GetGUID() : guid;
LfgJoinResultData joinData;
#ifdef DISABLE_LFG
joinData.result = LFG_JOIN_NOT_MEET_REQS;
player->GetSession()->SendLfgJoinResult(joinData);
return;
#endif
LfgGuidSet players;
uint32 rDungeonId = 0;
bool isContinue = grp && grp->isLFGGroup() && GetState(gguid) != LFG_STATE_FINISHED_DUNGEON;

View file

@ -75,6 +75,14 @@ void WorldSession::HandleBattlemasterJoinOpcode(WorldPacket& recvData)
uint32 bgTypeId_;
uint32 instanceId;
uint8 joinAsGroup;
#ifdef DISABLE_BATTLEGROUND
WorldPacket data;
sBattlegroundMgr->BuildGroupJoinedBattlegroundPacket(&data, ERR_BATTLEGROUND_NONE);
SendPacket(&data);
return;
#endif
bool isPremade = false;
recvData >> guid; // battlemaster guid