So here is my code
if (loot1 == null && !Tile1.contains(myPlayer()) && Tile2.contains(myPlayer())) {
log ("going back to safe");
getWalking().walk(Tile1);
new ConditionalSleep(5000, 1000)
{
@Override
public boolean condition()
{
return Tile1.contains(myPosition());
}
}.sleep();
}
The idea is that it goes to loot and when there is no loot it runs back to safety wher