So i have a method -
public boolean invContainsCrap(Script si) throws InterruptedException { si.log("invContainsCrap is running"); if (!inventoryEmptyExcept(si, "item 1", "item 2")) { return true; } return false; }
Im using this method as a while loop while i withdraw 2 different items. The first item is withdraw with no problems. but soon as my inventory contains that first item. i get stuck in the loop.
[iNFO][bot #2][03/31 10:41:31 PM]: withdrawIngredients is running
[iNFO][bot #2][03/31 10:41:31 PM]: withdrawNeeded is running
[iNFO][bot #2][03/31 10:41:31 PM]: invContainsCrap is running <- found crap in my inv.
[iNFO][bot #2][03/31 10:41:31 PM]: depositCrap is running <- Deposits said crap.
[iNFO][bot #2][03/31 10:41:31 PM]: invContainsCrap is running
[iNFO][bot #2][03/31 10:41:31 PM]: invContainsCrap is running
[iNFO][bot #2][03/31 10:41:32 PM]: invContainsCrap is running
[iNFO][bot #2][03/31 10:41:32 PM]: invContainsCrap is running
[iNFO][bot #2][03/31 10:41:33 PM]: invContainsCrap is running
[iNFO][bot #2][03/31 10:41:33 PM]: invContainsCrap is running
[iNFO][bot #2][03/31 10:41:34 PM]: invContainsCrap is running
[iNFO][bot #2][03/31 10:41:34 PM]: Terminating script Manifesto Wine...
[iNFO][bot #2][03/31 10:41:34 PM]: Thanks for using my script.
[iNFO][bot #2][03/31 10:41:34 PM]: Script Manifesto Wine has exited!
SKYPE - OSBOTManifesto || If you dont mind me asking a few questions now and then please add my skype