DB/Quest: Quest 11223 moved from core to DB (#1334)

This commit is contained in:
Walter Pagani
2019-01-20 20:38:26 -03:00
committed by Kargatum
parent 049b9cb220
commit b39042d533
2 changed files with 16 additions and 38 deletions

View File

@@ -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();