Exemple #1
0
 public static void SendBuyError(IPacketReceiver client, IEntity vendor, Asda2ItemId itemEntryId,
                                 BuyItemError error)
 {
     using (RealmPacketOut packet = new RealmPacketOut((PacketId)RealmServerOpCode.SMSG_BUY_FAILED, 13))
     {
         packet.Write((ulong)vendor.EntityId);
         packet.Write((uint)itemEntryId);
         packet.Write((byte)error);
         client.Send(packet, false);
     }
 }
Exemple #2
0
		public static void SendBuyError(IPacketReceiver client, IEntity vendor, ItemId itemEntryId, BuyItemError error)
		{
			using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_BUY_FAILED, 8 + 4 + 1))
			{
				packet.Write(vendor.EntityId);
				packet.Write((uint)itemEntryId);
				packet.Write((byte)error);

				client.Send(packet);
			}
		}
Exemple #3
0
        public static void SendBuyError(IPacketReceiver client, IEntity vendor, ItemId itemEntryId, BuyItemError error)
        {
            using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_BUY_FAILED, 8 + 4 + 1))
            {
                packet.Write(vendor.EntityId);
                packet.Write((uint)itemEntryId);
                packet.Write((byte)error);

                client.Send(packet);
            }
        }