USERAPI GetAuctionBuyout

104,672pages on
this wiki
Add New Page
Talk0 Share
This page documents a user-defined API that is provided by third-party addons.
AddOn defined functions < GetAuctionBuyout

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);
     if (sellval == nil) then
         local name = GetItemInfo(item);
         if (name and MyGetAuctionPriceByItemName(name)) then
             sellval = MyGetAuctionPriceByItemName(name);
     if (sellval) then
          return sellval;
     if (origGetAuctionBuyout) then
          return origGetAuctionBuyout(item);
     return nil;

GetAuctionBuyout is supported by:

See also Edit

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki