fix(Core/Creature): hardcoded gossip in zone_azshara (#18289)

* Changing hardcoded text in #define to enum member

- Changing #define to new enum member for AddGossipItemFor method

* Adding SQL Query File

* Forgot to add ';' in DELETE FROM
This commit is contained in:
Kalimist
2024-02-08 01:41:23 -05:00
committed by GitHub
parent c841ec5b74
commit 65d6bd0472
2 changed files with 7 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
DELETE FROM `gossip_menu_option` WHERE `MenuID`=21893;
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextID`, `VerifiedBuild`) VALUES
(21893, 0, 0, 'Hand over the Southfury moonstone and I\'ll let you go.', 20723, 1, 1, 0, 0, 0, 0, '', 0, 0);

View File

@@ -53,10 +53,10 @@ enum RizzleSprysprocketData
SAY_RIZZLE_START = 0,
SAY_RIZZLE_GRENADE = 1,
SAY_RIZZLE_FINAL = 2,
MSG_ESCAPE_NOTICE = 3
};
MSG_ESCAPE_NOTICE = 3,
GOSSIP_GET_MOONSTONE = 21893
#define GOSSIP_GET_MOONSTONE "Hand over the Southfury moonstone and I'll let you go."
};
Position const WPs[58] =
{
@@ -295,7 +295,7 @@ public:
if (player->GetQuestStatus(QUEST_CHASING_THE_MOONSTONE) != QUEST_STATUS_INCOMPLETE)
return true;
AddGossipItemFor(player, GOSSIP_ICON_CHAT, GOSSIP_GET_MOONSTONE, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
AddGossipItemFor(player, GOSSIP_GET_MOONSTONE, 0, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
SendGossipMenuFor(player, 10811, creature->GetGUID());
return true;