mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 21:26:23 +00:00
fix(Core/Gossip): Remove hard-coded texts from the: The forge of souls C++ (#3219)
* Text of the gossip taken from the database * Adding translations to quest_offer_reward_locale * Adding enum for gossip. * Changing the name of the enum to avoid conflicts. Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com> Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
This commit is contained in:
@@ -28,7 +28,13 @@ enum Yells
|
||||
SAY_SYLVANAS_INTRO_6 = 5,
|
||||
|
||||
SAY_JAINA_OUTRO = 0,
|
||||
SAY_SYLVANAS_OUTRO = 0,
|
||||
SAY_SYLVANAS_OUTRO = 0
|
||||
};
|
||||
|
||||
enum FOS_Gossip
|
||||
{
|
||||
GOSSIP_JAINA_INTRO = 10943,
|
||||
GOSSIP_SYLVANAS_INTRO = 10971
|
||||
};
|
||||
|
||||
class npc_fos_leader : public CreatureScript
|
||||
@@ -174,9 +180,9 @@ public:
|
||||
if (creature->HasFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP))
|
||||
{
|
||||
if (creature->GetEntry() == NPC_JAINA_PART1)
|
||||
AddGossipItemFor(player, GOSSIP_ICON_CHAT, "What would you have of me, my lady?", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
AddGossipItemFor(player, GOSSIP_JAINA_INTRO, 0, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
else
|
||||
AddGossipItemFor(player, GOSSIP_ICON_CHAT, "What would you have of me, Banshee Queen?", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
AddGossipItemFor(player, GOSSIP_SYLVANAS_INTRO, 0, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
}
|
||||
|
||||
SendGossipMenuFor(player, 15207, creature->GetGUID());
|
||||
|
||||
Reference in New Issue
Block a user