Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

GetAuctionBuyout

Last wiki revision 2010-05-16

GetAuctionBuyout is an API proposed by Tekkub as a standard for getting auction house buyout price recommendations from addons that are so capable.

Here's a possible implementation that assumes you have an internal function call MyGetAuctionPriceByItemName.

local origGetAuctionBuyout = GetAuctionBuyout; function GetAuctionBuyout(item) -- Tekkub's API local sellval; if (type(item) == "string" and MyGetAuctionPriceByItemName(item)) then sellval = MyGetAuctionPriceByItemName(item); end if (sellval == nil) then local name = GetItemInfo(item); if (name and MyGetAuctionPriceByItemName(name)) then sellval = MyGetAuctionPriceByItemName(name); end end if (sellval) then return sellval; end if (origGetAuctionBuyout) then return origGetAuctionBuyout(item); end return nil; end

GetAuctionBuyout is supported by:

  • AuctionLite by Merial.
  • Auctionator by Zirco
  • AuctionMaster by Udorn
  • GetSellValue

Source

https://warcraft.wiki.gg/wiki/GetAuctionBuyout · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.