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
  • Interacting with an Item in ur Inventory


    Clonky

    Recommended Posts

    Posted

    What is the best way to interact with an item in the inventory? I want it to drink one absorb potion fully until it start with another one.

    Posted

    Ive tried it multiple times getInventory().interact("Absorption","Drink")

    Does not work..

    Posted

    If you got different doses what method is best, if you want it to fully drink one potion before starting next

    Posted

    When i try to filter using this method 

    getInventory().interact(item -> item != null , ("Absorption"), "Drink")

    I get this errror : Overrides method in 

    org.dreambot.api.methods.filter.filter;
    Posted
    getInventory().get(item -> item!=null && item.getName().contains("Absorption")).interact("Drink");
    Posted

    Does that work for you?? I keep getting the filter error.....

    Posted

    Error:(6, 😎 java: test12 is not abstract and does not override abstract method onLoop() in org.dreambot.api.script.AbstractScript

    Posted

    It sounds like there's some more basic level Java stuff that you need to learn. It'll help a lot with issues like this.

    Posted

    I fixed it

    if (getInventory().contains(Absorption)) {
        getInventory().get(Absorption).interact("Drink");
        

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • 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.