auto hack improved grow

This commit is contained in:
2023-09-09 02:05:43 +02:00
parent 7b14e98658
commit 435add26de
18 changed files with 8289 additions and 7480 deletions
+29 -12
View File
@@ -1,6 +1,6 @@
/** @param {import(".").NS } ns */
const doc = eval('document');
/** @param {import(".").NS } ns */
export async function main(ns) {
// ns.disableLog('ALL');
@@ -27,49 +27,66 @@ export async function main(ns) {
}
}
city.click(); await ns.sleep(200);
travel.click(); await ns.sleep(100);
for (const alphaEnt of doc.querySelectorAll('div#root p')) {
if (alphaEnt.textContent == ' o-----+---x----o 4 T [alpha ent.] o-------o /') {
alphaEnt.querySelector('span').click(); await ns.sleep(200);
break;
}
}
for (const TOR of doc.querySelectorAll('div#root button')) {
if (TOR.textContent == '') {
// TOR.click(); await ns.sleep(200);
break;
}
}
travel.click(); await ns.sleep(200);
for (const aevum of doc.querySelectorAll('div#root span')) {
if (aevum.textContent == 'A') {
aevum.click(); await ns.sleep(100);
aevum.click(); await ns.sleep(200);
break;
}
}
for (const travelConfirm of doc.querySelectorAll('div[role="presentation"] p')) {
if (travelConfirm.textContent == 'Travel') {
travelConfirm.click(); await ns.sleep(100);
travelConfirm.click(); await ns.sleep(200);
break;
}
}
const closeButton = doc.querySelector('div[role="presentation"] button');
if(!closeButton == undefined) closeButton.click();
try {
doc.querySelector('div[role="presentation"] button').click();
} catch (error) {
city.click(); await ns.sleep(100);
}
city.click(); await ns.sleep(200);
for (const uni of doc.querySelectorAll('div#root span')) {
if (uni.textContent == 'U') {
uni.click(); await ns.sleep(100);
uni.click(); await ns.sleep(200);
break;
}
}
for (const course of doc.querySelectorAll('div#root button')) {
if (course.textContent == 'Take Algorithms course ($-1.280k / sec)') {
course.click(); await ns.sleep(100);
course.click(); await ns.sleep(200);
break;
}
}
for (const closeCourse of doc.querySelectorAll('div#root button')) {
if (closeCourse.textContent == 'Do something else simultaneously') {
closeCourse.click(); await ns.sleep(100);
closeCourse.click(); await ns.sleep(200);
break;
}
}
await ns.sleep(1000);
console.log(terminal)
terminal.click(); await ns.sleep(100);
terminal.click();
}