Harem(Hentai)Heroes Automatic

Open the menu in HaremHeroes(topright) to toggle AutoControlls. Supports AutoSalary, AutoQuest and AutoBattle. Messages are printed in local console.

< Valutazione su Harem(Hentai)Heroes Automatic

Domanda/commento

§
Pubblicato: 17/04/2018

Trying to add timing delays between the auto actions, any help?

So I know nothing about coding... At all. I am using this script and trying to just add in random timeouts between things so it isn't so exact. I was just trying to stick them in random places around the salary but it never does anything. Help a noob anyone?

var getSalary = function () { try { //Two seconds will elapse and Code will execute. doesnt work here if ($("#breadcrumbs span").last().text() === "Harem") { console.log("Detected Harem Screen. Fetching Salary"); $("#harem_whole #harem_left .salary:not('.loads') button").each(function (index) { setTimeout(20000);$(this).click(); }); setTimeout(20000);document.cookie = "nextSalaryTime=;"; } else {setTimeout(20000); //Two seconds will elapse and Code will execute. doesnt work here // Not at Harem screen then goto the Harem screen. console.log("Navigating to Harem window."); sessionStorage.autoLoop = "false"; window.location = window.location.origin + $("nav div[rel='content'] a:has(.harem)").attr("href"); return; } } catch (ex) { console.log("Could not collect salary... " + ex); } };

Pubblica risposta

Accedi per pubblicare una risposta.