From 7c9c7a17d17327c73680c8bac81212f0d67b8b0d Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 11 Jan 2023 01:07:21 -0500 Subject: [PATCH] Core/Quests: Set QuestGiverCreatureID for QuestGiverQuestDetails packet Port From (https://github.com/TrinityCore/TrinityCore/commit/fd364fe52238c11f86618e0f6de81a74d99221a7) --- Source/Game/Entities/Creature/Gossip.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Game/Entities/Creature/Gossip.cs b/Source/Game/Entities/Creature/Gossip.cs index 45d1e0206..f6ef4250e 100644 --- a/Source/Game/Entities/Creature/Gossip.cs +++ b/Source/Game/Entities/Creature/Gossip.cs @@ -466,6 +466,11 @@ namespace Game.Misc packet.QuestFlags[2] = (uint)quest.FlagsEx2; packet.SuggestedPartyMembers = quest.SuggestedPlayers; + // Is there a better way? what about game objects? + Creature creature = ObjectAccessor.GetCreature(_session.GetPlayer(), npcGUID); + if (creature != null) + packet.QuestGiverCreatureID = (int)creature.GetCreatureTemplate().Entry; + // RewardSpell can teach multiple spells in trigger spell effects. But not all effects must be SPELL_EFFECT_LEARN_SPELL. See example spell 33950 SpellInfo spellInfo = Global.SpellMgr.GetSpellInfo(quest.RewardSpell, Difficulty.None); if (spellInfo != null)