From e3280388fab0226c5cd16cea24ce04f4b812d85c Mon Sep 17 00:00:00 2001 From: zamalaev Date: Wed, 19 Feb 2020 16:04:20 +0000 Subject: [PATCH] SMSG_AI_REACTION 5.4.8 (18414) --- src/game/Object/Creature.cpp | 21 ++++++++++++++++++++- src/game/Server/Opcodes.h | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/game/Object/Creature.cpp b/src/game/Object/Creature.cpp index 5e1df0d37..befb4f9e9 100644 --- a/src/game/Object/Creature.cpp +++ b/src/game/Object/Creature.cpp @@ -2359,8 +2359,27 @@ void Creature::SendAIReaction(AiReaction reactionType) { WorldPacket data(SMSG_AI_REACTION, 12); - data << GetObjectGuid(); + ObjectGuid guid = GetObjectGuid(); + + data.WriteBit(guid[5]); + data.WriteBit(guid[7]); + data.WriteBit(guid[0]); + data.WriteBit(guid[4]); + data.WriteBit(guid[6]); + data.WriteBit(guid[2]); + data.WriteBit(guid[3]); + data.WriteBit(guid[1]); + + data.WriteByteSeq(guid[4]); + data.WriteByteSeq(guid[6]); + data.WriteByteSeq(guid[5]); data << uint32(reactionType); + data.WriteByteSeq(guid[7]); + data.WriteByteSeq(guid[1]); + data.WriteByteSeq(guid[2]); + data.WriteByteSeq(guid[0]); + data.WriteByteSeq(guid[3]); + ((WorldObject*)this)->SendMessageToSet(&data, true); diff --git a/src/game/Server/Opcodes.h b/src/game/Server/Opcodes.h index 8d73d29cc..792a12689 100644 --- a/src/game/Server/Opcodes.h +++ b/src/game/Server/Opcodes.h @@ -382,7 +382,7 @@ enum Opcodes SMSG_CHANNEL_START = 0x0A15, // 4.3.4 15595 SMSG_CHANNEL_UPDATE = 0x2417, // 4.3.4 15595 CMSG_CANCEL_CHANNELLING = 0x6C25, // 4.3.4 15595 - SMSG_AI_REACTION = 0x0637, // 4.3.4 15595 + SMSG_AI_REACTION = 0x06AF, // 5.4.8 18414 CMSG_SET_SELECTION = 0x07CD, // 5.4.1 17538 CMSG_EQUIPMENT_SET_DELETE = 0x4D07, // 4.3.4 15595 CMSG_INSTANCE_LOCK_RESPONSE = 0x1140,