
If the existing servers are already at the maximum RAM capacity or have more RAM than what will be created, it will not delete them. Clicking No on this prompt will kill the script. If the number of servers you request is more than the number of server slots available, it will ask to delete old servers with the smallest RAM until enough slots are open to create the requested number of servers. Therefore requesting a lower amount of servers will yield more RAM per server, whereas requesting a higher amount of servers will yield less RAM per server. The RAM purchased for each server is calculated based on the number of servers requested and will be the highest amount you can currently afford. Purchases the number of servers passed in.
#Javascript ide with bitburner api upgrade#
If purchasing an upgrade is better, it will then determine which type of upgrade is best for each server and purchase upgrades accordingly.

The script will calculate whether or not buying a server or purchasing an upgrade has a better return on investment.

Purchases the number of requested hacknet nodes and upgrades based on a percentage of your current money. Note that all of the scripts listed require that you are using ns2 instead of ns1 hacknet-upgrades.jsĬredit to u/boz987 on Reddit for return on investment math Listed below is the name of each available script and a short description of what it does. A collection of scripts written for the game Bitburner.
