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