This entire repo is provided as-is, and since I'm using typescript, you can't just copypaste into the game and expect it to work, sadly. Still, here is my "short guide" on how to use these.
- Make sure you have typescript installed!
- Clone the repo
- run
tsc
(the typescript compiler) in the repo root folder - open the
dist
folder that was just created. These are the compiled javascript files. - get them into the game however you want.
You will also need the so called "payload" scripts:
/** @param {NS} ns */
export async function main(ns) {
const target = ns.args[0];
const threads = ns.args[1];
const delay = ns.args[2];
if (delay && delay > 0) {
await ns.asleep(delay);
}
await ns.weaken(target, { threads: threads });
}
/** @param {NS} ns */
export async function main(ns) {
const target = ns.args[0];
const threads = ns.args[1];
const delay = ns.args[2];
if (delay && delay > 0) {
await ns.asleep(delay);
}
await ns.grow(target, { threads: threads });
}
/** @param {NS} ns */
export async function main(ns) {
const target = ns.args[0];
const threads = ns.args[1];
const delay = ns.args[2];
if (delay && delay > 0) {
await ns.asleep(delay);
}
await ns.hack(target, { threads: threads });
}
will start the controller. This does pretty much everything automatically, including rooting new machines, finding targets, preparing them for HWGW and finally HWGW attacks.
perfect for "I just installed augments, whats next?". Will root new machines etc and then get a lot of XP from poor "joesguns".
Plan will show you some suggestions on how to spend your money. buy takes ram size in and buys the most it can of that size. delete takes ram size in and deletes all servers with that ram size.