mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Scripts/Quest: Defending Wyrmrest Temple (#22513)
- use DB gossip instead of `#define` (deprecated)
Updates #22500
(cherry picked from commit 013d50f169)
This commit is contained in:
@@ -470,6 +470,7 @@ enum WyrmDefenderEnum
|
||||
// Quest data
|
||||
QUEST_DEFENDING_WYRMREST_TEMPLE = 12372,
|
||||
GOSSIP_TEXTID_DEF1 = 12899,
|
||||
GOSSIP_OPTION_DEF1 = 9568,
|
||||
|
||||
// Gossip data
|
||||
GOSSIP_TEXTID_DEF2 = 12900,
|
||||
@@ -485,8 +486,6 @@ enum WyrmDefenderEnum
|
||||
BOSS_EMOTE_ON_LOW_HEALTH = 2
|
||||
};
|
||||
|
||||
#define GOSSIP_ITEM_1 "We need to get into the fight. Are you ready?"
|
||||
|
||||
class npc_wyrmrest_defender : public CreatureScript
|
||||
{
|
||||
public:
|
||||
@@ -568,7 +567,7 @@ class npc_wyrmrest_defender : public CreatureScript
|
||||
{
|
||||
if (player->GetQuestStatus(QUEST_DEFENDING_WYRMREST_TEMPLE) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
AddGossipItemFor(player, GossipOptionIcon::None, GOSSIP_ITEM_1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
AddGossipItemFor(player, GOSSIP_OPTION_DEF1, 0, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
SendGossipMenuFor(player, GOSSIP_TEXTID_DEF1, me->GetGUID());
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user