mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user