Clonky 0 Share Posted February 16, 2019 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. Link to comment Share on other sites More sharing options...
Nuclear Nezz 2040 Share Posted February 16, 2019 getInventory().interact("name","Action") Link to comment Share on other sites More sharing options...
Clonky 0 Author Share Posted February 16, 2019 Ive tried it multiple times getInventory().interact("Absorption","Drink") Does not work.. Link to comment Share on other sites More sharing options...
Clonky 0 Author Share Posted February 16, 2019 If you got different doses what method is best, if you want it to fully drink one potion before starting next Link to comment Share on other sites More sharing options...
Clonky 0 Author Share Posted February 16, 2019 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; Link to comment Share on other sites More sharing options...
Zawy 928 Share Posted February 16, 2019 getInventory().get(item -> item!=null && item.getName().contains("Absorption")).interact("Drink"); Link to comment Share on other sites More sharing options...
Clonky 0 Author Share Posted February 16, 2019 Does that work for you?? I keep getting the filter error..... Link to comment Share on other sites More sharing options...
Clonky 0 Author Share Posted February 16, 2019 Error:(6, 😎 java: test12 is not abstract and does not override abstract method onLoop() in org.dreambot.api.script.AbstractScript Link to comment Share on other sites More sharing options...
Nuclear Nezz 2040 Share Posted February 17, 2019 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. Link to comment Share on other sites More sharing options...
Clonky 0 Author Share Posted February 17, 2019 I fixed it if (getInventory().contains(Absorption)) { getInventory().get(Absorption).interact("Drink"); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.