Wowpedia
Advertisement
Game Flavors
Links
Patch
Added in 8.3.0

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 AHBuy then local f=CreateFrame("Button","AHBuy",nil,"SecureActionButtonTemplate")f:SetAttribute("type","click")f:SetAttribute("clickbutton",AuctionHouseFrame.ItemBuyFrame.BuyoutFrame.BuyoutButton)end
/click AHBuy
/click StaticPopup1Button1

API C AuctionHouse.PlaceBid.png

Patch changes

See also


Advertisement