additional function, needed to merge arrays.įor(var i=0 i ns.getPurchasedServerCost(ram)) Įlse if (ns. It will buy servers, find all accessible servers, open ports, nuke, find target server, hack, grow and weak servers. Anything lower than 20ms will not work due to javascript limitations.Here is simple script, that can be started in any moment of the game. You can utilize batches to prepare a server by using no hack threads during preparation.ĭepending on your computer’s performance as well as a few other factors, the necessary delay between script execution times may range between 20ms and 200ms, you want to fine-tune this value to be as low as possible while also avoiding your scripts finishing out of order. The following is an image demonstrating batches in action:īatches only function predictably when the target server is at minimum security and maximum money, so your script must also handle preparing a server for your batches. It is possible to create batches with 3 scripts (HGW) but the efficiency of grow will be harmed by the security increase caused by the hack scripts. Now I tried a few different ways of using the functions without and with the ns.getPlayer ().mults stats but I couldn´t get it to work properly. This is the reason for the delay in the scripts. I´m trying to determine the best skill to train by using the calculateExp function in combination with the Gymgains funtion to calculate in which skill I may get the next Level fastest. It is also important that these 4 scripts finish in the order specified above, and all of their effects be precalculated to optimize the ratios between them. A weaken script counters the security increase caused by the grow script.The specified amount is multiplicative and is in decimal form, not percentage. This function returns the number of growths needed in order to increase the amount of money available on the specified server by the specified amount. A grow script counters the money decrease caused by the hack script. bitburner-official Overview Repositories Projects Packages People Popular repositories bitburner-src Public Bitburner source code. The amount of grow () calls needed to grow the specified server by the specified amount.A weaken script counters the security increase of the hack script.A hack script removes a predefined, precalculated amount of money from the target server.Weaken should occur when security is not at a minimum due to a hack or grow increasing it. Each script is tasked with choosing which function to execute based on the status of the target server. Grow should finish when security is minimum, shortly after a hack occurred. Extremely RAM inefficient Utilizes script online time poorly Risk of over hacking Self-contained algorithms are the simplest family of hacking algorithms to implement. Hack should finish when security is minimum and money is maximum. The effects of hack, grow, and weaken, are determined when the time is completed, rather than at the beginning. You only want these effects to start when the security level is minimized.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |