Sort order not correct C_AuctionHouse.SendSearchA
I've been trying to debug this all day :(
I'm trying to send a search for specific items on the AH and I'm listening to the ITEM_SEARCH_RESULTS_UPDATED event. The issue I'm having is that no matter what I pass in for the sort parameter I always get the items in the same sort order(bid sorted). Here is how I'm search and getting the item info: This is confusing me to no end so if someone has experience with this help would be amazing:) Code:
local numResults = C_AuctionHouse.GetNumItemSearchResults(itemKey) Code:
for _, auction in pairs(AH.ownedAuctions) do |
C_AuctionHouse.SendSearchQuery() requires a table of AuctionHouseSortType
Code:
local sorts = { |
Thanks for the reply!
I thought that might have to do with it but, when I change Code:
local sort = { Code:
C_AuctionHouse.SendSearchQuery(auction.itemKey, {sort}, true) Code:
Message: Usage: C_AuctionHouse.SendSearchQuery(itemKey, sorts, separateOwnerItems) |
OMG!
You are correct I needed to pass it as a list but, I had used "reverseSort" as a key instead of "reverseOrder" -_- Which is why I was getting the Usage error Everything is working great now, thanks for pointing me in the right direction! |
All times are GMT -6. The time now is 09:04 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI