Buy
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