From 40843e35434d56e883655e4377994ac76746b184 Mon Sep 17 00:00:00 2001 From: AlmightyMiau Date: Wed, 13 Nov 2024 10:56:53 -0800 Subject: Organized scripts into folders --- misc/threads.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 misc/threads.js (limited to 'misc/threads.js') diff --git a/misc/threads.js b/misc/threads.js new file mode 100644 index 0000000..51729fe --- /dev/null +++ b/misc/threads.js @@ -0,0 +1,13 @@ +/** @param {NS} ns */ +export async function main(ns) { + //const call = ns.args[0]; + const call = "hack"; + const server = ns.args[0]; + // if (ns.args[0] === undefined || ns.args[1] === undefined || ns.args[0] == "help") { + // ns.tprint("1st arg is the call type; ie. hack, weaken, or grow\n2nd arg is the server name"); + // } + + if (call == "hack") { + ns.tprint(ns.hackAnalyzeThreads(server, ns.getServerMoneyAvailable(server))); + } +} \ No newline at end of file -- cgit v1.2.3