Jump to content

Hop Worlds When No Items on Floor


Recommended Posts

Posted (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 by lg_juggles

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...