Wowpedia
Advertisement
Wowpedia
240,505
pages
Game Flavors
Links
Patch
Added in 8.3.0

Searches for favorited items.

C_AuctionHouse.SearchForFavorites(sorts)

Arguments

sorts 
AuctionHouseSortType[]
Key Type Description
sortOrder Enum.AuctionHouseSortOrder?
reverseSort boolean?
Enum.AuctionHouseSortOrder
Value Key Description
0 Price
1 Name
2 Level
3 Bid
4 Buyout
5 TimeRemaining Added in 9.0.1

Example

Does not work through a (macro) script, or it will brick the AH

local btn = CreateFrame("Button", nil, UIParent, "UIPanelButtonTemplate")
btn:SetPoint("CENTER")
btn:SetSize(100, 40)
btn:SetText("Click me")
btn:SetScript("OnClick", function(self, button)
	C_AuctionHouse.SearchForFavorites({})
end)

Sorts by price (ascending), and then name (descending).

local sorts = {
	{sortOrder = Enum.AuctionHouseSortOrder.Price, reverseSort = false},
	{sortOrder = Enum.AuctionHouseSortOrder.Name, reverseSort = true},
}

local btn = CreateFrame("Button", nil, UIParent, "UIPanelButtonTemplate")
btn:SetPoint("CENTER")
btn:SetSize(100, 40)
btn:SetText("Click me")
btn:SetScript("OnClick", function(self, button)
	C_AuctionHouse.SearchForFavorites(sorts)
end)

API C AuctionHouse.SearchForFavorites.png

Patch changes


Advertisement