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.

Enter Amount boolean snippet

Featured Replies

For those wondering how to find out if the enter amount is up for people to handle it correctly and not miss up. Here the snippet.

 

Best fail safe so a character doesnt type an amount in the chatbox.

	/**
	 * the interface is usually never null, but changes location when visible or not
	 * 
	 * @return true if the 'enter amount' interface is visible
	 */
	public boolean canEnterAmount() {
		RS2Widget warning = getWidgets().get(548, 119);
		return warning != null && !warning.getPosition().equals(new Point(-1,-1));
	}
	

have fun and happy scripting

 

Edited by josedpay

  • 1 month later...

I assume this is for use on things like smelt X sort of interface? ill give this a go in a script im building

I assume this is for use on things like smelt X sort of interface? ill give this a go in a script im building

 

Yeah that's what you'd use this for. So call the method before you have it try and type anything.

Yeah that's what you'd use this for. So call the method before you have it try and type anything.

 

Any hints as to how to actually make the bot type in a certain amount at that widget menu?


if(widgets.get(162,32) != null &&

widgets.get(162,32).isVisible()) {

keyboard.typeString("something", true);

}

Edited by Flamezzz

Any hints as to how to actually make the bot type in a certain amount at that widget menu?

 

 

keyboard.typeString("" + random(28, 99));

That will do a random number from 28 to 99.

keyboard.typeString("" + random(28, 99));

That will do a random number from 28 to 99.

 

 

well yes haha but im pretty sure most people can understand that. a specific number would just be 

 

keyboard.typeString("YOURNUMBER");

  • Author

for those still looking to use this method you will need to update the widget thats all

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.