diff options
author | AlmightyMiau <almightymeow612@gmail.com> | 2024-10-26 13:06:14 -0700 |
---|---|---|
committer | AlmightyMiau <almightymeow612@gmail.com> | 2024-10-26 13:06:14 -0700 |
commit | 1ca00b3b73a9699e41f81e154cea32934c16de03 (patch) | |
tree | d8ff8fe937b06cf40458aac232953b19665bcc6e /bitburnerFiles1026/liquidate.js |
First commit
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 |