/bitburner-script

bitburner-script

Primary LanguageJavaScriptMIT LicenseMIT

bitburner-script

bitburner-script

structures

  • scripts

    |-- auto # auto run script, daemon scripts

    |-- batchHack # batch hack relative

    |-- exec # one-time run script

    |-- stock # stock relative

    |-- utils # helper utils

Usage

In game's terminal

Init

  1. Download initial script
wget "https://raw.githubusercontent.com/MinchaoZhu/bitburner-script/main/scripts/wget.js" wget.js
  1. Download all scripts
run wget.ns
  1. alias
alias nuke="run /scripts/auto/Nuke.js";

alias hackRand="run /scripts/auto/HackRand.js";

alias boom="run /scripts/remote/HackRand.js";

alias autoBuy="run /scripts/auto/BuyServers.js";

alias stock="run /scripts/auto/tradeStocks.js";

alias stopStock="run /scripts/auto/stopTrade.js";

alias soldStock="run /scripts/auto/stopTradeAndSold.js";

alias money="run /scripts/exec/allMoney.js";

alias hackOne="run /scripts/auto/Hack.js";

alias preBatch="run /scripts/remote/PreBatch.js";

alias copyScripts="run /scripts/remote/CopyScripts.js";

alias info="run /scripts/exec/Info.js";

alias BatchHack="run /scripts/batch_hack/Start.js";

Commands

  1. nuke

Auto-nuke all servers continuously according your hacking level and owned xxx.exe

  1. hackRand

The server running it will randomly hacking all nuked servers continuously.

Attention: will c.ns"ume all memory

  1. autoBuy <targetRam>

Continuously auto-buy and upgrade purchased servers util all purchased servers' ram reachs targetRam. The server name in format

server-{ram}-{index}

ram is 128, 512, 1024, ...

index is 0, 1, 2, ..., 24

  1. boom

On all purchased servers, hackRand is runned. That me.ns" all purchased servers will help you to hack money

  1. stock

Auto trade stocks.

  1. stopStock

Stop auto trading but no stock share will be sold.

  1. soldStock

Stop auto trading and all stock shares will be sold.

  1. money

Print your cash and stock value.

  1. info <host>

Print host info

  1. preBatch

Weaken and grow all hackable servers util they are in min sercurity level and max money. The working scripts are running on purchased server.

  1. copyScripts

Copy scripts folder to all purchased servers.

  1. batchHack <start|stop> <1|home|all>

Start or stop batch hack on purchased server or home or all servers.

1: on only purchased servers

home: on only home server

all: on both home and purchased servers