Sells item

From Kolmafia
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()