Options
All
  • Public
  • Public/Protected
  • All
Menu

Module helpers/hack-weaken-grow

Index

Executable

Importable

Executable

  • main(ns: NS): Promise<void>
  • run /helpers/a serial hack/weaken/grow script via the Terminal.

    deprecated

    Serial HWG has been replaced with /node/ps-control-scheduler.js as the recommended way to run HWG.

    export
    example

    Run HWG on a single passed in host.

    run /helpers/hack-weaken-grow.js [host0]
    
    example

    Run HWG on multiple passed in hosts.

    run /helpers/hack-weaken-grow.js [host0] ... [hostn]
    

    Parameters

    • ns: NS

      The Netscript object.

    Returns Promise<void>

Importable

  • hackWeakenGrow(ns: NS, hostname: string): Promise<number>
  • Run serial HWG on given hostname.

    export
    async
    deprecated

    Serial HWG is not recommended. Please use a parallelized HWG with thread count percentages instead.

    Parameters

    • ns: NS

      The Netscript object.

    • hostname: string

      The hostname to run HWG on.

    Returns Promise<number>

    The amount of money hacked, minus any growth action taken.

Generated using TypeDoc