# Пользовательские дополнения

На главную

## auction.Buyout( id )

Попытаться выкупить предмет на аукционе по назначенной владельцем окончательной цене.

Результат - EVENT_AUCTION_BID_RESULT.

    -- библиотека
    auction

    -- объявление
    function auction.Buyout( id )

    -- параметры
    id: ObjectId - id аукциона

    -- возвращаемые значения
    нет

    -- пример
    local state = auction.GetAuctionState( id )
    if state then
      if not state.bidInProgress then
        auction.Buyout( id )
      end
    end

#### Search: "CategoryLuaApi" "CategoryAuction"

EnumAuctionBidResultMsgResult
EnumAuctionCreateResultMsg
EnumAuctionCreationTime
EnumAuctionDescriptorParticipationStatus
EnumAuctionDiscardResultMsgResult
EnumAuctionGetParamsResultMsgStatus
EnumAuctionGetResultMsgResult
EnumAuctionOrderField
EnumAuctionSearchResultMsgResult
EventAuctionBidResult
EventAuctionCreationResult
EventAuctionDiscardResult
EventAuctionProperties
EventAuctionSearchResult
EventAuctionUpdateResult
FunctionAuctionBid
FunctionAuctionBuyout
FunctionAuctionCanCreate
FunctionAuctionCanCreateForItem
FunctionAuctionCreate
FunctionAuctionCreateForItem
FunctionAuctionDiscard
FunctionAuctionGetAuctionInfo
FunctionAuctionGetAuctions
FunctionAuctionGetAuctionsCount
FunctionAuctionGetAuctionsPage
FunctionAuctionGetAuctionsPageCount
FunctionAuctionGetAuctionState
FunctionAuctionGetProperties
FunctionAuctionIsCreationInProgress
FunctionAuctionIsSearchInProgress
FunctionAuctionIsSearchNameValid
FunctionAuctionSearch

CategoryLuaApi CategoryFunction CategoryAuction

На главную