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.

A Beginners Guide to Writing OSBot Scripts (where to get started!) by Apaec

Featured Replies

Awesome tutorial man thank you so much, by the way can you give me the link to your graphical part? Else, perfect guide.

That was actually alot less complicated than i thought it would be, i do need to go back and read over a couple of things again but im really looking forward t getting stuck into anther guide =]

pls help, after i installed Eclipse i try to run the eclipse .exe file for application and i get a huge error msg

  • 3 weeks later...

Just asking how i can get any item what are in the bank?

 

Thx

public int onLoop() throws InterruptedException {
		switch (getState()) {
		case BANK:
			Entity stall = objects.closest("Bank Booth");
			if (stall != null) {
				stall.interact("Bank");
			}
			break;
		case GET:
			bank.getItem("Maple Logs");
			break;
		case WAIT:
			sleep(random(500, 700));
			break;
		default:
			break;
		}
		return random(200, 300);

Edited by kerklais

Just asking how i can get any item what are in the bank?

Thx

public int onLoop() throws InterruptedException {		switch (getState()) {		case BANK:			Entity stall = objects.closest("Bank Booth");			if (stall != null) {				stall.interact("Bank");			}			break;		case GET:			bank.getItem("Maple Logs");			break;		case WAIT:			sleep(random(500, 700));			break;		default:			break;		}		return random(200, 300);
This will withdraw a specific number

getBank().withdraw("item", 5);

This will withdraw all

getBank().withdrawAll("item");

  • 3 weeks later...
  • 1 month later...

Hey, i had a question, which program language do u recommend to make a osbot script?

I have only little knowledge about python.

Hey, i had a question, which program language do u recommend to make a osbot script?

I have only little knowledge about python.

Java is the only language you can do it.

oh oke, is java hard to learn?

Depends on you, if you want to learn it you will, if not then no bueno

If i thoroughly follow all the tutorials and start practicing a lot of scripting will i eventually be able to sell my scripts on the forums and help contribute as a fellow team member?

Trying to make a barbarian power fisher! The bot drops all of the fish but it doesn't try to fish them!

 

private enum State {

FISH, DROP, WAIT

};

 

private State getState() {

Entity fishspot = objects.closest("Fishing spot");

if (!inventory.isEmptyExcept("Feather","Barbarian rod"))

return State.DROP;

if (fishspot != null)

return State.FISH;

return State.WAIT;

}

 

@Override

public int onLoop() throws InterruptedException {

switch (getState()) {

case FISH:

Entity fishspot = objects.closest("Fishing spot");

if (fishspot != null) {

fishspot.interact("Use-rod");

}

break;

case DROP:

inventory.dropAll("Leaping trout","Leaping salmon","Leaping sturgeon");

break;

case WAIT:

sleep(random(500, 700));

break;

}

return random(200, 300);

}

Trying to make a barbarian power fisher! The bot drops all of the fish but it doesn't try to fish them!

 

private enum State {

FISH, DROP, WAIT

};

 

private State getState() {

Entity fishspot = objects.closest("Fishing spot");

if (!inventory.isEmptyExcept("Feather","Barbarian rod"))

return State.DROP;

if (fishspot != null)

return State.FISH;

return State.WAIT;

}

 

@Override

public int onLoop() throws InterruptedException {

switch (getState()) {

case FISH:

Entity fishspot = objects.closest("Fishing spot");

if (fishspot != null) {

fishspot.interact("Use-rod");

}

break;

case DROP:

inventory.dropAll("Leaping trout","Leaping salmon","Leaping sturgeon");

break;

case WAIT:

sleep(random(500, 700));

break;

}

return random(200, 300);

}

Entity fishspot = objects.closest("Fishing spot");
if (fishspot != null) {
fishspot.interact("Use-rod");
}

fishing spots are NPC's

 

so

NPC fishspot = objects.closest("Fishing spot");
if (fishspot != null) {
fishspot.interact("Use-rod");
}

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.