September 10, 201312 yr 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. ;)
September 10, 201312 yr 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.
September 10, 201312 yr 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.
September 10, 201312 yr select the item in your inventory then interact with the entity by using "use" instead of say, "Talk-to".
September 10, 201312 yr 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
September 10, 201312 yr 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. 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");
September 10, 201312 yr 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. 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.
September 10, 201312 yr 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. 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
September 10, 201312 yr 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"); }
September 11, 201312 yr if (c.isInArea(FURNACE_AREA) && inv.contains(2357)) { if (inv.interactWithId(2357, "Use")){ furnace.interact("Use"); } } try that?