Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
This function is restricted.
|
Posts an item on the auction house.
needsConfirmation = 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
orbuyout
has to be supplied, or both. Amount in copper, only accepts gold and silver and silently fails for non-zero copper counts. - buyout
- number?
Returns[]
- needsConfirmation
- boolean
Example[]
- Auctions the non-commodity item in the topleft corner of your default backpack, for 48 hours with a 42 silver buyout.
function Example() -- /run Example()
C_AuctionHouse.PostItem(ItemLocation:CreateFromBagAndSlot(0, 1), 3, 1, nil, 4200)
end
- Presses the "Create Auction" button, in a macro suitable format which uses a secure template.
/run if not AHPost then local f=CreateFrame("Button","AHPost",nil,"SecureActionButtonTemplate")f:SetAttribute("type","click")f:SetAttribute("clickbutton",AuctionHouseFrame.ItemSellFrame.PostButton)end
/click AHPost LeftButton 1
- This would brick the Auction House.
/run AuctionHouseFrame.ItemSellFrame.PostButton:Click()
Patch changes[]
Patch 9.2.5 (2022-05-31): Added needsConfirmation
return.
Patch 9.1.5 (2021-11-02): Protected when called from a (macro) script.
Patch 8.3.0 (2020-01-14): Added.
See also[]
- C_AuctionHouse.PostCommodity()
- https://www.curseforge.com/wow/addons/magic-button/ - Adds macros for keybinds to buy, post, and cancel on the auction house.
|