aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Kalimdor
diff options
context:
space:
mode:
authorlee <leelf_00@126.com>2022-04-08 09:43:57 +0800
committerGitHub <noreply@github.com>2022-04-08 04:43:57 +0300
commit5a20861565c6de3ed0312bb82fbf5bb048f0f8f4 (patch)
tree77a486f5d85b02d3331640a504487aa7c34b53f9 /src/server/scripts/Kalimdor
parentf02b70860fcefb4902b910aac12cef683451496e (diff)
Scripts/Misc: Load gossip options from DB (#27892)
Diffstat (limited to 'src/server/scripts/Kalimdor')
-rw-r--r--src/server/scripts/Kalimdor/zone_azshara.cpp8
-rw-r--r--src/server/scripts/Kalimdor/zone_thunder_bluff.cpp9
2 files changed, 11 insertions, 6 deletions
diff --git a/src/server/scripts/Kalimdor/zone_azshara.cpp b/src/server/scripts/Kalimdor/zone_azshara.cpp
index d75840e81fc..907b469d3de 100644
--- a/src/server/scripts/Kalimdor/zone_azshara.cpp
+++ b/src/server/scripts/Kalimdor/zone_azshara.cpp
@@ -43,11 +43,11 @@ enum RizzleSprysprocketData
SAY_RIZZLE_START = 0,
SAY_RIZZLE_GRENADE = 1,
SAY_RIZZLE_FINAL = 2,
- MSG_ESCAPE_NOTICE = 3
+ MSG_ESCAPE_NOTICE = 3,
+ GOSSIP_MENU_GET_MOONSTONE = 57025,
+ GOSSIP_OPTION_GET_MOONSTONE = 0
};
-#define GOSSIP_GET_MOONSTONE "Hand over the Southfury moonstone and I'll let you go."
-
Position const WPs[58] =
{
{3691.97f, -3962.41f, 35.9118f, 3.67f},
@@ -284,7 +284,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_MENU_GET_MOONSTONE, GOSSIP_OPTION_GET_MOONSTONE, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
SendGossipMenuFor(player, 10811, me->GetGUID());
return true;
}
diff --git a/src/server/scripts/Kalimdor/zone_thunder_bluff.cpp b/src/server/scripts/Kalimdor/zone_thunder_bluff.cpp
index c1c55e3ccdf..ba842f5f9ad 100644
--- a/src/server/scripts/Kalimdor/zone_thunder_bluff.cpp
+++ b/src/server/scripts/Kalimdor/zone_thunder_bluff.cpp
@@ -45,7 +45,12 @@ enum Sounds
SOUND_AGGRO = 5884
};
-#define GOSSIP_HCB "I know this is rather silly but a young ward who is a bit shy would like your hoofprint."
+enum Gossips
+{
+ GOSSIP_MENU_HCB = 5851,
+ GOSSIP_OPTION_HCB = 0
+};
+
/// @todo verify abilities/timers
class npc_cairne_bloodhoof : public CreatureScript
{
@@ -141,7 +146,7 @@ public:
player->PrepareQuestMenu(me->GetGUID());
if (player->GetQuestStatus(925) == QUEST_STATUS_INCOMPLETE)
- AddGossipItemFor(player, GOSSIP_ICON_CHAT, GOSSIP_HCB, GOSSIP_SENDER_MAIN, GOSSIP_SENDER_INFO);
+ AddGossipItemFor(player, GOSSIP_MENU_HCB, GOSSIP_OPTION_HCB, GOSSIP_SENDER_MAIN, GOSSIP_SENDER_INFO);
SendGossipMenuFor(player, 7013, me->GetGUID());