Sells item

From Kolmafia
Revision as of 22:24, 21 January 2015 by imported>Eliteofdelete
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

boolean sells_item(coinmaster master ,item it )

  • master is the coinmaster to query
  • it is the item to query

Returns true if master will sell it.

Code Samples

The following example looks through each item in your inventory and tells you if a coinmaster sells it.

int[item] stuff = get_inventory();
foreach master in $coinmasters[]
   foreach it in stuff
      if (sells_item(master, it))
         print(""+master+" sells "+it+" which you currently have "+stuff[it]+" of.", "blue");

See Also

sell() | sell_price()