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.

[Scripting] Logout Method

Featured Replies

I am assuming there is no simple logout method since I couldn't find it in the few relevant classes. Is this a correct assumption?

 

If yes to the above, do I have to manually change the tab and click the logout button?

Yes, there is no logout method implemented into osbot

 

Feel free to use this:

    public void logout(){
        RS2Interface logoutInterface = new RS2Interface(client.getBot(),182);
        selectInterfaceOption(548,33,"Logout");
        sleep(random(500,1000))
        selectInterfaceOption(182,2,"Ok");
        sleep(random(500,1000))
    }

Edited by Abuse

  • Author

 

Yes, there is no logout method implemented into osbot

 

Feel free to use this:

    public void logout(){
        RS2Interface logoutInterface = new RS2Interface(client.getBot(),182);
        selectInterfaceOption(548,33,"Logout");
        sleep(random(500,1000))
        selectInterfaceOption(182,2,"Ok");
        sleep(random(500,1000))
    }

Could you explain this to me?

 

It seems you created an RS2Interface object, but you never end up using it.

What interface is 548 and 182? What is the child id used for?

Edited by BotRs123

    public void logout() throws InterruptedException{
        openTab(Tab.LOGOUT);
        sleep(random(200,500));
        selectInterfaceOption(182, 6, "Ok");
    }

Here's mine

  • Author
    public void logout() throws InterruptedException{
        openTab(Tab.LOGOUT);
        sleep(random(200,500));
        selectInterfaceOption(182, 6, "Ok");
    }

Here's mine

 

Thanks.

 

Could you explain what the 182 interface is and what the 6 child id does?

Interface no. 182 is the logout interface, child id 6 is the (logout) button on that interface.

  • Author

Interface no. 182 is the logout interface, child id 6 is the (logout) button on that interface.

Gotcha. Where did you obtain a list of the interface and child ids?

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.