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.

Activating/Deactivating Randoms

Featured Replies

How do i do this on will, like if i want to turn on off temp and turn one back on....

 

Do  you mean Override the default solver so you can implement your own? Or just simply de-activate it in so that it doesn't solve the random?

  • Author

damnt, sorry tried to click quote....i meant turn it off so it doesnt do it until i tell it too.not to override my own methods

OR how to use onLogin(int a)so i can make it do something every time it logs in

damnt, sorry tried to click quote.... i meant turn it off so it doesnt do it until i tell it too. not to override my own methods

OR how to use onLogin(int a) so i can make it do something every time it logs in

 

I think you're talking about overriding the default random manager so you could perform a task before activating it if I understand correctly...

 

In your onStart():

randomManager.registerHook(new RandomBehaviourHook(randomManager.LOGIN_MANAGER)){
          @Override
          public boolean shouldActivatePostLoop(){
                 return true;
          }
          @Override
          public int postLoop() throws InterruptedException{
          //task to perform
          return 0;
          }
}

Note: If you want to exit the postLoop then have it return -1

       2- There are a variety of methods you can override which can be found here

  • Author

if i use the LoginListener

onLogin(int a).

will it run the code i put in there every time it logs in? or am i wrong in thinkign this

if i use the LoginListener onLogin(int a). will it run the code i put in there every time it logs in? or am i wrong in thinkign this

 

Have never tried it, hooking the randomManager always works for me so never had to explore further. From the sounds of it thought, it doesn't sound right.

 

If you use the solution I provided you then it will run the code you put in the postLoop() everytime it logs in.

Edited by Divinity

  • Author

oh XD :P i better fix it quickly ,+ this client doesnt have visual counters of its break timers does it...?

+ this code didnt really work... it runs my code before it actually logs in....

  • Author

i think it needs to be postLoop?

Ok So i changed: Login To Welcome_Screen handler, and pre to post, seems to work so far :D

Guest
This topic is now closed to further replies.

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.