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.

Script doesn't stop properly

Featured Replies

1. OSBot Version (do NOT put "current version", be specific)

2.4.43

 

2. A description of the issue. Include relevant logs.

The pause and stop buttons are still up even after the script uses "stop();" Still logs you out though.

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

Nope

 

4. How can you replicate the issue?

Just start a script and stop it? I'm unsure. I ran out of items and it called for the stop method.

 

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

no clue, just noticed it

 

crz4x1T.png

Why are you blocking out the script name? Chances are the script is caught in a loop which can't be exited. 

  • Author

Why are you blocking out the script name? Chances are the script is caught in a loop which can't be exited. 

I don't actually remember why I bothered blocking it out, lol

 

It's this.

http://pastie.org/10746391

 

Chances are, you're probably right about it being stuck in a loop.

Some places it might be getting stuck:

 

case 10:
mouse.moveOutsideScreen();
sleep(random(5000, 10000));
break;


if (w2 != null) {
w2.interact("Make All");
state = "butter on potato";
sleep (17000);
}


if (w3 != null) {
w3.interact("Make All");
state = "Cutting tuna";
sleep (17000);
}


if (w4 != null) {
w4.interact("Make All");
state = "Sweetcorn on tuna";
sleep (18000);
}


if (w5 != null) {
w5.interact("Make All");
state = "Tuna Potatoes";
sleep (20000);
}


while(guiWait)
try {
sleep(500);
} catch (InterruptedException e) {
e.printStackTrace();
}

 

  • Author

 

Some places it might be getting stuck:

 

case 10:
mouse.moveOutsideScreen();
sleep(random(5000, 10000));
break;


if (w2 != null) {
w2.interact("Make All");
state = "butter on potato";
sleep (17000);
}


if (w3 != null) {
w3.interact("Make All");
state = "Cutting tuna";
sleep (17000);
}


if (w4 != null) {
w4.interact("Make All");
state = "Sweetcorn on tuna";
sleep (18000);
}


if (w5 != null) {
w5.interact("Make All");
state = "Tuna Potatoes";
sleep (20000);
}


while(guiWait)
try {
sleep(500);
} catch (InterruptedException e) {
e.printStackTrace();
}

 

Should I use conditional sleeps for waiting until it's out of required items to fix the stuck loop part?

 

The guiWait is what I use in all GUI requiring scripts and it's never caused this before.

 

Even after sleep times pass, like I can wait minutes, the pause/stop buttons are still there. Shouldn't they technically go back to normal? Is that how it would get unstuck?

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.