It is one upgrade per run but the desired size can be set by you with an argument OR will be assumed to just double the current size of the servers. It is similar to yours in that it loops over all the servers and tries to upgrade them to a new size. I know you already fixed up your own script but I wanted to add mine into the mix. Hostname = purchaseServer("Serv" + GB + "gb", GB) Sets an array of your current servers. Tprint("Not enough money to be worth it") You have to subtract 1 from the power since the last value checked in the while loop was too large This while loop runs until you've reached a power that will make your servers cost The price of the server is determined first by multiplying 2^power * 1375000 (25 servers * 55000 ) power is used to calculate how much ram to buy. The first one will be ServGB, the next is ServGB-0, then ServGB-1, etc up to ServGB-23. The one thing I'd like to change but haven't had a chance to do yet is the name of the servers. I have it set so that it won't buy anything less then 64GB because anything less then that seems like a waste of money to me. It will use up all of your money doing this (you can change this by multiplying money by whatever percentage you want). It then deletes any of the old servers you have and buys your new ones. It automatically calculates how much max ram you can afford for all 25 servers based on how much money you have. Click this to get the job.This is the scrip that I use. At Joe's Guns, there will be an option that saysĪpply to be an Employee. Go to the City tab on the left-hand navigation menu and then go to This will not be nearly as profitable as crimes, but it’s completely passive. That’s much more passive: working for a company. If you don’t want to constantly check in on the game to commit crimes, there’s another option To run this script, go to Terminal and type: Our script onto that new server, and then it uses the exec() function to Whenever the script purchases a new server, it uses the scp() function to copy This is then used to check if you can afford to purchase a server. GetServerMoneyAvailable("home") to get the amount of money you currently have. Each of these servers will haveĨGB of RAM, as defined in the ram variable. This code uses a while loop to purchase the maximum amount of servers using the exe program, use it to open the SSH Port // on the target server if ( fileExists ( "BruteSSH.exe", "home" )) If the target 's security level is higher than this, // we 'll weaken it before doing anything else var securityThresh = getServerMinSecurityLevel ( target ) + 5 // If we have the BruteSSH. In this case, it' s "n00dles" var target = "n00dles" // Defines how much money a server should have before we hack it // In this case, it is set to 75 % of the server 's max money var moneyThresh = getServerMaxMoney ( target ) * 0.75 // Defines the maximum security level the target server can // have. Defines the "target server", which is the server // that we 're going to hack. Going to Terminal and entering the following two commands: Go to your home computer and then create a script called early-hack-template.script by Now let’s move on to actually creating the script. Used to decrease a server’s security level. The amount of money available on a server. The grow() Netscript function is used to increase Server steals a percentage of that server’s money. Each server also has aĬertain amount of money, as well as a maximum amount of money it can hold. Security level that affects how difficult it is to hack. To briefly summarize the information from the links above: Each server has a Now, we’ll create a generic hacking script that can be used early on in the game (or throughout theīefore we write the script, here are some things you’ll want to familiarize yourself with:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |