C_AuctionHouse.PostItem

From Wowpedia
Jump to: navigation, search

Posts an item on the auction house.

C_AuctionHouse.PostItem(item, duration, quantity [, bid, buyout])

Arguments

item 
ItemLocationMixin
duration 
number
Value Description
1 12 Hours
2 24 Hours
3 48 Hours
quantity 
number - The quantity for items can be bigger than 1, it will not be limited to the given ItemLocation and continue auctioning items from the other slots in your backpack.
bid 
number? - Either bid or buyout has to be supplied, or both. Amount in copper, only accepts gold and silver and ignores non-zero copper counts.
buyout 
number?

Example

  • Auctions the non-commodity item in the topleft corner of your default backpack, for 48 hours with a 42 silver buyout.
/run C_AuctionHouse.PostItem(ItemLocation:CreateFromBagAndSlot(0, 1), 3, 1, nil, 4200)
  • Clicks the Create Auction button instead of using this API. Requires a secure action, or it will brick the AH.
/run if not ProxyAHItem then local f = CreateFrame("Button", "ProxyAHItem", nil, "SecureActionButtonTemplate") f:SetAttribute("type", "click") f:SetAttribute("clickbutton", AuctionHouseFrame.ItemSellFrame.PostButton) end
/click ProxyAHItem

Patch changes

See also

External links