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.

interacting with interface

Featured Replies

 i looked up some posts but still couldnt get it to work

case CRAFT:
			if (!smeltarea.contains(myPlayer().getPosition())) {
				getWalking().webWalk(smeltarea);
			} else {	
				RS2Object Furnace = getObjects().closest("Furnace");
				RS2Widget smeltinterface = widgets.get(446, 1);
				if (smeltinterface != null && smeltinterface.isVisible()) {
					smeltinterface.interact("Make-All");
				} else {
					if (Furnace != null && Furnace.exists()) {
						Furnace.interact("Smelt");
					}
				}
			}
			break;

then i tried something like "RS2Object kek = widgets.getWidgetContainingText("Make-All")"

then kek.interact("Make-All" etc etc doesnt work.... (IM TRYING TO SMELT GOLD BARS INTO GOLD RINGS IN AL-KHARID"

  • Author
5 minutes ago, Deceiver said:

 

hey thanks for your help BUT, i forgot to mention im a beginner, so what im asking is that is there a more simplier way to add this? im using this skeleton for my script "

or is there a way to do this without adding any extra stuff?

"

add the 2 classes, just copy n paste them.

then follow the example tom put and change it to what ur doing when u interact with the furnace :)

  • Author
1 hour ago, Deceiver said:

add the 2 classes, just copy n paste them.

then follow the example tom put and change it to what ur doing when u interact with the furnace :)

okay! added them like this: 

https://ibb.co/ebdOx7

then got this: 

https://ibb.co/iJxDVS

and in the actual .java file where my script is written i get this:

https://ibb.co/mxXGH7

.......................................... 

why doesn't this interaction work? why is all this shittt needed

				RS2Widget smeltinterface = widgets.get(446, 1);
				smeltinterface.interact("Make-All");

 

Edited by alkku15

2 hours ago, alkku15 said:

okay! added them like this: 

https://ibb.co/ebdOx7

then got this: 

https://ibb.co/iJxDVS

and in the actual .java file where my script is written i get this:

https://ibb.co/mxXGH7

.......................................... 

why doesn't this interaction work? why is all this shittt needed


				RS2Widget smeltinterface = widgets.get(446, 1);
				smeltinterface.interact("Make-All");

 

idk man i tried it myself too before i added it  and its like it doesnt exist really

 

edit; for the fix change it to this in utilwidget;

public static RS2Widget getWidget(Script i, String action, String spellName) {
        List<RS2Widget> widg = i.getWidgets().filter(new WidgetActionFilter(action), new WidgetSpellFilter(spellName));
        if (widg != null) {
            return widg.get(0);
        }
        return null;
    }

 

Edited by Deceiver

Save the source code in a new file called "AmountAPI.java", and put it where your script file is. Then, follow the example code. :)

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.