mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
DB/Quest: Quest 11223 moved from core to DB (#1334)
This commit is contained in:
@@ -27,43 +27,6 @@ EndContentData */
|
||||
#include "ScriptedEscortAI.h"
|
||||
#include "Player.h"
|
||||
|
||||
/*######
|
||||
## npc_archmage_malin
|
||||
######*/
|
||||
|
||||
#define GOSSIP_ITEM_MALIN "Can you send me to Theramore? I have an urgent message for Lady Jaina from Highlord Bolvar."
|
||||
|
||||
class npc_archmage_malin : public CreatureScript
|
||||
{
|
||||
public:
|
||||
npc_archmage_malin() : CreatureScript("npc_archmage_malin") { }
|
||||
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action)
|
||||
{
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
if (action == GOSSIP_ACTION_INFO_DEF)
|
||||
{
|
||||
player->CLOSE_GOSSIP_MENU();
|
||||
creature->CastSpell(player, 42711, true);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipHello(Player* player, Creature* creature)
|
||||
{
|
||||
if (creature->IsQuestGiver())
|
||||
player->PrepareQuestMenu(creature->GetGUID());
|
||||
|
||||
if (player->GetQuestStatus(11223) == QUEST_STATUS_COMPLETE)
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_MALIN, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF);
|
||||
|
||||
player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
/*######
|
||||
## npc_bartleby
|
||||
######*/
|
||||
@@ -622,7 +585,6 @@ public:
|
||||
|
||||
void AddSC_stormwind_city()
|
||||
{
|
||||
new npc_archmage_malin();
|
||||
new npc_bartleby();
|
||||
new npc_lady_katrana_prestor();
|
||||
new npc_tyrion();
|
||||
|
||||
Reference in New Issue
Block a user