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.

Logging out then back in after some time.

Featured Replies

Hey'a everyone,

 

I can't find a way to log out wait some time then log back in, the code I have so far is:

getLogoutTab().logOut(); // Logs out
sleep(random(25000, 30000)); // Ignore the time I'll change this later
AutoLogin(); // <------------ this doesn't work for some reason and just comes up with an error

'AutoLogin();' is what is used on the OSBOT documentation.

Thanks for any response <3

-Flewis

I believe it should login automatically after that sleep.

Edited by Jammer

AutoLogin() isn't a method, it's the initializer for a class. Your script only runs when your fully logged into the game to prevent new scripters from easily throwing null pointers and crashing the client. I'd suggest first learning a bit of Java and how objects are constructed before attempting to do something like this. If you still want to go ahead without learning the necessary knowledge, you will need to start OSBot with -norandoms enabled so you can execute code at the login screen.

You need to create your own login handler class or use Explvs if you want to do that. 

A lot more code to it then just sleeping when you log out

  • Author
35 minutes ago, Alek said:

AutoLogin() isn't a method, it's the initializer for a class. Your script only runs when your fully logged into the game to prevent new scripters from easily throwing null pointers and crashing the client. I'd suggest first learning a bit of Java and how objects are constructed before attempting to do something like this. If you still want to go ahead without learning the necessary knowledge, you will need to start OSBot with -norandoms enabled so you can execute code at the login screen.

Yeah sorry that was me just being stupid, thank you for the heads up I am fairly new to scripting in Java and I have gone pretty big for a first project but everything has been successful so far. Also how do I start OSBOT with -norandoms?

26 minutes ago, Juggles said:

You need to create your own login handler class or use Explvs if you want to do that. 

A lot more code to it then just sleeping when you log out

Okay thank you, could you link me to Explv's login handler class, he has so many resources. 

Edited by flewis

Check useful snippets and you will find it.

Anyways, here it is 

Good luck!

 

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.