User Tools

Site Tools


eliteapi:functions:trademenu:settradeitem

SetTradeItem

Sets a trade item.

ELITEAPI_API bool __stdcall SetTradeItem(void* apiObject, int index, unsigned short itemId, unsigned char itemIndex, unsigned char itemCount);

Parameters

  • apiObject [in]
    • A handle to an EliteAPI object.
  • index [in]
    • The index of the trade item in the trade menu.
  • itemId [in]
    • The item id to trade.
  • itemIndex [in]
    • The index of the item in the players inventory to trade.
  • itemCount [in]
    • The amount of the item to trade.

Return Value

True on success, false otherwise.

eliteapi/functions/trademenu/settradeitem.txt · Last modified: 2014/12/08 02:28 (external edit)