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.

Does this 'skeleton' make any sense?

Featured Replies

ANOTHER QUESTION: Can you for example say

 

if((BANK_AREA && WALK_AREA).contains(client.getmyPlayer())); so you check 2 areas. Is that possible?

 

Hey all. Made a skeleton for my first script I'm working. Does this look good? You're supposed to start it at the bank.

 

This is my onloop

	public int onLoop() {

		if (BANK_AREA.contains(client.getMyPlayer())) {
			if (client.getInventory().isFull()) {
				//bank
			}
		} else {
			//walk to field, check the gate
		}
		if (!client.getInventory().isFull()) {
			//pick potato
		} else {
			//walk to gate, check it and then go to the bank
		}

		return 50;

	}

}

Edited by Athylus

funny how 20people are watching the topic and waiting for someone to reply so they can repost the first answer said xD

 

 

Looks like it makes sense to me. You may want to not have it return 0, because that means it checks the conditions every 0 milliseconds.

Anything from 50-75 is good.

  • Author

Thanks Sherlock, I'll change that. Guess I'll have to try it for myself hehe.

 

More advice would be appreciated, I want to learn this and came here for support. 

Edited by Athylus

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.