WoW:API GetAuctionItemTimeLeft: Difference between revisions
Jump to navigation
Jump to search
(updated the function name in the details) |
m (Move page script moved page API GetAuctionItemTimeLeft to API GetAuctionItemTimeLeft without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 19: | Line 19: | ||
:;timeleft : a number between 1 and 4 | :;timeleft : a number between 1 and 4 | ||
:::;1 : short | :::;1 : short (less than 30 minutes) | ||
:::;2 : medium | :::;2 : medium (30 minutes - 2 hours) | ||
:::;3 : long | :::;3 : long (2 - 12 hours) | ||
:::;4 : very long | :::;4 : very long (more than 12 hours) | ||
---- | ---- | ||
Latest revision as of 04:45, 15 August 2023
← WoW API < GetAuctionItemTimeLeft
Retrieves the time left for a item in the Auction House.
timeleft = GetAuctionItemTimeLeft("type", index);
- Arguments
- (String type, Number index)
- type
- One of the following:
- "list"
- An item up for auction, the "Browse" tab in the dialog.
- "bidder"
- An item the player has bid on, the "Bids" tab in the dialog.
- "owner"
- An item the player has up for auction, the "Auctions" tab in the dialog.
- index
- The index of the item in the list to retrieve info from (normally 1-50, inclusive)
- Returns
- timeleft
- a number between 1 and 4
- 1
- short (less than 30 minutes)
- 2
- medium (30 minutes - 2 hours)
- 3
- long (2 - 12 hours)
- 4
- very long (more than 12 hours)
- Example
timeleft = GetAuctionItemTimeLeft("owner", offset + i);
- Result
Returns the time that the item will stay in the auction house. Affects nothing other than the return values.
- Description
- Retrieves the time left for an item in the current list of auction items.