Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
This function is restricted.
|
Places a bid on a non-commodity item.
C_AuctionHouse.PlaceBid(auctionID, bidAmount)
Arguments[]
- auctionID
- number
- bidAmount
- number - Amount in copper, only accepts gold and silently fails for non-zero copper counts.
Example[]
These examples require you to click a specific price listing from the available auctions first.
- Buys the currently selected auction.
function Example() -- /run Example()
local buyFrame = AuctionHouseFrame.ItemBuyFrame
C_AuctionHouse.PlaceBid(buyFrame.auctionID, buyFrame.BuyoutFrame.price)
end
- Presses the "Buyout" button, in a macro suitable format which uses a secure template.
/run if not B then local f=CreateFrame("Button","B",nil,"SecureActionButtonTemplate")f:SetAttribute("type","click")f:SetAttribute("clickbutton",AuctionHouseFrame.ItemBuyFrame.BuyoutFrame.BuyoutButton)end
/click B LeftButton 1
/click StaticPopup1Button1
Patch changes[]
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.StartCommoditiesPurchase()
- https://www.curseforge.com/wow/addons/magic-button/ - Adds macros for keybinds to buy, post, and cancel on the auction house.
|