Jump 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.

Break Handler

Featured Replies

Break Handler so im using a Script at a aggressive mob to train combat and when i try using the break handler it tries to logout but wont logout since its in combat and just has mouse over logout button any ideas? :s

A game message is sent when attempting to log out whilst in combat, right? Go from there. In the loop method:

 

BreakManager is checked, and there is a boolean shouldActivate(). You might be able to do something with that.

A game message is sent when attempting to log out whilst in combat, right? Go from there. In the loop method:

 

BreakManager is checked, and there is a boolean shouldActivate(). You might be able to do something with that.

I'm pretty sure he's not a scripter, hence he's posting in the General Help section. But even if you were to implement that in a script, BreakManager is a RandomSolver which means it's executed by the RandomExecutor which stops the script threads (threads used by the EventExecutor probably) so whatever you do in onLoop will not execute after the BreakManager kicked in. What you can do though, is get the time until the next break and act accordingly in your script code.

 

As a user you can ask the scripter to implement support for taking breaks if their script is performing activities which involve combat. This, however may be a bit more difficult to implement and not many scripters will be willing to do it. It is not a problem on OSBot's end as the client cannot figure itself how to leave combat in any situation without damaging the script context, therefore it should be handled in script code.

I'm pretty sure he's not a scripter, hence he's posting in the General Help section. But even if you were to implement that in a script, BreakManager is a RandomSolver which means it's executed by the RandomExecutor which stops the script threads (threads used by the EventExecutor probably) so whatever you do in onLoop will not execute after the BreakManager kicked in. What you can do though, is get the time until the next break and act accordingly in your script code.

 

As a user you can ask the scripter to implement support for taking breaks if their script is performing activities which involve combat. This, however may be a bit more difficult to implement and not many scripters will be willing to do it. It is not a problem on OSBot's end as the client cannot figure itself how to leave combat in any situation without damaging the script context, therefore it should be handled in script code.

 

My apologies, didn't even realize what section this was. If that's the case, a "fix" to this, as you have mentioned, is only applied if the scripter supports it. This section, then, would be useless to the nature of this question.

  • Author

Haha All Good I do breaks manually now I have them inplemented in my Private Scripts but I use some public ones and they fk me over lol thx anyway :)

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.