Core/PacketIO: Implemented CMSG_CONVERSATION_LINE_STARTED

Port From (https://github.com/TrinityCore/TrinityCore/commit/6d9ce8e8baa100ecc7650d0ae56037c131bab2e0)
This commit is contained in:
hondacrx
2021-10-11 20:01:48 -04:00
parent 58550514e6
commit 586dddec4d
10 changed files with 109 additions and 11 deletions
+8 -1
View File
@@ -23,7 +23,6 @@ using Game.Entities;
using Game.Groups;
using Game.Guilds;
using Game.Maps;
using Game.Misc;
using Game.Networking;
using Game.Networking.Packets;
using Game.PvP;
@@ -454,6 +453,14 @@ namespace Game
_player.PlayerTalkClass.GetInteractionData().Reset();
}
[WorldPacketHandler(ClientOpcodes.ConversationLineStarted)]
void HandleConversationLineStarted(ConversationLineStarted conversationLineStarted)
{
Conversation convo = ObjectAccessor.GetConversation(_player, conversationLineStarted.ConversationGUID);
if (convo != null)
Global.ScriptMgr.OnConversationLineStarted(convo, conversationLineStarted.LineID, _player);
}
[WorldPacketHandler(ClientOpcodes.ChatUnregisterAllAddonPrefixes)]
void HandleUnregisterAllAddonPrefixes(ChatUnregisterAllAddonPrefixes packet)
{