/** @param {NS} ns */ // script to be run after each augment to recover hack level and money // 1. run scan.js, backdoor n00dles and foodnstuff // 2. run this script, starts hacking those servers // 3. once you have 200k, go to aevum, then run alain/casino.js // 3a. go to tech store, buy darkweb, connect darkweb, buy -a // 4. run scan.js, update targets.js with any extra servers you can backdoor, make sure you do backdoor them with the links in scan's output // 5. run purchase.js, update with higher ram allowance (32>2048) if you have enough money // * run delete-pserv.js if there's an issue with buying the servers // 6. run init.js, this will boot up stockmaster and stats, as well as starting the hack scripts running across all pservs and home export async function main(ns) { const scripts = [ {name: "/alain/stats.js", args:[]}, // {name: "/alain/stockmaster.js", args:[]}, // {name: "/pserv.js", args:[]}, {name: "/local.js", args:[]}, ]; for(const {name,args,waitFor=false} of scripts) { const pid = ns.run(name,1,...args); if(pid) { ns.tprint(`Started ${name} with [${args}]`); if(waitFor) { ns.tprint("Waiting for it to exit..."); await awaitByPid(ns,pid); } } else ns.tprint(`ERROR: Failed to start ${name} with ${args}!`); await ns.sleep(100); } }