2018-12-04 02:20:58 +01:00
|
|
|
.. _netscriptfunctions:
|
|
|
|
|
2018-01-09 21:48:06 +01:00
|
|
|
Netscript Basic Functions
|
|
|
|
=========================
|
|
|
|
|
2021-12-19 06:43:58 +01:00
|
|
|
This page contains a subset of functions that are available in Bitburner.
|
2022-10-19 18:24:18 +02:00
|
|
|
For the complete list see https://github.com/bitburner-official/bitburner-src/tree/dev/markdown
|
2018-01-09 21:48:06 +01:00
|
|
|
This includes information such as function signatures, what they do, and their return values.
|
|
|
|
|
2019-03-03 04:08:54 +01:00
|
|
|
.. toctree::
|
|
|
|
:caption: Functions:
|
|
|
|
|
|
|
|
hack() <basicfunctions/hack>
|
|
|
|
grow() <basicfunctions/grow>
|
|
|
|
weaken() <basicfunctions/weaken>
|
|
|
|
sleep() <basicfunctions/sleep>
|
|
|
|
print() <basicfunctions/print>
|
|
|
|
tprint() <basicfunctions/tprint>
|
2023-01-30 20:42:46 +01:00
|
|
|
tFormat() <basicfunctions/tFormat>
|
|
|
|
nFormat() <basicfunctions/nFormat>
|
2023-02-24 13:10:57 +01:00
|
|
|
formatNumber() <basicfunctions/formatNumber>
|
|
|
|
formatPercent() <basicfunctions/formatPercent>
|
|
|
|
formatRam() <basicfunctions/formatRam>
|
2019-03-03 04:08:54 +01:00
|
|
|
disableLog() <basicfunctions/disableLog>
|
|
|
|
enableLog() <basicfunctions/enableLog>
|
|
|
|
isLogEnabled() <basicfunctions/isLogEnabled>
|
2023-01-30 20:42:46 +01:00
|
|
|
clearLog() <basicfunctions/clearLog>
|
|
|
|
tail() <basicfunctions/tail>
|
|
|
|
closeTail() <basicfunctions/closeTail>
|
|
|
|
moveTail() <basicfunctions/moveTail>
|
|
|
|
resizeTail() <basicfunctions/resizeTail>
|
2019-03-03 04:08:54 +01:00
|
|
|
scan() <basicfunctions/scan>
|
|
|
|
nuke() <basicfunctions/nuke>
|
|
|
|
brutessh() <basicfunctions/brutessh>
|
|
|
|
ftpcrack() <basicfunctions/ftpcrack>
|
|
|
|
relaysmtp() <basicfunctions/relaysmtp>
|
|
|
|
httpworm() <basicfunctions/httpworm>
|
|
|
|
sqlinject() <basicfunctions/sqlinject>
|
|
|
|
run() <basicfunctions/run>
|
|
|
|
exec() <basicfunctions/exec>
|
|
|
|
spawn() <basicfunctions/spawn>
|
|
|
|
kill() <basicfunctions/kill>
|
|
|
|
killall() <basicfunctions/killall>
|
2023-01-30 20:42:46 +01:00
|
|
|
scriptKill() <basicfunctions/scriptKill>
|
|
|
|
scriptRunning() <basicfunctions/scriptRunning>
|
2019-03-03 04:08:54 +01:00
|
|
|
scp() <basicfunctions/scp>
|
|
|
|
ls() <basicfunctions/ls>
|
|
|
|
ps() <basicfunctions/ps>
|
2023-01-30 20:42:46 +01:00
|
|
|
mv() <basicfunctions/mv>
|
2023-02-24 12:57:17 +01:00
|
|
|
rm() <basicfunctions/rm>
|
2019-03-03 04:08:54 +01:00
|
|
|
hasRootAccess() <basicfunctions/hasRootAccess>
|
2023-01-30 20:42:46 +01:00
|
|
|
getHostname() <basicfunctions/getHostname>
|
2019-03-03 04:08:54 +01:00
|
|
|
getHackingLevel() <basicfunctions/getHackingLevel>
|
|
|
|
getHackingMultipliers() <basicfunctions/getHackingMultipliers>
|
|
|
|
getHacknetMultipliers() <basicfunctions/getHacknetMultipliers>
|
|
|
|
getServerMoneyAvailable() <basicfunctions/getServerMoneyAvailable>
|
|
|
|
getServerMaxMoney() <basicfunctions/getServerMaxMoney>
|
|
|
|
getServerSecurityLevel() <basicfunctions/getServerSecurityLevel>
|
|
|
|
getServerMinSecurityLevel() <basicfunctions/getServerMinSecurityLevel>
|
|
|
|
getServerRequiredHackingLevel() <basicfunctions/getServerRequiredHackingLevel>
|
|
|
|
getServerNumPortsRequired() <basicfunctions/getServerNumPortsRequired>
|
2021-05-03 07:07:46 +02:00
|
|
|
getServerMaxRam() <basicfunctions/getServerMaxRam>
|
|
|
|
getServerUsedRam() <basicfunctions/getServerUsedRam>
|
2019-03-03 04:08:54 +01:00
|
|
|
serverExists() <basicfunctions/serverExists>
|
|
|
|
fileExists() <basicfunctions/fileExists>
|
|
|
|
isRunning() <basicfunctions/isRunning>
|
|
|
|
purchaseServer() <basicfunctions/purchaseServer>
|
|
|
|
deleteServer() <basicfunctions/deleteServer>
|
2023-01-06 13:43:09 +01:00
|
|
|
upgradePurchasedServer() <basicfunctions/upgradePurchasedServer>
|
2023-02-24 12:57:17 +01:00
|
|
|
renamePurchasedServer() <basicfunctions/renamePurchasedServer>
|
2019-03-03 04:08:54 +01:00
|
|
|
getPurchasedServers() <basicfunctions/getPurchasedServers>
|
|
|
|
getPurchasedServerLimit() <basicfunctions/getPurchasedServerLimit>
|
|
|
|
getPurchasedServerMaxRam() <basicfunctions/getPurchasedServerMaxRam>
|
2023-01-30 20:42:46 +01:00
|
|
|
getPurchasedServerCost() <basicfunctions/getPurchasedServerCost>
|
2023-01-06 13:43:09 +01:00
|
|
|
getPurchasedServerUpgradeCost() <basicfunctions/getPurchasedServerUpgradeCost>
|
2023-01-30 20:42:46 +01:00
|
|
|
getScriptRam() <basicfunctions/getScriptRam>
|
|
|
|
share() <basicfunctions/share>
|
|
|
|
getSharePower() <basicfunctions/getSharePower>
|