WoW:USERAPI GetAuctionBuyout: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{Stub/API}} | |||
{{userapi}} | |||
GetAuctionBuyout is an API proposed by [[User:Tekkub|Tekkub]] as a standard for getting auction house buyout price recommendations from addons that are so capable. | GetAuctionBuyout is an API proposed by [[User:Tekkub|Tekkub]] as a standard for getting auction house buyout price recommendations from addons that are so capable. | ||
| Line 38: | Line 41: | ||
* [http://auctionator-addon.com Auctionator] by [[User:Zirco|Zirco]] | * [http://auctionator-addon.com Auctionator] by [[User:Zirco|Zirco]] | ||
== See also == | |||
* [[GetSellValue]] | |||
See also | |||
[[GetSellValue]] | |||
Revision as of 02:05, 6 April 2009
This page documents a <i>user-defined API</i> 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);
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
