Interface RunningScript

interface RunningScript {
    args: ScriptArg[];
    filename: string;
    logs: string[];
    offlineExpGained: number;
    offlineMoneyMade: number;
    offlineRunningTime: number;
    onlineExpGained: number;
    onlineMoneyMade: number;
    onlineRunningTime: number;
    pid: number;
    ramUsage: number;
    server: string;
    tailProperties: null | TailProperties;
    temporary: boolean;
    threads: number;
    title: string | ReactElement;
}

Hierarchy (view full)

Properties

args: ScriptArg[]

Arguments the script was called with

filename: string

Filename of the script

logs: string[]

Script logs as an array. The newest log entries are at the bottom. Timestamps, if enabled, are placed inside [brackets] at the start of each line.

offlineExpGained: number

Total amount of hacking experience earned from this script when offline

offlineMoneyMade: number

Total amount of money made by this script when offline

offlineRunningTime: number

Number of seconds that the script has been running offline

onlineExpGained: number

Total amount of hacking experience earned from this script when online

onlineMoneyMade: number

Total amount of money made by this script when online

onlineRunningTime: number

Number of seconds that this script has been running online

pid: number

Process ID. Must be an integer

ramUsage: number

How much RAM this script uses for ONE thread

server: string

Hostname of the server on which this script runs

tailProperties: null | TailProperties

Properties of the tail window, or null if it is not shown

temporary: boolean

Whether this RunningScript is excluded from saves

threads: number

Number of threads that this script runs with

title: string | ReactElement

The title, as shown in the script's log box. Defaults to the name + args, but can be changed by the user. If it is set to a React element (only by the user), that will not be persisted, and will be restored to default on load.