PrimoFernando 7 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.
Vlad 216 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.
PrimoFernando 7 Author 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")
Stormscythe 263 Posted March 18, 2015 I have no problems with getInventory().contains() either - I use it in my clay softener o.O
PrimoFernando 7 Author 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.