Scripts/Quests: Implemented new quest scripting hook, OnQuestAcknowledgeAutoAccept, used when player closes quest frame after viewing details of autoaccept quests

Port From (https://github.com/TrinityCore/TrinityCore/commit/f269f60d8a5f6b0982eb46dc583e2618c98931fb)
This commit is contained in:
hondacrx
2021-03-04 12:13:43 -05:00
parent 96b98cc4d3
commit 5b09d675dd
4 changed files with 35 additions and 0 deletions
@@ -406,6 +406,18 @@ namespace Game.Networking.Packets
public bool FromScript; // 0 - standart complete quest mode with npc, 1 - auto-complete mode
}
public class QuestGiverCloseQuest : ClientPacket
{
public QuestGiverCloseQuest(WorldPacket packet) : base(packet) { }
public override void Read()
{
QuestID = _worldPacket.ReadUInt32();
}
public uint QuestID;
}
public class QuestGiverQuestDetails : ServerPacket
{
public QuestGiverQuestDetails() : base(ServerOpcodes.QuestGiverQuestDetails) { }