Sync for Serverlist

This commit is contained in:
Philipp
2024-10-13 11:05:27 +02:00
parent c975dfbe51
commit 7d0a0dc2b8
2 changed files with 68 additions and 3 deletions

20
Ramses/home/WorkerList.js Normal file
View File

@@ -0,0 +1,20 @@
import { listWorkServers } from "/Library.js";
/** @param {NS} ns */
export async function main(ns) {
ns.disableLog("ALL");
ns.tail();
ns.resizeTail(522,625);
let nStatus = 0;
let aStatus = ["─", "╲", "│", ""];
let bWhile = true;
while (bWhile !== false) {
ns.clearLog();
bWhile = listWorkServers(ns);
//ns.printRaw(aStatus[nStatus])
ns.setTitle(`WorkerList ${aStatus[nStatus]}`);
nStatus++;
if (nStatus > 3) nStatus = 0;
await ns.sleep(1050);
}
}