mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-14 11:43:50 +01:00
ae15914efa
Unfortunately, I haven't used most of the specialty APIs yet, so I'm not intimately familiar with where their documentation might be wrong. I figured some fixes were better than no fixes, and I can always make more fixes later. Fixes #1023.
20 lines
867 B
ReStructuredText
20 lines
867 B
ReStructuredText
getScriptIncome() Netscript Function
|
|
====================================
|
|
|
|
.. js:function:: getScriptIncome([scriptname[, hostname/ip[, [args...]]])
|
|
|
|
:RAM cost: 0.1 GB
|
|
:param string scriptname: Filename of script
|
|
:param string hostname/ip: Server on which script is running
|
|
:param args...: Arguments that the script is running with
|
|
:returns: Amount of income the specified script generates while online.
|
|
|
|
If called with no arguments this function will return an array of two
|
|
values. The first value is the total income ($ / second) of all of your
|
|
active scripts (scripts that are currently running on any server). The
|
|
second value is the total income ($ / second) that you've earned from
|
|
scripts since you last installed Augmentations.
|
|
|
|
.. note:: A script is uniquely identified by both its name and its
|
|
arguments.
|