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.

Trying to figure out if I'm logged out..

Featured Replies

I'm trying to figure out if my character is logged out. I have tried:


getClient().isLoggedIn()

and


if (getClient().getLoginState() == Client.LoginState.LOGGED_OUT) {}

They both return true when I'm logged in and return nothing when I'm logged out.

  • Author
1 minute ago, Alek said:

Why do you need to know?

So I can re-enable auto chat when I log back in.

31 minutes ago, Deathiminent said:

So I can re-enable auto chat when I log back in.

Why not just detect if auto-chat is not enabled?

  • Author
7 minutes ago, Alek said:

Why not just detect if auto-chat is not enabled?

Yeah there are usually multiple solutions to a problem. I just assumed Client.isLoggedIn() would return false if I'm not logged in.

20 minutes ago, Deathiminent said:

Yeah there are usually multiple solutions to a problem. I just assumed Client.isLoggedIn() would return false if I'm not logged in.

Scripts don't execute while you are logged out.

3 minutes ago, Alek said:

Scripts don't execute while you are logged out.

I think he means while loading, if i am not being wrong

 

24 minutes ago, Deathiminent said:

Yeah there are usually multiple solutions to a problem. I just assumed Client.isLoggedIn() would return false if I'm not logged in.

Try to check for a widget for example health orb or something to know that it is fully loaded

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.