Script di gestione automatica iniziale di Hacknet.
Script di gestione automatica iniziale di Hacknet
NOTA: questo script acquisterà nuovi nodi o aggiornerà i tuoi attuali nodi a seconda di quale puoi permetterti.
Crea uno script:
nano WhateverTheNameIs.js
Copia oltre il codice:
/** @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); } }
Esegui lo script:
run WhateverTheNameIs.js
NOTA: è meglio eseguirlo sul tuo computer "domestico".
screenshot del codice:
Altre guide:
- Bitburner: automazione per nodi Hacknet
- Bitburner: Script di calcolo del tempo (come ottenere il tempo)
- Bitburner: script di gestione delle gang di combattimento (completamente automatico)
- Bitburner: come aggiungere statistiche personalizzate all'HUD (Heads up Display)
- Bitburner: Guida al gioco in anticipo (senza spoiler)