Joubot Posted November 6 Posted November 6 void activateStrength() { int CombatStyle = getConfigs().get(43); if (CombatStyle != 1) { log("click?"); if(tabs.isOpen(Tab.ATTACK)) { log("tap?"); mouse.click(random(650, 710), random(255, 290), false); log("click?"); } else { log("this thing?"); tabs.open(Tab.ATTACK); } } } So, when I'm trying to run this function, I get outputs "click?" and "this thing?" spamming the logger. It actually does open up the Attack tab but the bot never sees it as being open. I've tried using tab.isOpen as well as seeing if a widget is not null and visible (which it was) and still nothing under that branch is firing off. 1
Khaleesi Posted November 6 Posted November 6 3 hours ago, Alakazizam said: void activateStrength() { int CombatStyle = getConfigs().get(43); if (CombatStyle != 1) { log("click?"); if(tabs.isOpen(Tab.ATTACK)) { log("tap?"); mouse.click(random(650, 710), random(255, 290), false); log("click?"); } else { log("this thing?"); tabs.open(Tab.ATTACK); } } } So, when I'm trying to run this function, I get outputs "click?" and "this thing?" spamming the logger. It actually does open up the Attack tab but the bot never sees it as being open. I've tried using tab.isOpen as well as seeing if a widget is not null and visible (which it was) and still nothing under that branch is firing off. I believe due to yesterdays update some widgets changed, will check it with the devs 1
Joubot Posted November 6 Author Posted November 6 1 hour ago, Khaleesi said: I believe due to yesterdays update some widgets changed, will check it with the devs Yeah I had to change widget numbers on a couple scripts, I picked a different widget than the one I was using and it started working. (593, 0)
Khaleesi Posted November 6 Posted November 6 19 minutes ago, Alakazizam said: Yeah I had to change widget numbers on a couple scripts, I picked a different widget than the one I was using and it started working. (593, 0) Ya they added some new widgets at some places, that's why I generally speaking never use widgets IDs. I do use the root ID to filter out but I use text, action or spell name in 99% of the cases 1
Joubot Posted November 6 Author Posted November 6 47 minutes ago, Khaleesi said: Ya they added some new widgets at some places, that's why I generally speaking never use widgets IDs. I do use the root ID to filter out but I use text, action or spell name in 99% of the cases Thanks, I'll start trying to do that instead