Skip to content
Riot Bits

Riot Bits

  • Home
  • News
  • Guides
  • Video Guides
  • Patch Notes
  • Report Abuse
  • Toggle search form

Bitburner – Early Hacknet Auto Management Script

Posted on 12/28/2021 By Bloodly Hell Cat~ No Comments on Bitburner – Early Hacknet Auto Management Script
  • Title: Bitburner
  • Release Date:
  • Developer:
  • Publisher:
Information about Bitburner is still incomplete. Please help us fill the details of the game using this contact form.

This script will buy new nodes or upgrade your current nodes depending on which you can afford.

Create a Script

  • nano WhateverTheNameIs.js

Script Code

/** @param {NS} ns **/
export async function main(ns) {
	while (true) {
		for (var i = 0; i < await ns.hacknet.numNodes(); i++) { if (await ns.getPlayer().money > await ns.hacknet.getLevelUpgradeCost(i, 1)) {
				await ns.hacknet.upgradeLevel(i, 1);
			}
			if (await ns.getPlayer().money > await ns.hacknet.getRamUpgradeCost(i, 1)) {
				await ns.hacknet.upgradeRam(i, 1);
			}
			if (await ns.getPlayer().money > await ns.hacknet.getCoreUpgradeCost(i, 1)) {
				await ns.hacknet.upgradeCore(i, 1);
			}
		}
		if (await ns.getPlayer().money > await ns.hacknet.getPurchaseNodeCost()) {
			await ns.hacknet.purchaseNode();
		}
		await ns.sleep(1000);
	}
}

Run the Script

  • Run WhateverTheNameIs.js

Better run it on your “home” machine.

That's everything we are sharing today for this Bitburner guide. This guide was originally created and written by Bloodly Hell Cat~. In case we fail to update this guide, you can find the latest update by following this link.

If you believe that any of the content on this site violates your rights, including your intellectual property rights, please contact us immediately using our contact form.
Guides Tags:Bitburner

Post navigation

Previous Post: Kingdoms of Amalur: Re-Reckoning – Item Duplication With Merchants
Next Post: Space Pirates and Zombies 2 – Zombie Maps Walkthrough

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Title: Bitburner
  • Release Date:
  • Developer:
  • Publisher:
Information about Bitburner is still incomplete. Please help us fill the details of the game using this contact form.

Disclaimer

All content cited is derived from their respective sources. If you think we have used your content without permission, make sure to reach us and we will be taking it seriously.
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms of Service

Copyright © 2025 Riot Bits.

Powered by PressBook News WordPress theme