tayacommunications.blogg.se

Javascript ide with bitburner api
Javascript ide with bitburner api








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.

  • maxNodes: The maximum number of nodes you want to purchase and upgrade.
  • There are currently no checks in place to see if you are outside the bounds of what is feasible so passing in zero, a negative number, or a number greater than 100, will result in the script not working as intended. The percentage is converted to a decimal for the calculations.
  • pct: The percentage of your money you want to use as a threshold for buying nodes and upgrades.
  • #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.

    javascript ide with bitburner api

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

    javascript ide with bitburner api

    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.








    Javascript ide with bitburner api