PostAuction

From Warcraft Wiki
Jump to navigation Jump to search
Game Types
Links
Patch
Added in 8.0.1 / 1.13.2
Removed in 8.3.0

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 passing false will supposedly fail when there is an upcoming major maintance.

Details

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

Example auction post

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