2019-03-03 04:08:54 +01:00
|
|
|
getScriptIncome() Netscript Function
|
|
|
|
====================================
|
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
.. js:function:: getScriptIncome([scriptname[, hostname/ip[, [args...]]])
|
2019-03-03 04:08:54 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
:RAM cost: 0.1 GB
|
2019-03-03 04:08:54 +01:00
|
|
|
: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
|
2021-03-12 08:51:56 +01:00
|
|
|
:returns: Amount of income the specified script generates while online.
|
2019-03-03 04:08:54 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
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.
|
2019-03-03 04:08:54 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
.. note:: A script is uniquely identified by both its name and its
|
2021-07-02 23:27:59 +02:00
|
|
|
arguments.
|