PostAuction
Jump to navigation
Jump to search
![]() |
This API only exists in Cata Classic and Classic Era. |
![]() |
This function is restricted.
|
Posts the auction item from the Create Auction panel.
PostAuction(minBid, buyoutPrice, runTime, stackSize, numStacks, warningAcknowledged)
Arguments
- minBid
- number - The minimum bid price for this auction in copper.
- buyoutPrice
- number - The buyout price for this auction in copper.
- runTime
- number - The duration for which the auction should be posted.
Value | Description |
---|---|
1 | 2 hours (Medium) |
2 | 8 hours (Long) |
3 | 24 hours (Very Long) |
- stackSize
- number - The size of each stack to be posted.
- numStacks
- number - The number of stacks to post.
- warningAcknowledged
- boolean - Whether the warning popup about the major auction house maintenance was acknowledged. Passing
true
should be fine for users who don't care about possibly losing their deposit. Otherwise passingfalse
will supposedly fail when there is an upcoming major maintance.
Details
- When the AUCTION_HOUSE_POST_WARNING event fires with the popup warning, requires
warningAcknowledged
to be true.
CONFIRM_AUCTION_POSTING_TEXT = "The auction house will undergo major updates during the scheduled weekly maintenance.|n|nIf your auction hasn't sold by then, your item will be returned early and you will lose your deposit."
Example
Posts the item that is currently set to be auctioned
- bid price of 10 copper
- buyout price of 20 copper
- auction duration of 2 hours
- posts 2 auctions in stacks of 3
- posts the auction regardless of any scheduled major maintance warning
function Example() -- /run Example()
PostAuction(10, 20, 1, 3, 2, true)
end
Patch changes
Patch 1.15.7 (2025-04-08): Added
warningAcknowledged
argument.Patch 1.13.2 (2019-08-26): Added. Replaces StartAuction()
|