getScriptExpGain() Netscript Function¶
getScriptExpGain([scriptname][, hostname/ip][, args...])¶
- scriptname (string) – Filename of script
- hostname/ip (string) – Server on which script is running
- args... – Arguments that the script is running with
Returns the amount of hacking experience the specified script generates while online (when the game is open, does not apply for offline experience gains). Remember that a script is uniquely identified by both its name and its arguments.
This function can also return the total experience gain rate of all of your active scripts by running the function with no arguments.