Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Low cpu mode

Featured Replies

1. OSBot Version; 2.4.43


2. A description of the issue; When using Low cpu mode, the client sometimes interacts 2 times before starting conditional sleep, this only occurs when using low cpu mode.


3. Are you receiving any errors in the client canvas or the logger?  No


4. How can you replicate the issue?


Turn low cpu mode on, interact with anything


5. Has this issue persisted through multiple versions? If so, how far back? No ideas.


  • 2 weeks later...

Most likely a script related bug by having static sleeps. Having conditional sleeps with high timeouts and relatively faster re-checks should work in your favor. Let me know if that works for you.

  • Author

Most likely a script related bug by having static sleeps. Having conditional sleeps with high timeouts and relatively faster re-checks should work in your favor. Let me know if that works for you.

I'm using conditional sleeps with relatively high timeouts, this is how the double interaction happens; it interacts once successfully and then immediately interacts again and then the conditional sleep kicks in

  • Developer

I'm using conditional sleeps with relatively high timeouts, this is how the double interaction happens; it interacts once successfully and then immediately interacts again and then the conditional sleep kicks in

 

What code do you have in your conditional sleep?

Show me some snippet ^^

  • Author

What code do you have in your conditional sleep?

Show me some snippet ^^

		RS2Object magicTree = getObjects().closest(o -> o.getName().equals("Magic tree") && o.hasAction("Chop down"));
		if (magicTree != null) {
			if (!myPlayer().isAnimating() && !myPlayer().isMoving()) {
                new ConditionalSleep(random(6900, 9600)) {
                    @Override
                    public boolean condition() throws InterruptedException {
                        return myPlayer().isAnimating();
                    }
                }.sleep();
			}
		}

I also went for custom interaction and whenever i do this, it doesn't have any issues at all;

									if (getMenuAPI().getTooltip().equals(stripFormatting("Chop down") + " " + stripFormatting("Magic tree"))) {
										if (getMouse().click(false)) {
							                new ConditionalSleep(random(3900, 8600)) {
						                        @Override
						                        public boolean condition() throws InterruptedException {
						                            return myPlayer().isAnimating();
						                        }
						                    }.sleep();
										}
									}

But when i add getMouse().getCrossHairColor().equals(CrossHairColor.RED)

									if (getMenuAPI().getTooltip().equals(stripFormatting("Chop down") + " " + stripFormatting("Magic tree"))) {
										if (getMouse().click(false)) {
											if (getMouse().getCrossHairColor().equals(CrossHairColor.RED)) {
								                new ConditionalSleep(random(3900, 8600)) {
							                        @Override
							                        public boolean condition() throws InterruptedException {
							                            return myPlayer().isAnimating();
							                        }
							                    }.sleep();
											}
										}
									}

It has the same issue like with regular .interact() method so it seems like getMouse().getCrossHairColor().equals(CrossHairColor.RED) fails to immediately return true after successfully clicking ?

  • Developer
		RS2Object magicTree = getObjects().closest(o -> o.getName().equals("Magic tree") && o.hasAction("Chop down"));
		if (magicTree != null) {
			if (!myPlayer().isAnimating() && !myPlayer().isMoving()) {
                new ConditionalSleep(random(6900, 9600)) {
                    @Override
                    public boolean condition() throws InterruptedException {
                        return myPlayer().isAnimating();
                    }
                }.sleep();
			}
		}

I also went for custom interaction and whenever i do this, it doesn't have any issues at all;

									if (getMenuAPI().getTooltip().equals(stripFormatting("Chop down") + " " + stripFormatting("Magic tree"))) {
										if (getMouse().click(false)) {
							                new ConditionalSleep(random(3900, 8600)) {
						                        @Override
						                        public boolean condition() throws InterruptedException {
						                            return myPlayer().isAnimating();
						                        }
						                    }.sleep();
										}
									}

But when i add getMouse().getCrossHairColor().equals(CrossHairColor.RED)

									if (getMenuAPI().getTooltip().equals(stripFormatting("Chop down") + " " + stripFormatting("Magic tree"))) {
										if (getMouse().click(false)) {
											if (getMouse().getCrossHairColor().equals(CrossHairColor.RED)) {
								                new ConditionalSleep(random(3900, 8600)) {
							                        @Override
							                        public boolean condition() throws InterruptedException {
							                            return myPlayer().isAnimating();
							                        }
							                    }.sleep();
											}
										}
									}

It has the same issue like with regular .interact() method so it seems like getMouse().getCrossHairColor().equals(CrossHairColor.RED) fails to immediately return true after successfully clicking ?

 

 

Hmm very weird, have you tried this:

 

1) Interact

2) Cond sleep until animation

3) Small sleep (200ms)

4) Cond sleep until animation

 

Try this and let me know if that does solve the issue.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.