Farbdose

Bitburner Masterfarm Hack

Feb 10th, 2019
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export async function main(ns) {
  2.     const hibernate = new Promise((resolve)=>{
  3.         ns.remoteExit = () => {
  4.             resolve();
  5.             ns.exit();
  6.             return ns;
  7.         };
  8.     });
  9.    
  10.     if(false) {
  11.         ns.hack("foodnstuff");
  12.     }
  13.        
  14.     setTimeout(() => {
  15.         try {
  16.             nsExchange[ns.args[0]].hack.add(ns);
  17.         } catch(e) {
  18.             ns.remoteExit();
  19.         }
  20.     }, 10000);
  21.    
  22.     await hibernate;
  23. }
Add Comment
Please, Sign In to add comment