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 do you interact with objects such as furnaces

Featured Replies

i know how to do simple interaction with entity.interact();

 

however how would you interact with entities such as a furnace that bring up a menu afterwards?

  • Author

thanks!

 

one more question, how do i check if the player is currently performing the action stated by the widget, ie. if i smelt 10 bars how can i check if the action was completed?, or if the player is currently smelting ( i could simply make a routine to count for the items created in the inventory but is there an easier way?)

 

edit: ill just store in a boolean to see if the player is currently smelting for now

Edited by senpai jinkusu

thanks!

 

one more question, how do i check if the player is currently performing the action stated by the widget, ie. if i smelt 10 bars how can i check if the action was completed? ( i could simply make a routine to count for the items created in the inventory but is there an easier way?)

I think this would help

http://osbot.org/forum/topic/80839-isanimating/

try to put the two things together :)

  • Author

I think this would help

http://osbot.org/forum/topic/80839-isanimating/

try to put the two things together smile.png

ill give that a try, however the widget doesn't seem to be working, this is my code for steel bars

 

 

RS2Widget smeltMenu = widgets.get(311,30);
if(smeltMenu != null && smeltMenu.isVisible())
 smeltMenu.interact("Smelt 10");
 
i can successfully interact with the furnace, however it doesn't interact with the steel bar widget, is there anything I could be missing?

 

ill give that a try, however the widget doesn't seem to be working, this is my code for steel bars

 

 

RS2Widget smeltMenu = widgets.get(311,30);
if(smeltMenu != null && smeltMenu.isVisible())
 smeltMenu.interact("Smelt 10");
 
i can successfully interact with the furnace, however it doesn't interact with the steel bar widget, is there anything I could be missing?

 

make sure you got the correct widget #'s

RS2Widget smeltMenu = widgets.get(311,30);
if(smeltMenu != null && smeltMenu.isVisible())
 smeltMenu.interact("Smelt 10");
smeltMenu.interact("Smelt 10");

"Smelt 10" is what the menu says? it has to be exact wording

is that what i type as the argument then?

Ye you could do that. I remember this was discussed somewhere and there might be a better solution.

  • Author

Ye you could do that. I remember this was discussed somewhere and there might be a better solution.

i don't know where this was discussed, also not even this seems to work so i think all hope is lost for this method lol.

 

for now i will stick with the following code 

 

  mouse.move(260,410);
       mouse.click(true);
       mouse.click(253,460,false);
       isSmelting = true;

Edited by senpai jinkusu

 

i don't know where this was discussed, also not even this seems to work so i think all hope is lost for this method lol.

 

for now i will stick with the following code 

 

  mouse.move(260,410);
       mouse.click(true);
       mouse.click(253,460,false);
       isSmelting = true;

 

Oh well it really should work. If you post some of your code I can take a look at it.

try using something like..

List<RS2Widget> smeltOpts = getWidgets().containingText("Smelt 10");
if(!smeltOpts.isEmpty()) {
    RS2Widget opt = smeltOpts.get(0);
    getMouse().click(new WidgetDestination(getBot(), opt));
}
  • Author

try using something like..

List<RS2Widget> smeltOpts = getWidgets().containingText("Smelt 10");if(!smeltOpts.isEmpty()) {    RS2Widget opt = smeltOpts.get(0);    getMouse().click(new WidgetDestination(getBot(), opt));}
Nifty, I will look further into this when I get the chance

Edited by senpai jinkusu

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.