Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • Invent Clicking Query


    Guiness1
     Share

    Recommended Posts

    7 minutes ago, Guiness1 said:

    Thanks Koschie,

     

    Im looking to click on 27 items in my invent. How would I go about do that? 

     

    Thanks!

    Can do something like this. 

     

    for (Item item : getInventory().all(i-> i != null && i.getName().equals("Trout"))) {
        if (item.interact("Drop"))
            sleep(200,300);
    }

     

    Link to comment
    Share on other sites

    Adjusted that to drop what I need.

    It seems to do the clicking but not on my actual invent. It doesn't swap to my invent  before hand. Just clicks on my magic tab :D 

    is there a way to make sure it's got my invent open?

    thanks for all the help 

    Link to comment
    Share on other sites

    1 hour ago, Guiness1 said:

    Adjusted that to drop what I need.

    It seems to do the clicking but not on my actual invent. It doesn't swap to my invent  before hand. Just clicks on my magic tab :D 

    is there a way to make sure it's got my invent open?

    thanks for all the help 

    getTabs().isOpen && getTabs().open(Tab.INVENTORY)

    Go look in the docs, its all there

    Link to comment
    Share on other sites

    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
     Share

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.