diff options
Diffstat (limited to 'bitburnerFiles1026/liquidate.js')
-rw-r--r-- | bitburnerFiles1026/liquidate.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bitburnerFiles1026/liquidate.js b/bitburnerFiles1026/liquidate.js new file mode 100644 index 0000000..79f902e --- /dev/null +++ b/bitburnerFiles1026/liquidate.js @@ -0,0 +1,10 @@ +/** @param {NS} ns */ +export async function main(ns) { + const syms = ns.stock.getSymbols(); + ns.scriptKill("stocks.js", "home"); + ns.scriptKill("stocker.js", "home"); + for (let i = 0; i < syms.length; i++) { + let shares = ns.stock.getMaxShares(syms[i]); + ns.stock.sellStock(syms[i], shares); + } +}
\ No newline at end of file |