lookijob.blogg.se

Bitburner hack level formula
Bitburner hack level formula





bitburner hack level formula

It does not need to be running on the same server to hack that server. In order to hack a server you must first gain root access to that server and also have the required hacking level.Ī script can hack a server from anywhere. The runtime for this command depends on your hacking level and the target server’s security level when this function is called. Remarksįunction that is used to try and hack servers to steal money and gain hacking experience. The amount of money stolen if the hack is successful, and zero otherwise. Optional parameters for configuring function behavior. Here is the results for my script(s) on BN1.2, and 0 augs, hitting the easier server foodnstuff.Hack ( host: string, opts?: BasicHGWOptions ): Promise Parameters Parameter Ns.exec('/newserver/weaken.script',server2,uweakenThreads,server,wsleep,i) ns.exec('/newserver/grow.script',server2,growThreads,server,gsleep,i) ns.exec('/newserver/hack.script',server2,hackThreads,server,hsleep,i) Īlso, this morning I had enough money to buy the Formulas.exe and was able to buy a single maxed out server. To be more precise: server.minSecurityLevel Math.max(1, Math.round(server.startingSecurityLevel / 3)) This means that a server’s security level will not fall below this value if you are trying to weaken () it. getHackingLevel () Netscript Function Bitburner 2.1. If((runRamTotal>= (maxRam-UsedRam))=false) A server has a minimum security level that is equal to one third of its starting security, rounded to the nearest integer. Var sleepTime = (WeakenTime/(maxRam/totalRamForRun)) It's a collection of functions meant to make some calculations for you, for example the function 'hackTime ()' tells you how long it would take to hack a specific server it's mainly used to automate things, for example if you wanted to estimate how long your scripts would have to run, stuff like that. Var totalRamForRun = (hackscriptRam*hackThreads)+(growscriptRam*growThreads)+(weakenscriptRam*weakenThreads) Var uweakenThreads = Math.round((weakenThreads - (growThreads*0.004)))

bitburner hack level formula

Var hackThreads = Math.round((50/HPercent)) Var growThreads = Math.round(((4/(GPercent-1)))) Some of the numbers in there are me just tweaking some settings to try and find a better balance. I'm not a coder and I didn't comment any of my script. Example 1 // NS1: var earnedMoney hack('foodnstuff') Example 2 // NS2: let earnedMoney await ns. A successful hack () on a server will raise that server’s security level by 0.002.

Bitburner hack level formula full#

I still haven't moved them yet as this script isn't useful on a full node restart For example, you can create a script that hacks the foodnstuff server and run that script on any server in the game. That is why you'll see that my hack, grow, and weaken scripts aren't NS2. NOTE: This was my 2nd script that I transitioned to NS2. I loaded up my game from yesterday shortly before I took the red pill for the first time to gather the proof :) So first work on getting your hacking skill up. In my game right now, it has a required hacking level of 907, which is probably too high for you. If it doesnt let you for whatever reason then a script wont do it either. Then you divide WeakTime but that value to determine how many possible iteration of your processes you can have is, and use that to determine the sleep between restarting the cycle over again.įor me it was 585ms, so I ended up with a few hundred scripts running simultaneously. Well, first try connecting to said server and doing a hack command. Then I calculated the max ram used for all scripts and threads and divided the systems max ram by that value. Weak threads are calculated based on servers minimum security level (you need less threads the higher the min security)grow threads are calculated based on 4/GrowPercent of 1 thread (trying to get 200-300% grow rate)hack thread is calculated on 50/(HackPercent*100), trying to get a hack of 50% funds so it doesn't drain it Start weakStart grow with sleep of WeakTime - GrowTimestart hack with sleep of WeakTime - HackTime Gather weaken time, grow time, hack time. Returns the amount of time in seconds it takes to execute the hack () Netscript function on the target server. To do so, you have to step through time by tapping the equation or simply let the. Defaults to player’s current hacking level. Idle Hacker This file contains bidirectional Unicode text that may be. hackLvl ( number) Optional hacking level for the calculation. I was getting 13b/s yesterday on 'the-hub' using that method. hostname/ip ( string) Hostname or IP of target server.







Bitburner hack level formula