To coinmaster

From Kolmafia
Jump to navigation Jump to search

Function Syntax

coinmaster to_coinmaster(string store )

  • store is hopefully the name of a coinmaster

Code Sample

This sells off all the Island War vendor Frat boy trash to the hippy coinmaster for dimes.

foreach trash in $items[red class ring, blue class ring, white class ring, PADL Phone]
   if(item_amount(trash) > 0)
      sell(to_coinmaster("Dimemaster"), item_amount(trash), trash);

See Also

visit() | is_accessible() | buys_item() | sells_item()