WoW:API GetNumAuctionItems: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 26: Line 26:
----
----
{{Template:WoW API}}
{{Template:WoW API}}
[[Category:API Functions|GetNumAuctionItems]]
[[Category:API Auction Functions|GetNumAuctionItems]]

Revision as of 14:42, 27 August 2005

GetNumAuctionItems -Documentation by taka-

Retrieves the number of auction items of a certain type.

batch,count = GetNumAuctionItems("list");

Arguments
(string type)
type
One of the following:
"list"
Items up for auction, the "Browse" tab in the dialog.
"bidder"
Items the player has bid on, the "Bids" tab in the dialog.
"owner"
Items the player has up for auction, the "Auctions" tab in the dialog.

Returns
batch
The size of the batch, seems to be MIN(NUM_AUCTION_ITEMS_PER_PAGE,count)
count
The number of items.

Example
numBatchAuctions, totalAuctions = GetNumAuctionItems("bidder");

Template:WoW API