RAM Usage: 5.7GB
This script will fully automate the purchase of all Hacknet upgrades in the fastest method possible.
The fastest method is exponential returns awarded through selecting the cheapest upgrade at all times, therefore making your money work for you faster. Determine the cheapest upgrade, wait for funds, purchase, rinse and repeat.
Create ES5 Script
While inside the Bitburner Terminal create a new script by typing the following:
Example: nano hacknet_infinite.script
Note: This script requires 5.7GB of memory available
Copy the contents of the script and save into the new script file you just created.
After saving the script you can run it by typing:
Example: run hacknet_infinity.script
Under the Hood
This script iterates through all upgrade options, sets flags for the cheapest option and waits until there is enough funds to purchase.
Currently it does not utilise the quantity function, as the cheapest option is always to purchase in single units to get your money working for you faster under the pa*sive income method. This is why the variable Qty is set to 1 and not overwritten in the loop.
If you read through the Hacknet API on the official website there is an example script which uses a value of 10 when purchasing basic levels for Nodes. IMO buying single units will net you more money in the long run due to exponential returns from the smaller purchases of single levels.
P.S This is not Asynchronous as there is no benefit in multi-threading this task. No matter how many resources you have your bottleneck is bank balance. Therefore implementation through .script is not only appropriate it is optimal as it makes use of less memory intensive commands.
This is all we can share for Full Automation – Hacknet Manager for All Upgrades – Bitburner for today. I hope you enjoy the guide! If you have anything to add to this guide or we forget something please let us know via comment! We check each comment! Don’t forget to check SteamClue.com for MORE!
- All Bitburner Posts List
Leave a Reply