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); } }
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); }
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); } }