No description
  • JavaScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-09-11 08:19:57 -05:00
src Update mainHack.js 2024-09-11 08:19:57 -05:00
.editorconfig Converted from deprecated '.ns' format to new '.js' file extensions. 2022-07-15 01:42:27 -05:00
.gitignore Added gitignore 2022-07-15 12:04:56 -05:00
LICENSE Complete revamp 2021-03-11 23:30:39 +01:00
README.md Converted from deprecated '.ns' format to new '.js' file extensions. 2022-07-15 01:42:27 -05:00

Bitburner scripts collection

Welcome to my log of Bitburner scripts. They are written using the in-game language of NetscriptJS, which is a mutation of Javascript.

If you want to play the game itself - click on the name above.

Requirements

The script has been modified to be able to start on 8 GB (the default starting RAM for a player) on the home server. Obviously, when you expand the memory available, you'll get extra perks - being able to buy and manage player-owned servers, as well as using spare RAM to do actions.

The script can be slow to get going, but it'll get there eventually. Getting access to more port hackers will improve the performance.

Instalation

  1. Create a new script called start.js by issuing the following command: nano start.js. Make sure you're on your home server if you're not (you can quickly go home by running home in the console).
  2. Paste the following content:
export async function main(ns) {
  if (ns.getHostname() !== "home") {
    throw new Exception("Run the script from home");
  }

  await ns.wget(
    `https://raw.githubusercontent.com/moriakaice/bitburner/master/src/initHacking.js?ts=${new Date().getTime()}`,
    "initHacking.js"
  );
  ns.spawn("initHacking.js", 1);
}
  1. Exit the nano and write in console: run start.js