Skip to content

Instantly share code, notes, and snippets.

View AdiaLandfall's full-sized avatar

Adia Landfall AdiaLandfall

View GitHub Profile
@AdiaLandfall
AdiaLandfall / early-template.js
Created May 19, 2025 23:07
My weird "random" script
/** @param {NS} ns */
export async function main(ns) {
// Defines the "target server", which is the server
// that we're going to hack. In this case, it's "n00dles",
// then "joesguns", then "phantasy", then "rho-construction"
const target = "phantasy";
// Defines how much money a server should have before we hack it
// In this case, it is set to the maximum amount of money.
const moneyThresh = ns.getServerMaxMoney(target);