Juggles Posted April 4, 2016 Posted April 4, 2016 (edited) I have if (!getInventory().isFull()){getGroundItems().closest("Item").interact("Take");sleep(Calculations.random(2000, 3000));}if (!getInventory().isFull() && (!getBank().isOpen())) {sleep(Calculations.random(500, 1000));hopWorlds();} else{getGameObjects().closest("Bank Booth").interact("Bank"); } The problem I have am having is if the item is already picked up before my bot switches to that world, it will sit there waiting until it respawns. Is there a way to make my bot switch worlds if the item is not there when it hops to the world? Edited April 4, 2016 by lg_juggles
GoldenGates Posted April 4, 2016 Posted April 4, 2016 Check if you're at said location, if there is a GroundItem in that area, pick it up, if not then hop worlds.
Juggles Posted April 4, 2016 Author Posted April 4, 2016 Check if you're at said location, if there is a GroundItem in that area, pick it up, if not then hop worlds. And then would I add if inventory is full, bank?
DragonAlpha Posted April 4, 2016 Posted April 4, 2016 And then would I add if inventory is full, bank? Of course