public static void SendAIReaction(IPacketReceiver recv, EntityId guid, AIReaction reaction) { using (RealmPacketOut packet = new RealmPacketOut(RealmServerOpCode.SMSG_AI_REACTION, 12)) { packet.Write(guid); packet.Write((uint)reaction); recv.Send(packet, false); } }
public static void SendAIReaction(IPacketReceiver recv, EntityId guid, AIReaction reaction) { using (var pkt = new RealmPacketOut(RealmServerOpCode.SMSG_AI_REACTION, 8 + 4)) { pkt.Write(guid); pkt.Write((uint)reaction); recv.Send(pkt); } }
public void SendPetAIReaction(ObjectGuid guid) { Unit owner = GetOwner(); if (!owner || !owner.IsTypeId(TypeId.Player)) { return; } AIReaction packet = new AIReaction(); packet.UnitGUID = guid; packet.Reaction = AiReaction.Hostile; owner.ToPlayer().SendPacket(packet); }