Example #1
0
 public static void SendActionFeedback(IPacketReceiver receiver, PetActionFeedback feedback)
 {
     using (RealmPacketOut packet = new RealmPacketOut(RealmServerOpCode.SMSG_PET_ACTION_FEEDBACK, 1))
     {
         packet.Write((byte)feedback);
         receiver.Send(packet, false);
     }
 }
Example #2
0
        public void SendPetActionFeedback(uint spellId, ActionFeedback msg)
        {
            Unit owner = GetOwner();

            if (!owner || !owner.IsTypeId(TypeId.Player))
            {
                return;
            }

            PetActionFeedback petActionFeedback = new PetActionFeedback();

            petActionFeedback.SpellID  = spellId;
            petActionFeedback.Response = msg;
            owner.ToPlayer().SendPacket(petActionFeedback);
        }
Example #3
0
		public static void SendActionFeedback(IPacketReceiver receiver, PetActionFeedback feedback)
		{
			using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_PET_ACTION_FEEDBACK, 1))
			{
				packet.Write((byte)feedback);

				receiver.Send(packet);
			}
		}