mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
[3.3.5] Core/Script: move Myranda the Hag's gossip option to DB
Removing hardcoded text from the core script and into the DB: "I am ready for the illusion, Myranda." This quest is 3.3.5 *only*. Removed in patch 4.0.3a. Addendum: enum ILLUSION_GOSSIP = 4773 , instead of "magic number".
This commit is contained in:
@@ -114,13 +114,12 @@ public:
|
||||
|
||||
enum Myranda
|
||||
{
|
||||
ILLUSION_GOSSIP = 4773,
|
||||
QUEST_SUBTERFUGE = 5862,
|
||||
QUEST_IN_DREAMS = 5944,
|
||||
SPELL_SCARLET_ILLUSION = 17961
|
||||
};
|
||||
|
||||
#define GOSSIP_ITEM_ILLUSION "I am ready for the illusion, Myranda."
|
||||
|
||||
class npc_myranda_the_hag : public CreatureScript
|
||||
{
|
||||
public:
|
||||
@@ -146,8 +145,8 @@ public:
|
||||
player->GetQuestStatus(QUEST_IN_DREAMS) != QUEST_STATUS_COMPLETE &&
|
||||
!player->HasAura(SPELL_SCARLET_ILLUSION))
|
||||
{
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_ILLUSION, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
player->SEND_GOSSIP_MENU(4773, creature->GetGUID());
|
||||
player->ADD_GOSSIP_ITEM_DB(Player::GetDefaultGossipMenuForSource(creature), 0, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
player->SEND_GOSSIP_MENU(ILLUSION_GOSSIP, creature->GetGUID());
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user