API GetStationSellableInventoryPriceByID

From Vendetta Lua
Revision as of 22:01, 25 January 2009 by Chefkoch (talk | contribs) (split)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

GetStationSellableInventoryPriceByID

Definition: GetStationSellableInventoryPriceByID(int itemid, int quantity) -> int value, unitprice
Description:
Get value of inventory items and price per unit in the current station
Arguments:
itemid itemid of an inventory item in the current station
quantity number of units of this item (optional)
Returns:
value value of item(s)
unitprice price per unit
Example:
<source lang="lua"> GetStationSellableInventoryPriceByID(1234, 2) -> 2000, 1400 -- Two units of item 1234 are worth 2000c. The station sells a unit for 1400c. </source>