WoW:API StartAuction: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API StartAuction to API StartAuction without leaving a redirect)
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
StartAuction(minBid, buyoutPrice, runTime) - Starts the auction you have created in the Create Auction panel.
{{wowapi}}
StartAuction(minBid, buyoutPrice, runTime, stackSize, numStacks) - Starts the auction you have created in the Create Auction panel.


The item is that which has been put into the AuctionSellItemButton. That's the slot in the 'create auction' panel.  
The item is that which has been put into the AuctionSellItemButton. That's the slot in the 'create auction' panel.  
Line 6: Line 7:
'50' or '10' or '1' will always make the auction do '1 silver'. But '102' will make it do '1 silver 2 copper'.   
'50' or '10' or '1' will always make the auction do '1 silver'. But '102' will make it do '1 silver 2 copper'.   


The runTime is in minutes.
runTime may be one of the following:  1, 2, 3  for 12, 24, and 48 hours.


Examples:
Examples:


  StartAuction(1,1,120)       - Start at 1 silver, buyout 1 silver, time 2 hours
  StartAuction(1,1,1)         - Start at 1 silver, buyout 1 silver, time 12 hours
  StartAuction(1,10,120)     - Start at 1 silver, buyout 1 silver, time 2 hours
  StartAuction(1,10,1)       - Start at 1 silver, buyout 1 silver, time 12 hours
  StartAuction(1,100,120)     - Start at 1 silver, buyout 1 silver, time 2 hours
  StartAuction(1,100,1)       - Start at 1 silver, buyout 1 silver, time 12 hours
  StartAuction(1,1000,2*60)   - Start at 1 silver, buyout 10 silver, time 2 hours
  StartAuction(1,1000,1)     - Start at 1 silver, buyout 10 silver, time 12 hours
  StartAuction(1,10000,8*60) - Start at 1 silver, buyout 1 gold, time 8 hours
  StartAuction(1,10000,2)     - Start at 1 silver, buyout 1 gold, time 24 hours
  StartAuction(101,150,24*60) - Start at 1 silver 1 copper, buyout at 1 silver 50 copper, time 24 hours
  StartAuction(101,150,3)     - Start at 1 silver 1 copper, buyout at 1 silver 50 copper, time 48 hours


Play with it yourself:  
Play with it yourself:  
Line 25: Line 26:
*Type the following into chat window:
*Type the following into chat window:


  /script StartAuction(1,150,120)
  /script StartAuction(1,150,1)


*This should create an auction starting at 1 silver, buyout at 1 silver 50 copper, with auction time of 2 hours.
*This should create an auction starting at 1 silver, buyout at 1 silver 50 copper, with auction time of 12 hours.
*It should say 'Auction Created' in the chat window.  
*It should say 'Auction Created' in the chat window.  
*Now if you go to browse the auctions, your items should show up.
*Now if you go to browse the auctions, your items should show up.


See also:
**--
[[World_of_Warcraft_API#Auction_Functions]]
As of Patch 4.0, StartAuction() requires a hardware event.  This change does not show up in any patch documentation.

Latest revision as of 04:47, 15 August 2023

WoW API < StartAuction

StartAuction(minBid, buyoutPrice, runTime, stackSize, numStacks) - Starts the auction you have created in the Create Auction panel.

The item is that which has been put into the AuctionSellItemButton. That's the slot in the 'create auction' panel.

The minBid and buyoutPrice are in copper. However I cant figure out how to go below 1 silver. So putting in '50' or '10' or '1' will always make the auction do '1 silver'. But '102' will make it do '1 silver 2 copper'.

runTime may be one of the following: 1, 2, 3 for 12, 24, and 48 hours.

Examples:

StartAuction(1,1,1)         - Start at 1 silver, buyout 1 silver, time 12 hours
StartAuction(1,10,1)        - Start at 1 silver, buyout 1 silver, time 12 hours
StartAuction(1,100,1)       - Start at 1 silver, buyout 1 silver, time 12 hours
StartAuction(1,1000,1)      - Start at 1 silver, buyout 10 silver, time 12 hours
StartAuction(1,10000,2)     - Start at 1 silver, buyout 1 gold, time 24 hours
StartAuction(101,150,3)     - Start at 1 silver 1 copper, buyout at 1 silver 50 copper, time 48 hours

Play with it yourself:

  • Go to auction house
  • Right click on auctioneer
  • Click on the 'auction' tab
  • Drag an item to the slot in the 'Create Auction' panel
  • Type the following into chat window:
/script StartAuction(1,150,1)
  • This should create an auction starting at 1 silver, buyout at 1 silver 50 copper, with auction time of 12 hours.
  • It should say 'Auction Created' in the chat window.
  • Now if you go to browse the auctions, your items should show up.
    • --

As of Patch 4.0, StartAuction() requires a hardware event. This change does not show up in any patch documentation.