Jump to content

How to use inventory item on fire?


Recommended Posts

Posted (edited)
//interact with inventory
getInventory().interact("Use", "item");
//check is item selected
if(getInventory().isItemSelected()){
    //get the fire object
    RS2Object fire = getObjects().closest("Fire");
    //interact with fire
    fire.interact("Use");
} 

I'm guessing that is what you want to do.

Edited by Vilius
Posted
//interact with inventory
getInventory().interact("Use", "item");
//check is item selected
if(getInventory().isItemSelected()){
    //get the fire object
    RS2Object fire = getObjects().closest("Fire");
    //interact with fire
    fire.interact("Use");
} 

I'm guessing that is what you want to do.

 

where da fuck are your dynamic sleeps?!!?!?!?!

  • Like 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...