API StationSellableInventoryPairs

From Vendetta Lua
Revision as of 22:04, 25 January 2009 by Chefkoch (Talk | contribs) (split)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

StationSellableInventoryPairs

Definition: StationSellableInventoryPairs() -> int itemid table iteminfo
Description:
Iterator function that prints information about an item in the players inventory at the current station each time it is called. works like pairs()
Returns:
itemid itemid
iteminfo iteminfo
Example:

for i,v in StationSellableInventoryPairs() do console_print(i) printtable(v) end

prints the item info of every inventory item at the current station to the console