mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
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:
parent
f5bb0529c1
commit
a93afab540
16 changed files with 621 additions and 49 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue