- qty is the number to purchase
- it is the item to purchase
- price is the (optional) maximum price to spend per item
Using meat in Hangk's Storage the function attempts to mall purchase qty amount of item it. If qty is less than 1, the function will not purchase anything.
If the optional maximum price is specified, it returns the integer amount of items purchased; otherwise it returns true if the purchase succeeded and false if it did not. If a price less than 1 is passed, the function will always buy qty, regardless of price.
The version that returns a boolean value determine success depending on whether your inventory of the desired item went up by the amount you tried to buy. If qty is less than 1, the function will always return true.
Pull a quantity of a given item from storage, even if you are in ronin and don't have it in storage.
The CLI commands "buy" and "acquire" will purchase items if you are not in ronin or hardcore.