Buy

From Kolmafia
Revision as of 23:37, 1 March 2010 by imported>StDoodle (Created page with '{{#vardefine:name|buy}} {{#vardefine:return_type|boolean}} {{FunctionPage| name={{#var:name}}| function_category=CATEGORY| function1={{Function| name={{#var:name}}| aggregate={…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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()