mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-03 19:13:49 +00:00
New config option added
- Added config to enable/disable Minigob Manabonk. - Dalaran Wintergrap mage no longer yells if the event has been disabled.
This commit is contained in:
@@ -1298,6 +1298,7 @@ void World::LoadConfigSettings(bool reload)
|
||||
m_int_configs[CONFIG_WINTERGRASP_RESTART_AFTER_CRASH] = sConfigMgr->GetIntDefault("Wintergrasp.CrashRestartTimer", 10);
|
||||
|
||||
m_int_configs[CONFIG_BIRTHDAY_TIME] = sConfigMgr->GetIntDefault("BirthdayTime", 1222964635);
|
||||
m_bool_configs[CONFIG_MINIGOB_MANABONK] = sConfigMgr->GetBoolDefault("Minigob.Manabonk.Enable", true);
|
||||
|
||||
// call ScriptMgr if we're reloading the configuration
|
||||
sScriptMgr->OnAfterConfigLoad(reload);
|
||||
|
||||
@@ -324,6 +324,7 @@ enum WorldIntConfigs
|
||||
CONFIG_WARDEN_NUM_MEM_CHECKS,
|
||||
CONFIG_WARDEN_NUM_OTHER_CHECKS,
|
||||
CONFIG_BIRTHDAY_TIME,
|
||||
CONFIG_MINIGOB_MANABONK,
|
||||
INT_CONFIG_VALUE_COUNT
|
||||
};
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ Script Data End */
|
||||
#include "Player.h"
|
||||
#include "WorldSession.h"
|
||||
#include "ScriptedEscortAI.h"
|
||||
#include "World.h"
|
||||
|
||||
// Ours
|
||||
class npc_steam_powered_auctioneer : public CreatureScript
|
||||
@@ -558,6 +559,10 @@ class npc_minigob_manabonk : public CreatureScript
|
||||
|
||||
void UpdateAI(uint32 diff)
|
||||
{
|
||||
|
||||
if (CONFIG_MINIGOB_MANABONK == false)
|
||||
return;
|
||||
|
||||
events.Update(diff);
|
||||
|
||||
while (uint32 eventId = events.ExecuteEvent())
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "CombatAI.h"
|
||||
#include "Player.h"
|
||||
#include "PoolMgr.h"
|
||||
#include "World.h"
|
||||
|
||||
#define GOSSIP_HELLO_DEMO1 "Build catapult."
|
||||
#define GOSSIP_HELLO_DEMO2 "Build demolisher."
|
||||
@@ -274,6 +275,9 @@ class npc_wg_queue : public CreatureScript
|
||||
|
||||
bool OnGossipHello(Player* player, Creature* creature)
|
||||
{
|
||||
if (CONFIG_WINTERGRASP_ENABLE == false)
|
||||
return false;
|
||||
|
||||
if (creature->IsQuestGiver())
|
||||
player->PrepareQuestMenu(creature->GetGUID());
|
||||
|
||||
@@ -336,6 +340,9 @@ class npc_wg_queue : public CreatureScript
|
||||
|
||||
void UpdateAI(uint32 diff)
|
||||
{
|
||||
if (CONFIG_WINTERGRASP_ENABLE == false)
|
||||
return;
|
||||
|
||||
ScriptedAI::UpdateAI(diff);
|
||||
|
||||
events.Update(diff);
|
||||
|
||||
@@ -3122,5 +3122,13 @@ DontCacheRandomMovementPaths = 0
|
||||
|
||||
MoveMaps.Enable = 1
|
||||
|
||||
#
|
||||
# Minigob.Manabonk.Enable
|
||||
# Description: Enable/ Disable Minigob Manabonk
|
||||
# Default: 1
|
||||
|
||||
Minigob.Manabonk.Enable = 1
|
||||
|
||||
|
||||
#
|
||||
###################################################################################################
|
||||
|
||||
Reference in New Issue
Block a user