mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 00:23:48 +00:00
Updated code for New config.
*enable/disable Minigob Manabonk *Put the config option in the wrong part, changed from int to bool.
This commit is contained in:
@@ -160,6 +160,7 @@ enum WorldBoolConfigs
|
|||||||
CONFIG_WARDEN_ENABLED,
|
CONFIG_WARDEN_ENABLED,
|
||||||
CONFIG_ENABLE_CONTINENT_TRANSPORT,
|
CONFIG_ENABLE_CONTINENT_TRANSPORT,
|
||||||
CONFIG_ENABLE_CONTINENT_TRANSPORT_PRELOADING,
|
CONFIG_ENABLE_CONTINENT_TRANSPORT_PRELOADING,
|
||||||
|
CONFIG_MINIGOB_MANABONK,
|
||||||
BOOL_CONFIG_VALUE_COUNT
|
BOOL_CONFIG_VALUE_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -326,7 +327,6 @@ enum WorldIntConfigs
|
|||||||
CONFIG_WARDEN_NUM_MEM_CHECKS,
|
CONFIG_WARDEN_NUM_MEM_CHECKS,
|
||||||
CONFIG_WARDEN_NUM_OTHER_CHECKS,
|
CONFIG_WARDEN_NUM_OTHER_CHECKS,
|
||||||
CONFIG_BIRTHDAY_TIME,
|
CONFIG_BIRTHDAY_TIME,
|
||||||
CONFIG_MINIGOB_MANABONK,
|
|
||||||
INT_CONFIG_VALUE_COUNT
|
INT_CONFIG_VALUE_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -560,7 +560,7 @@ class npc_minigob_manabonk : public CreatureScript
|
|||||||
void UpdateAI(uint32 diff)
|
void UpdateAI(uint32 diff)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (CONFIG_MINIGOB_MANABONK == false)
|
if (!sWorld->getBoolConfig(CONFIG_MINIGOB_MANABONK))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
events.Update(diff);
|
events.Update(diff);
|
||||||
|
|||||||
@@ -275,7 +275,7 @@ class npc_wg_queue : public CreatureScript
|
|||||||
|
|
||||||
bool OnGossipHello(Player* player, Creature* creature)
|
bool OnGossipHello(Player* player, Creature* creature)
|
||||||
{
|
{
|
||||||
if (CONFIG_WINTERGRASP_ENABLE == false)
|
if (!sWorld->getBoolConfig(CONFIG_MINIGOB_MANABONK))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (creature->IsQuestGiver())
|
if (creature->IsQuestGiver())
|
||||||
|
|||||||
Reference in New Issue
Block a user