PrimoFernando 7 Share Posted March 18, 2015 Hey, how can i check if a item is in the inventory? I tried getInventory().contains() but it seems that is not that method. Thanks. Link to comment Share on other sites More sharing options...
Vlad 216 Share Posted March 18, 2015 It works fine for me since I used it in my Fletcher. Are you typing in the item name correctly? You might have to type it in the exact same way it's typed in RS. I'm not sure if DreamBot uses .toLowerCase() when comparing strings. Link to comment Share on other sites More sharing options...
PrimoFernando 7 Author Share Posted March 18, 2015 It works fine for me since I used it in my Fletcher. Are you typing in the item name correctly? You might have to type it in the exact same way it's typed in RS. I'm not sure if DreamBot uses .toLowerCase() when comparing strings. Yes i want to check the inventory for example to lobster but it's not working, i'm doing getInventory().contains("Lobster") Link to comment Share on other sites More sharing options...
Stormscythe 263 Share Posted March 18, 2015 I have no problems with getInventory().contains() either - I use it in my clay softener o.O Link to comment Share on other sites More sharing options...
PrimoFernando 7 Author Share Posted March 18, 2015 I have no problems with getInventory().contains() either - I use it in my clay softener o.O Edit: Problem Solved it was a problem in gui , thank you guys. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.