Jump to content

World Hop Not Working?


investmentideas

Recommended Posts

I have created a small test script to see how world hop function works. I have created the below script however when it is logged into world 308 and needs to swap to 316 it just picks random worlds, i.e. 504. Any advice?

 

@Override
public int onLoop() throws InterruptedException {

    if (worlds.getCurrentWorld() == 308){ //F2p world
        // complete action
        // after action is complete then world hop to the next world in the line
        worlds.hop(316); //F2p world
    } else {
        if (worlds.getCurrentWorld() == 316) { //F2p world
            // complete action 
            // after action is complete then world hop to the next world in the line
            worlds.hop(326); //F2p world

        }
    }




    return 0;
}
Link to comment
Share on other sites

Given that apparently refreshing the scripts fixed your problem I'd still like to add a suggestion, you aren't sleeping or checking on the worlds.hop() method in any way. Although what you did can and does for the most part work fine assuming no lag it still can be problematic and be something you need to check on. 

Edited by luciuspragg
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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