RSS

Четверг, 14.11.2024, 18:49
Главная » WoW API » API Функции » Аукцион »

StartAuction

[ править ]
Creates an auction for the item currently in the "auction item" slot.
[клоны]
Creates an auction for the item currently in the "auction item" slot. Has no effect unless an item has been placed in the Create Auction UI's "auction item" slot (see ClickAuctionSellItemButton()). With patch 3.3.3 the runTime arg was changed from minutes to an index and the stackSize/numStacks args were added for batch posting.

Signature:
Code
StartAuction(minBid, buyoutPrice, runTime, stackSize, numStacks)

Arguments:
  • minBid - Minimum bid for the auction (in copper) (number)
  • buyoutPrice - Buyout price for the auction (in copper) (number)
  • runTime - Run time until the auction expires (an index indicating number of hours) (number)
      1 - 12 hours
    • 2 - 24 hours
    • 3 - 48 hours

  • stackSize - Number of items to post in each auction (number)
  • numStacks - Number of auctions (stacks) to post (number)

Examples:
-- Place an item in the auction slot
PickupContainerItem(bag, slot)
ClickAuctionSellItemButton()
ClearCursor()

-- Create 4 auctions of 5 items each for 1g bid, 1g50s buyout,
-- with a duration of 24 hours
StartAuction(10000, 15000, 2, 5, 4)

Также смотрите: Аукцион , Auction functions
Ссылки: http://wowprogramming.com/docs/api/StartAuction