Alakazizam Posted yesterday at 09:03 AM Posted yesterday at 09:03 AM 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 yesterday at 12:28 PM Posted yesterday at 12:28 PM 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
Alakazizam Posted yesterday at 01:53 PM Author Posted yesterday at 01:53 PM 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 yesterday at 02:13 PM Posted yesterday at 02:13 PM 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
Alakazizam Posted yesterday at 03:00 PM Author Posted yesterday at 03:00 PM 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