helpers.hack weaken grow - vladzaharia/bitburner GitHub Wiki
▸ main(ns): Promise<void>
run /helpers/a serial hack/weaken/grow script via the Terminal.
deprecated Serial HWG has been replaced with /node/ps-control-scheduler.js as the recommended way to run HWG.
export
example Run HWG on a single passed in host.
run /helpers/hack-weaken-grow.js [host0]example Run HWG on multiple passed in hosts.
run /helpers/hack-weaken-grow.js [host0] ... [hostn]| Name | Type | Description |
|---|---|---|
ns |
NS |
The Netscript object. |
Promise<void>
helpers/hack-weaken-grow.ts:31
▸ hackWeakenGrow(ns, hostname): Promise<number>
Run serial HWG on given hostname.
export
async
deprecated Serial HWG is not recommended. Please use a parallelized HWG with thread count percentages instead.
| Name | Type | Description |
|---|---|---|
ns |
NS |
The Netscript object. |
hostname |
string |
The hostname to run HWG on. |
Promise<number>
The amount of money hacked, minus any growth action taken.