WoWInterface - View Single Post - GetAuctionItemInfo removing items from auction house page
View Single Post
08-22-19, 09:26 PM   #9
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Sep 2011
Posts: 71
I see, some auctions do get removed, most likely due to the fact character names of the posters get resolved when querying GetAuctionItemInfo, which in turn causes the auction list to refresh/update when a name is resolved.

I recommend you just process the auctions as soon as you get access to them, so as to ensure none are expired, like in my example.

Alternatively you can probably just scan the list in reverse from n to 1. not ideal since you need the final count, and should really avoid waiting for the download to finish before you start processing the auctions.

Another possible solution would be to just call GetAuctionItemInfo on all the auctions once, this will resolve all the names of the players, then do another pass after all the names are loaded, the second pass shouldn't drop any auctions.
  Reply With Quote