C_AuctionHouse.PostCommodity

From Wowpedia
Jump to: navigation, search

Posts a commodity item on the auction house.

C_AuctionHouse.PostCommodity(item, duration, quantity, unitPrice)

Arguments

item 
ItemLocationMixin
duration 
number
Value Description
1 12 Hours
2 24 Hours
3 48 Hours
quantity 
number
unitPrice 
number - Amount in copper, only accepts gold and silver and ignores non-zero copper counts.

Example

Auctions 14 units of the commodity item in the topleft corner of your default backpack, for 48 hours with a 27 silver price per unit.

/run C_AuctionHouse.PostCommodity(ItemLocation:CreateFromBagAndSlot(0, 1), 3, 14, 2700)
  • Clicks the Create Auction button instead of using this API. Requires a secure action, or it will brick the AH.
/run if not ProxyAHCom then local f = CreateFrame("Button", "ProxyAHCom", nil, "SecureActionButtonTemplate") f:SetAttribute("type", "click") f:SetAttribute("clickbutton", AuctionHouseFrame.CommoditiesSellFrame.PostButton) end
/click ProxyAHCom

Patch changes

External links