Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
component:trading [2018/10/01 09:16]
payonel
component:trading [2018/10/01 21:56] (current)
payonel
Line 21: Line 21:
 - `getOutput():​table`  ​ - `getOutput():​table`  ​
   Returns the item the merchant offers for this trade.   Returns the item the merchant offers for this trade.
-- `getSortIndex():​number` ​  +- `getMerchantId():​number` ​  
-  Returns ​a sort index of the merchant that provides this trade. Trades can be grouped by the merchant offering them using this sort index. The index is the sort order placement of a merchant in the list of available merchants ​offering trades within range. Because it is merely a sort index, it can change between calls to getTrades if merchants leave or enter the range, or any previous merchant stops offering any trades+  Returns ​the id of the merchant that provides this trade. Trades can be grouped by the merchant offering them using this id. The id is created when you call getTrades(),​ but is consistent as long as the group of available merchants ​does not change between calls. ​
  
 ---- ----
  
 {{page>​component:​contents&​noheader&​noeditbutton&​nouser&​nofooter}} {{page>​component:​contents&​noheader&​noeditbutton&​nouser&​nofooter}}