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.

Chatbox right click, choose all.

Featured Replies

Hey everyone! I'm new to scripting but it seems very straight forward as I used to script for scar/simba. I am currently working on an edgeville cball maker and I can't for the life of me figure out how to handle the chatbox after using the steel bar on the furnace. Any help will be appreciated.

Use Widgets smile.png

int parent = 200;
int child = 85;
RS2Widget child = script.getWidgets().get(parent, child);

if(child!= null && child.isVisible()){
   String action = "Make 10";
   child.interact(action);
}

Should be something like this ^

Enable the widgets debugger to find the parent,child id's biggrin.png

 

Khaleesi

Edited by Khaleesi Scripts

  • Author

Thank you very much!

 

Edit: How would I terminate the script should the user not have an ammo mould in their inventory?

Edited by DankFish

Thank you very much!

Edit: How would I terminate the script should the user not have an ammo mould in their inventory?

If(!this.getInventory().contains(ammo name here))

stop();

On phone so please excuse typos etc.

Use Widgets smile.png

int parent = 200;
int child = 85;
RS2Widget child = script.getWidgets().get(200, 85);

if(child!= null && child.isVisible()){
   String action = "Make 10";
   child.interact(action);
}

Should be something like this ^

Enable the widgets debugger to find the parent,child id's biggrin.png

 

Khaleesi

 

 

Shouldn't be creating a string object everytime the code is ran,

child.interact("Make 10"); is going to be more efficient in this situation, 

 

http://examples.javacodegeeks.com/core-java/lang/string/java-string-pool-example/

could work both ways though, i just see less lines being better

Shouldn't be creating a string object everytime the code is ran,

child.interact("Make 10"); is going to be more efficient in this situation, 

 

http://examples.javacodegeeks.com/core-java/lang/string/java-string-pool-example/

could work both ways though, i just see less lines being better

 

Doesn't really matter though smile.png

Compiler will do the rest.

 

I just did this to show him an example with the names(Parent, child and action).

makes it a bit more clear then just inputting numbers in a function ^^

 

but you're right, you can just put the numbers/text in the function instead of creating an variable or an object smile.png

 

If(!this.getInventory().contains(ammo name here))

stop();

On phone so please excuse typos etc.

 

Phone coding OP, took me 5 min to typ the code above lol -_-

The auto correct is so stronk -_-

Edited by Khaleesi Scripts

I don't know why you made a thread dude, If you saw I responded to your PM about my Cannonball smelter with a very detailed guide (including pictures) that explains how to use Widget interactions to achieve what you're trying to do.

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.