Netscript DocumentationΒΆ
Netscript is the programming language used in the world of Bitburner.
When you write scripts in Bitburner, they are written in the Netscript language. Netscript is simply a tiny subset of Javascript. This means that Netscript's syntax is almost idental to Javascript's, but it does not implement many of the features that Javascript has.
If you have any requests or suggestions to improve the Netscript language, feel free to reach out to the developer!
- Data Types and Variables
- Operators
- Loops and Conditionals
- Script Arguments
- Basic Functions
- hack
- grow
- weaken
- sleep
- tprint
- scan
- nuke
- brutessh
- ftpcrack
- relaysmtp
- httpworm
- sqlinject
- run
- exec
- spawn
- kill
- killall
- exit
- scp
- ls
- hasRootAccess
- getHostname
- getHackingLevel
- getHackingMultipliers
- getServerMoneyAvailable
- getServerMaxMoney
- getServerGrowth
- getServerSecurityLevel
- getServerBaseSecurityLevel
- getServerMinSecurityLevel
- getServerRequiredHackingLevel
- getServerNumPortsRequired
- getServerRam
- serverExists
- fileExists
- isRunning
- getNextHacknetNodeCost
- purchaseHacknetNode
- purchaseServer
- deleteServer
- getPurchasedServers
- round
- write
- read
- clear
- scriptRunning
- scriptKill
- getScriptRam
- getHackTime
- getGrowTime
- getWeakenTime
- getScriptIncome
- getScriptExpGain
- getTimeSinceLastAug
- sprintf
- vsprintf
- prompt
- Advanced Functions
- Hacknet Node API
- Trade Information eXchange (TIX) API
- Singularity Functions
- universityCourse
- gymWorkout
- travelToCity
- purchaseTor
- purchaseProgram
- getStats
- isBusy
- stopAction
- upgradeHomeRam
- getUpgradeHomeRamCost
- workForCompany
- applyToCompany
- getCompanyRep
- checkFactionInvitations
- joinFaction
- workForFaction
- getFactionRep
- createProgram
- commitCrime
- getCrimeChance
- getOwnedAugmentations
- getAugmentationsFromFaction
- getAugmentationCost
- purchaseAugmentation
- installAugmentations