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
- Download initial script
wget "https://raw.githubusercontent.com/MinchaoZhu/bitburner-script/main/scripts/wget.js" wget.js
- Download all scripts
run wget.ns
- 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
nuke
Auto-nuke all servers continuously according your hacking level and owned xxx.exe
hackRand
The server running it will randomly hacking all nuked servers continuously.
Attention: will c.ns"ume all memory
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
boom
On all purchased servers, hackRand is runned. That me.ns" all purchased servers will help you to hack money
stock
Auto trade stocks.
stopStock
Stop auto trading but no stock share will be sold.
soldStock
Stop auto trading and all stock shares will be sold.
money
Print your cash and stock value.
info <host>
Print host info
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.
copyScripts
Copy scripts folder to all purchased servers.
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