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, and logging into a array of specific or a randomized accounts

Featured Replies

Looked at the API briefly, and am still getting confused. What I am trying to do is

Trying to store accounts, and then randomizing login into those accounts after a certain amounts of a resource is obtained(Ore, Essences.. ect)

 

Here is what I found in the API but I do not know how to implement it into the script and make the method function correctly.

 

 

Client.LoginStage.LOGGED_OUT, however I do not know how to implement this into my method so I can have it login and log out from a randomized account.

 

I know loginStage gets where the clients protocols are at during operation, but how the hell do you logout, and then login with a listed array of stored accounts.

 

 

 


well found out how to log out I believe..

logoutTab.logOut();

Do you want to make a slave trade a random master from a list?

 

If the API does not support that you could just write a CLI script that starts a random account after x time and kill the osbot season after x time.  Slave has all possible masters added, hops to the world where the master is and trades its items. 

 

Could look like something like this: Not sure how to randomise that. You would have to find out yourself. If you happen to use this methode tell me if it works out. :D

java -jar "OSBot.jar" -proxy 123.132.123.123:1234 -login OSBOTUSER:OSBOTPASS -bot 07account@1.com:RSPASS:0000 -script SCRIPTID:0
TIMEOUT /T 3000
C:\>Taskkill /IM OSBot.jar /F
TIMEOUT /T 6000
java -jar "OSBot.jar" -proxy 123.132.123.123:1234 -login OSBOTUSER:OSBOTPASS -bot 07account@2.com:RSPASS:0000 -script SCRIPTID:0
TIMEOUT /T 3000
C:\>Taskkill /IM OSBot.jar /F
TIMEOUT /T 6000
java -jar "OSBot.jar" -proxy 123.132.123.123:1234 -login OSBOTUSER:OSBOTPASS -bot 07account@3.com:RSPASS:0000 -script SCRIPTID:0
TIMEOUT /T 3000
C:\>Taskkill /IM OSBot.jar /F
TIMEOUT /T 6000

Edited by Slawa

  • Author

 

Do you want to make a slave trade a random master from a list?

 

If the API does not support that you could just write a CLI script that starts a random account after x time and kill the osbot season after x time.  Slave has all possible masters added, hops to the world where the master is and trades its items. 

 

Could look like something like this: Not sure how to randomise that. You would have to find out yourself. If you happen to use this methode tell me if it works out. biggrin.png

java -jar "OSBot.jar" -proxy 123.132.123.123:1234 -login OSBOTUSER:OSBOTPASS -bot 07account@1.com:RSPASS:0000 -script SCRIPTID:0
TIMEOUT /T 3000
C:\>Taskkill /IM OSBot.jar /F
TIMEOUT /T 6000
java -jar "OSBot.jar" -proxy 123.132.123.123:1234 -login OSBOTUSER:OSBOTPASS -bot 07account@2.com:RSPASS:0000 -script SCRIPTID:0
TIMEOUT /T 3000
C:\>Taskkill /IM OSBot.jar /F
TIMEOUT /T 6000
java -jar "OSBot.jar" -proxy 123.132.123.123:1234 -login OSBOTUSER:OSBOTPASS -bot 07account@3.com:RSPASS:0000 -script SCRIPTID:0
TIMEOUT /T 3000
C:\>Taskkill /IM OSBot.jar /F
TIMEOUT /T 6000

 

Oh I was hoping to have script log my current slave out, and then login from a stored list of arrays.

This works though also huh?  Is this all through command prompt using echos?

Oh I was hoping to have script log my current slave out, and then login from a stored list of arrays.

This works though also huh?  Is this all through command prompt using echos?

I'm not sure if this works. But I think it should work. :p

Looked at the API briefly, and am still getting confused. What I am trying to do is

Trying to store accounts, and then randomizing login into those accounts after a certain amounts of a resource is obtained(Ore, Essences.. ect)

 

Here is what I found in the API but I do not know how to implement it into the script and make the method function correctly.

 

 

Client.LoginStage.LOGGED_OUT, however I do not know how to implement this into my method so I can have it login and log out from a randomized account.

 

I know loginStage gets where the clients protocols are at during operation, but how the hell do you logout, and then login with a listed array of stored accounts.

 

 

 

well found out how to log out I believe..

logoutTab.logOut();

 

Well logging out  is simple, you just do:

getLogoutTab().logOut();

There is not, however, anything in the API for logging in. The main issue with logging back in is the automatic login event. If you start a script using a runescape account stored in the settings, whenever you logout, it will automatically try to log back into that same account.

 

To prevent the automatic login event from triggering you can either:

  • Login to the first account manually, then run the script, so that when you logout the login event won't be triggered (it doesn't have the account information to do it).
  • Write your own method to disable the login event (this is a bit trickier)

To log in to another account you can use:

  • The Client class to determine when you are logged out
  • The Client class to determine which stage of the login protocol you are at
  • The Mouse class to click on the Existing users button
  • The Keyboard class to enter the account details

Hopefully you can figure it out from that

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.