Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API C_BlackMarket.GetItemInfoByID

From Wowpedia
Jump to: navigation, search

Returns information about a specific black market auction.

name, texture, quantity, itemType, usable, level, levelType, sellerName, minBid, minIncrement, currBid, youHaveHighBid, numBids, timeLeft, link, marketID 
 = C_BlackMarket.GetHotItem()
 = C_BlackMarket.GetItemInfoByIndex(index)
 = C_BlackMarket.GetItemInfoByID(marketID)

You can use GetHotItem to retrieve information about a "Hot Item!" auction picked by the server, GetItemInfoByIndex to iterate through all auctions, and GetItemInfoByID to retrieve information about specific auctions. These three functions have identical return values.

Arguments

GetHotItem 
none
GetItemInfoByIndex 
index (Number) - black market auction index, ascending from 1 to C_BlackMarket.GetNumItems()
GetItemInfoByID 
marketID (Number) - black market auction ID.

Returns

name 
String - item name; nil if no such auction exists.
texture 
String - icon texture path.
quantity 
Number - amount of the item included in the auction.
itemType 
String - item type, e.g. "Quest", "Mail", or "Companion Pet"
level 
Number - item level requirement.
levelType 
String - e.g. "REQ_LEVEL_ABBR"
sellerName 
String - localized name of the NPC "selling" the item.
minBid 
Number - minimum amount of copper you can bid for this item.
minIncrement 
Number - minimum amount of copper you must increase the current bid by.
currBid 
Number - the maximum current bid in copper.
youHaveHighBid 
Boolean - true if your bid on this item is currently the highest bid, false otherwise.
numBids 
Number - number of bids made on this item.
timeLeft 
Number - token indicating remaining auction duration, 0 for completed auctions, larger values indicate larger remaining durations. For a localized text version, use _G["AUCTION_TIME_LEFT" .. timeLeft].
link 
String - Chat link of the item being auctioned.
marketID 
Number - Black Market auction ID of this auction.

Details

Patch changes

See also