Add Disables table based on the work of @Olion on Zero

Added `disables` table
Mostly backported from TC.
Changed table format (mapID in lower 16 bit, areaID in higer 16 bit of data field).
Added CREATURE_SPAWN and GAMEOBJECT_SPAWN disable types.
This commit is contained in:
Antz 2019-01-10 00:11:41 +00:00 committed by Antz
parent f5bb0529c1
commit a93afab540
16 changed files with 621 additions and 49 deletions

View file

@ -63,6 +63,7 @@
#include "DBCEnums.h"
#include "AuctionHouseBot/AuctionHouseBot.h"
#include "SQLStorages.h"
#include "DisableMgr.h"
static uint32 ahbotQualityIds[MAX_AUCTION_QUALITY] =
{
@ -1144,6 +1145,15 @@ bool ChatHandler::HandleReloadCreaturesStatsCommand(char* /*args*/)
return true;
}
bool ChatHandler::HandleReloadDisablesCommand(char * /*args*/)
{
sLog.outString("Re-loading Disables...");
DisableMgr::LoadDisables();
DisableMgr::CheckQuestDisables();
SendGlobalSysMessage("DB table `disables` reloaded.");
return true;
}
bool ChatHandler::HandleLoadScriptsCommand(char* args)
{
if (!*args)