2019-03-03 04:08:54 +01:00
|
|
|
hackAnalyzePercent() Netscript Function
|
|
|
|
=======================================
|
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
.. js:function:: hackAnalyzePercent(hostname)
|
2019-03-03 04:08:54 +01:00
|
|
|
|
|
|
|
:RAM cost: 1 GB
|
2021-03-12 08:51:56 +01:00
|
|
|
:param string hostname: Hostname of target server.
|
|
|
|
:returns: The percentage of money you will steal from the target server with
|
|
|
|
a single hack.
|
2019-03-03 04:08:54 +01:00
|
|
|
|
|
|
|
Returns the percentage of the specified server's money you will steal with a
|
2021-03-12 08:51:56 +01:00
|
|
|
single hack. This value is returned in percentage form, not decimal.
|
2019-03-03 04:08:54 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
For example, assume the following returns 1:
|
2019-03-03 04:08:54 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
.. code-block:: javascript
|
2019-03-03 04:08:54 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
hackAnalyzePercent("foodnstuff"); // returns: 1
|
|
|
|
|
|
|
|
This means that if hack the 'foodnstuff' server, then you will steal 1% of its
|
|
|
|
total money. If you :doc:`hack<hack>` using N threads, then you will steal N% of its total
|
2019-03-03 04:08:54 +01:00
|
|
|
money.
|