Пример #1
0
 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);
     }
 }
Пример #2
0
 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);
     }
 }
Пример #3
0
        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);
        }
Пример #4
0
		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);
			}
		}