Buy

From Kolmafia
Revision as of 23:41, 1 March 2010 by imported>StDoodle
Jump to navigation Jump to search



Function Syntax

boolean buy(int qty ,item it )

int buy(int qty ,item it ,int price )

  • qty is the number to purchase
  • it is the item to purchase
  • price is the (optional) maximum price to spend per item

Buys stuff.

Code Sample

Buy a broken skull.

buy(1 , $item[broken skull]);

CLI Equivalent

The CLI commands "buy" and "acquire" work similarly.

See Also

use()