RestockHandle

Methods
3
Fields
None

Getting one

grandExchange:newRestock(…)

Methods

MethodReturnsDescription
run()(RunStatus, string?)Advance the restock one step: open the Grand Exchange, place an offer for each row (the guide price plus 15%), wait for it, and collect it…
step()RestockStepThe step it is on, for a status line.
reset()()Forget the run and start the same list again from its first row, buying it all again.

Returned by

MethodReturnsDescription
GrandExchange.newRestockRestockHandleA restock of items: each row bought on the Grand Exchange and collected to the bank. The list is fixed here, and a row without an item id…

Method details

run

run: (RestockHandle) -> (RunStatus, string?)

Advance the restock one step: open the Grand Exchange, place an offer for each row (the guide price plus 15%), wait for it, and collect it to the bank.

local status, reason = restock:run()
Returns
"done" when every row has been bought or skipped: an offer the coins known to be held cannot pay for, or that the item's buy limit would refuse, is skipped and counts as finished, so read the bank to see what arrived. "running" when it acted or is waiting on an offer. "blocked" with the reason when no Grand Exchange is in range.

reset

reset: (RestockHandle) -> ()

Forget the run and start the same list again from its first row, buying it all again.