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.

How To Smelt Bars

Featured Replies

How do I smelt bars in a furnace?

 

Any help is thanked.

Edited by cheavyrun

How do I smelt bars in a furnace?

 

Any help is thanked.

 

Get the required ores and click on the furnace and select the bar type.

  • Author

Get the required ores and click on the furnace and select the bar type.

 

 

I mean how to script it.

  • Author

Umm, i am not sure. sorry

 

No problem, by the way thanks  for answering me.

what bit are you strugging with? The interfaces part? the using ore/bars on furnace part? the interaction with furnace part? the checking when smelting part?

 

 

  • Author

I managed to open the furnace interface, but the part you have to choose the ingot and the quantity is the one I´m struggling.

I managed to open the furnace interface, but the part you have to choose the ingot and the quantity is the one I´m struggling.

 

 

You will want to use widgets.

 

Widgets?

 

Yes something like:

RS2Widget bronzeWidget = getWidgets().getWidgetContainingText("Bronze");
if(bronzeWidget != null && bronzeWidget.isVisible()) bronzeWidget.interact("Smelt 10 Bronze");

Edited by Explv

  • Author

 

Yes something like:

RS2Widget bronzeWidget = getWidgets().getWidgetContainingText("Bronze");
if(bronzeWidget != null && bronzeWidget.isVisible()) bronzeWidget.interact("Smelt 10 Bronze");

 

Oh that works, thank´s a lot for your helpwink.png.

RS2Object furnace = objects.closest("Furnace");

RS2Widget options = widgets.get(311, 8);

furnace.interact("Smelt");

if (options != null) {

mouse.click(random(290, 325), random(393, 420), true);

sleep(random(1000, 1500));

menu.selectAction("Smelt X Gold");

sleep(random(1000,1500);

keyboard.typeString("" + random(29, 99), true);

}

Should be something like this.

Add an extra null check on the keyboard type string.

  • Author

RS2Object furnace = objects.closest("Furnace");

RS2Widget options = widgets.get(311, 8);

furnace.interact("Smelt");

if (options != null) {

mouse.click(random(290, 325), random(393, 420), true);

sleep(random(1000, 1500));

menu.selectAction("Smelt X Gold");

sleep(random(1000,1500);

keyboard.typeString("" + random(29, 99), true);

}

Should be something like this.

Add an extra null check on the keyboard type string.

 

Thank´s for your help. By the way nice profile pic.wink.png

 

Thank´s for your help. By the way nice profile pic.wink.png

yw, let me know when you get stuck.

Edited by herojord

Oh that works, thank´s a lot for your helpwink.png.

 

If you want to smelt a specific quantity you can do something like:

// Select smelt X option for Bronze
getWidgets().getWidgetContainingText("Bronze").interact("Smelt X Bronze");
        
// Sleep until the widget "Enter amount:" is visible (or for 5 seconds)
new ConditionalSleep(5000) {
    @Override
    public boolean condition() throws InterruptedException {

        RS2Widget amountWidget = getWidgets().get(162, 32);
        return amountWidget != null && amountWidget.isVisible();
    }
}.sleep();

// Check that the widget is visible, if it is type the number 23 and enter
RS2Widget amountWidget = getWidgets().get(162, 33);
if(amountWidget != null && amountWidget.isVisible()) getKeyboard().typeString("23");

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.