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.

Using an item on an entity?

Featured Replies

Just need to really quickly find out a way to use an item on an entity, very important to me :)

 

Thanks to anyone who helps. ;)

I'm really not sure why you would be asking this on an Oldschool Runescape Botting website. However I believe a simple google search would help you.

  • Author

I'm really not sure why you would be asking this on an Oldschool Runescape Botting website. However I believe a simple google search would help you.

 

Because I'm writing a script that involves using items on entities..? 

 

I'm searching for a method in the OSBot API that makes the bot use an item on an object. I know how to click "Use" and use an item on something.

select the item in your inventory then interact with the entity by using "use" instead of say, "Talk-to". 

  • Author

Okay, perhaps I should have been a little more descriptive.

 

I want to know how to do this in my script, not in the game in general. :P

Okay, perhaps I should have been a little more descriptive.

 

I want to know how to do this in my script, not in the game in general. tongue.png

 

lol what? he just told you... you do it in the script how you do it in game... i think you need to study the api a bit more

 

inv.interactWith("Use")

 

npc.interactWith("use");

  • Author

 

Okay, perhaps I should have been a little more descriptive.

 

I want to know how to do this in my script, not in the game in general. tongue.png

 

lol what? he just told you... you do it in the script how you do it in game... i think you need to study the api a bit more

 

inv.interactWith("Use")

 

npc.interactWith("use");

 

 

I know, I've tried that and it doesn't work. It just hovers over the entity.

 

 

Okay, perhaps I should have been a little more descriptive.

 

I want to know how to do this in my script, not in the game in general. tongue.png

 

lol what? he just told you... you do it in the script how you do it in game... i think you need to study the api a bit more

 

inv.interactWith("Use")

 

npc.interactWith("use");

 

 

I know, I've tried that and it doesn't work. It just hovers over the entity.

 

its case sensitive so make sure its correct

  • Author
This is what I have right now, and it just clicks use on the gold bar, and hovers over the furnace. >.>
 
if (c.isInArea(FURNACE_AREA) && inv.contains(2357)) {
inv.interactWithId(2357, "Use");
furnace.interact("Use");

 

}
if (c.isInArea(FURNACE_AREA) && inv.contains(2357)) {
if (inv.interactWithId(2357, "Use")){
furnace.interact("Use");
 
}
}

try that?

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.