Jump to content

Osbot 2 world hopper


Molly

Recommended Posts

Hello, I am having an issue using the world hopper. I have set up my script to hop worlds using the world hopper and upon the world hopper activating and the bot logging out the auto-login random kicks in and attempts to login prior to a new world being selected. Is there any way I can fix this? I was really hoping to being able to set my script up to hop out of bot worlds...

 

Here is the code I am using:

 

for (int i = 0; i < 13; i++) {
    if ((client.getCurrentWorld()) == BadWorlds) {
    log("Bad world, let's hop!");
    BadWorld = BadWorlds;
    LetsHop = true;
    }
    }
    
    if (LetsHop == true) {
    Random r = new Random();
    int World = r.nextInt(55);
     
    log("Hopping to world " + Worlds[World]);
    int thisworld = Worlds[World];
    getWorldHopper().hop(thisworld);
    log("Now in a good world!");
   
    }
 
The script succesfully runs through all the lines, it will logout and the auto-login random overrides the world hopper it seems.
Edited by Molly
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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