hajar424 Posted July 18, 2015 Share Posted July 18, 2015 Hey, do someone know how to check if you have item in your inventory and if not tell it to withdraw from bank ( not to walking to bank) Quote Link to comment Share on other sites More sharing options...
Bobrocket Posted July 18, 2015 Share Posted July 18, 2015 if (!getInventory().contains("Iron battleaxe")) { //no battleaxe } if (getInventory().contains(999, 1337, 289)) { //Has all of those IDs } Quote Link to comment Share on other sites More sharing options...
iJodix Posted July 18, 2015 Share Posted July 18, 2015 if (!inventory.contains("pleb")) { // inv does not contain pleb if (bank.isOpen()) { // if bank is open if (bank.contains("pleb") { // if bank contains pleb if (bank.withdraw("pleb", 1)) { // withdraw 1 pleb sleep(x); //sleep, tbh use conditionalsleep } } } } 2 Quote Link to comment Share on other sites More sharing options...
Tom Posted July 23, 2015 Share Posted July 23, 2015 You can also check for multiple items using the string values as well if(inventory.contains("feather", "cheese", "penis") { 1 Quote Link to comment Share on other sites More sharing options...