示例#1
0
 public void AuctionListItems(Character chr, NPC auctioneer, AuctionSearch searcher)
 {
     if (!DoAuctioneerInteraction(chr, auctioneer))
     {
         return;
     }
     Auction[] array = searcher.RetrieveMatchedAuctions(auctioneer.AuctioneerEntry.Auctions).ToArray();
     AuctionHandler.SendAuctionListItems(chr.Client, array);
 }
示例#2
0
		public static void HandleAuctionListItems(IRealmClient client, RealmPacketIn packet)
		{
			var chr = client.ActiveCharacter;
			var auctioneerId = packet.ReadEntityId();
			var auctioneer = chr.Map.GetObject(auctioneerId) as NPC;

			var searcher = new AuctionSearch()
			{
				StartIndex = packet.ReadUInt32(),
				Name = packet.ReadCString(),
				LevelRange1 = packet.ReadByte(),
				LevelRange2 = packet.ReadByte(),
				InventoryType = (InventorySlotType)packet.ReadUInt32(),
				ItemClass = (ItemClass)packet.ReadUInt32(),
				ItemSubClass = (ItemSubClass)packet.ReadUInt32(),
				Quality = packet.ReadInt32(),
				IsUsable = packet.ReadBoolean()
			};

			AuctionMgr.Instance.AuctionListItems(chr, auctioneer, searcher);

		}