Exemplo n.º 1
0
        public static void SendAuctionListBidderItems(IPacketReceiver client, Auction[] auctions)
        {
            if (auctions == null || auctions.Length < 1)
            {
                return;
            }
            RealmPacketOut packet =
                new RealmPacketOut((PacketId)RealmServerOpCode.SMSG_AUCTION_BIDDER_LIST_RESULT, 1024);

            packet.Write(auctions.Length);
            foreach (Auction auction in auctions)
            {
                AuctionHandler.BuildAuctionPacket(auction, packet);
            }
            packet.Write(auctions.Length);
            packet.Write(0);
            client.Send(packet, false);
            packet.Close();
        }
Exemplo n.º 2
0
        public static void SendAuctionListItems(IPacketReceiver client, Auction[] auctions)
        {
            if (auctions == null || auctions.Length < 1)
            {
                return;
            }
            RealmPacketOut packet = new RealmPacketOut((PacketId)RealmServerOpCode.SMSG_AUCTION_LIST_RESULT, 7000);
            int            num    = 0;

            packet.Write(auctions.Length);
            foreach (Auction auction in auctions)
            {
                if (AuctionHandler.BuildAuctionPacket(auction, packet))
                {
                    ++num;
                }
            }

            packet.Write(num);
            packet.Write(300);
            client.Send(packet, false);
            packet.Close();
        }