Code Monkey home page Code Monkey logo

bitburner-scripts's Introduction

Bitburner scripts

My scripts for the incremental game Bitburner. Feel free to use however you like.

I use ns2 Netscript. So far I’ve stuck to the standard functions that are available from the very beginning of the game, but that may change as the scripts continue to evolve.

What’s here?

In general, this repository contains a note, a Netscript library, a number of scripts.

The note

gone-to.txt contains advice for starting fresh after installing augmentations.

The library

library.js is a place for me to put functions for commonly-used tasks. In the past I didn’t bother copying it to other servers, so it currently only has one function:

  • formatNumber(), which makes a large number human-readable by reducing it to something like ###.##, with a postfix. For example, 6875000000 would become 6.88b.

To import a function into a script, begin the latter with:

import {formatNumber} from './library.js';

The scripts

All of these scripts will describe their expected usages when help is used as the first argument.

  • what-about.js: Lists information about 1 or more servers, including NUKE-ability, money capacity, server growth, security level, and RAM usage.
  • do-nuke.js: NUKEs 1 or more servers, after first opening the necessary ports.
  • weaken.js: Continuously weakens a server’s security level. By default, it stops at the server’s minimum security level + 10, but you can specify otherwise.
  • grow-n-hack.js: Grows the amount of money on a server a maximum of 10 times before hacking. The grow loop cuts out early if the server reaches its maximum amount of money. If weaken.js is available, this script will try to run it if the security level gets 15 above the minimum.
  • hack-it.js: Continuously hacks a server in set intervals. If weaken.js is available, this script will try to run it if the security level gets 15 above the minimum.
  • hack-me.js: Continuously hacks the server this script is running on, in set intervals. This is an extremely pared-down script that does not test the server’s security levels. As a result, it can be run on n00dles with 2 threads, for 3.70GB RAM.
  • copy-scripts-to.js: Copies 1 or more scripts from the current server to another. Useful since Bitburner’s scp terminal command doesn’t move multiple files at once. If no filenames are given in the program arguments, the scripts I use most often are copied over.
  • start-again.js: Begin hacking low-level servers and buying Hacknet nodes. Intended to be run after installing augmentations.
  • get-path-to.js: Finds a quick route from the current server to a given destination, taking backdoors into account.
  • establish-cohort.js: NUKEs, weakens, and starts running scripts on a group of servers.

My aliases

alias exit="home"
alias what-about="run what-about.js"
alias path-to="run get-path-to.js"
alias establish="run establish-cohort.js"
alias -g first-cohort="n00dles sigma-cosmetics joesguns nectar-net hong-fang-tea harakiri-sushi"
alias -g waypoints="CSEC avmnite-02h I.I.I.I run4theh111z"

bitburner-scripts's People

Contributors

amclark42 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.