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.

Checking If Banned - Custom Login Handler?

Featured Replies

Is there a way to check if the account is banned when trying to log in with the login manager disabled? Besides checking for yellow pixels at locations where the account disabled text shows up, is there a better way to check if the account has been banned? I looked at the OSBot login manager code and they have  some sort of response codes but its obfuscated so I cant really tell exactly whats going on or how they read those response codes.

 

 

EDIT SWAG YOLO WITH TOKENS IDEA:

package script;

import org.osbot.rs07.constants.ResponseCode;
import org.osbot.rs07.listener.LoginResponseCodeListener;
import org.osbot.rs07.script.Script;

public class LoginListener implements LoginResponseCodeListener {
	Script context;

	public LoginListener(Script context) {
		this.context = context;
	}

	@Override
	public void onResponseCode(int response) throws InterruptedException {
		if (response == ResponseCode.ACCOUNT_DISABLED) {
			context.log("BANNED");
		}

	}

}

In my main.java login thread:

getBot().getLoginResponseCodeListeners().add(new LoginListener(getScript()));

9fff1b60e7b1356c04144c329d38cc47.png

Edited by LoudPacks

Can use their onResponseCode(ResponseCode.ACCOUNT_DISABLED), no? Oops, read it wrong. lol

Edited by Prozen

  • Author

Can use their onResponseCode(ResponseCode.ACCOUNT_DISABLED), no? Oops, read it wrong. lol

 

That seems like exactly what I would need. Something like this

Example:

	@Override
    public void onResponseCode(int code) { 
	if(c.getType().equals(ResponseCode.ACCOUNT_DISABLED))
		log("BANNED");
	}

 

The thing is tho, my code is all ran on a separate thread so how would I make sure that is called since the main thread is sleeping when the login manager is disabled?

 

Edited by LoudPacks

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.