-
Posts
12 -
Joined
-
Last visited
-
Feedback
0%
Posts posted by Yusi
-
-
Hello is colorful log possible in osbot? If it is can you tell me how?
-
44 minutes ago, Khaleesi said:
You check the Y coordinate to be in the actual visible rectangle
I have made this and its working properly thank you
if (ernestTheChickenQuest != null && ernestTheChickenQuest.isVisible() && ernestTheChickenQuest.getAbsY() > 254 && ernestTheChickenQuest.getAbsY() < 415) {
log("koyashScript");
} -
Hello, I want to make the map bigger until the icon that symboling my player on map interface is visible
so the point is even if widget is not visible on main screen osbot dedects it as visible. It works more like != null than isVisible()
even if i use something like this:
randomQuestWidget = Quests.Quest.Doric's_Questif (randomQuestWidget != null && randomQuestWidget.isVisible()) {
randomQuestWidget.hover();
}it hovers the mouse on invisible quest -> https://prnt.sc/ROEan6Kj0oZH
how can i check if a widget actually isVisible or not? -
10 hours ago, faketesco said:
I have noticed that interact and webwalker can sometimes break when you have your client on resizable and the one that isn't fixed , for me it tries to interact / click on the inventory (and the object/player is under that interface)
39 minutes ago, Khaleesi said:I didn't even see it was in resizeable
@Yusi Fixed is always recommended, unless you full screen the clientThanks to y'all ill try it
- 1
-
On 5/15/2023 at 8:26 AM, Khaleesi said:
Never had any issues regarding this, might want to show the client logger for more info. or maybe a logic issue in the script?
Also missclicks are always possible, should not matter since it fixes itself within a few secondsI didn't see any error log while it stucked
about the missclick it happening oftenly and it happens the same way everytime also waits until it almost reached at the point it missclicked so it takes a little bit time
and i don't think its an script issue im not doing anything that possibly cause that problem
btw love your scripts
public void webWalkEventArea(Area targetArea) {
WebWalkEvent webWalkEventArea = new WebWalkEvent(targetArea);
webWalkEventArea.setMinDistanceThreshold(0);
webWalkEventArea.setEnergyThreshold(random(11,36));
webWalkEventArea.setBreakCondition(new Condition() {
@Override
public boolean evaluate() {
return myPlayer().isUnderAttack();
}
});
execute(webWalkEventArea);
} -
While im using WebWalkEvent Bot stucks at this point it clicking the main screen but he can't find a way out (It should go to Lumbridge bank upstairs)
Also if the bot chooses to go from the right upstairts
https://prnt.sc/OdO1HivpoVsv it clicks the dot i pointed at and walks there for a few seconds then clicks the upstairs from here https://prnt.sc/hD5ISms3tZO_ -
3 hours ago, Zackaery said:
int count = 0; int counterRandom = random(1, 15); ScheduledExecutorService executor = Executors.newScheduledThreadPool(1); @Override public int onLoop() throws InterruptedException { if (myPlayer().isMoving()) { count += 1; sleep(1000); log(count); } if (count == counterRandom) { log("Done"); counterRandom = random(1, 15); count = 0; } return 0; } // separate thread public void startCounter() { executor.scheduleAtFixedRate(new Runnable() { public void run() { if (!myPlayer().isMoving()) { count = 0; } } }, 0, 1, TimeUnit.SECONDS); } // stop counter public void stopCounter() { executor.shutdown(); } // call start counter method before starting webwalking startCounter(); // perform webwalk // call stop counter method after webwalking is finished stopCounter();
So basically, what you need to do is start a counter before you begin the webwalk. This counter will run in the background while you're moving. It will keep track of the count every second. If your player stops moving, the counter will reset back to zero.
Thank you ill try it out
-
10 minutes ago, FushigiBot said:
You don't have to count for that. Just write a separate thread where you check for random events and sleep every 5 secs or so.
random events especially for walking like customized camera movements or missclicks -
4 hours ago, Gunman said:
Wtf why????
For random events while walking
-
Hello, i'm tryng to make a counter while webwalk but it never works. I guess no other process is running until the webwalk is finished.
Can anyone tell me how can i make a counter while walking?
Here's the code example:
int count = 0;
int counterRandom = random(1,15);
@Override
public int onLoop() throws InterruptedException {
if (myPlayer().isMoving()) {
count += 1;
sleep(1000);
log(count);
}
if (count == counterRandom) {
log("Done");
counterRandom = random(1,15);
count = 0;
}
return 0;
}
Colorful Log [Question]
in Snippets
Posted
Damn thank you thats a lot