Some code to get the achievement hackers!
Instructions below!
Go to your home computer and type this:
nano devmenu.ns
Now just copy and paste the code from this guide into it and save it.
Then you can go to your home computer again and run it:
run devmenu.ns
Now you should see that you got the achievement!
Don’t forget to kill the script with:
kill devmenu.ns
THIS is the important code to get the achievement:
/** @param {NS} ns **/ let getProps = (obj) => Object.entries(obj).find(entry => entry[0].startsWith("__reactProps"))[1].children.props; let hasPlayer = (obj) => { try { return getProps(obj).player ? true : false; } catch(ex) { return false; } } export async function main(ns) { let boxes = Array.from(eval("document").querySelectorAll("[class*=MuiBox-root]")); let box = boxes.find(x => hasPlayer(x)); if(box) { ns.tprintf("INFO className: \"" + box.className + "\""); let props = getProps(box); // get a 10% cash bonus props.player.money = props.player.money * 1.1; // open dev menu props.router.toDevMenu(); } }
More Guides:
- Bitburner: Early Hacknet Auto Management Script
- Bitburner: Time Calculation Script (How to Get the Time)
- Bitburner: Automation for Hacknet Nodes
- Bitburner: Combat Gang Management Script (Fully Automatic)
- Bitburner: Early Game Guide (Spoiler Free)