Hey guys,
I was kinda looking into world hopping but it couldn't seem to get it to work. Now I tried to kind of build around it but for some weird reason it gets stuck after the logout
public void hopButtonClick() {
mouse.click(55, 480, false);
}
public void loginChar() throws InterruptedException {
mouse.click(460, 290, false);
sleep(random(300, 600));
keyboard.typeString("USERNAME HERE");
sleep(random(500, 1000));
mouse.click(365, 275, false);
sleep(random(500, 1000));
keyboard.typeString("PASSWORD HERE");
sleep(random(500, 1000));
mouse.click(300, 320, false);
sleep(random(3000, 4000));
mouse.click(385, 335, false);
sleep(random(3000, 4000));
}
public void hopAndLog() throws InterruptedException {
int hopWorld = random(1,10);
tabs.logoutTab.logOut();
sleep(random(4000, 5000));
hopButtonClick();
sleep(random(500, 1000));
if (hopWorld == 1) {
mouse.click(244, 131, false);
} else if (hopWorld == 2) {
mouse.click(245, 275, false);
} else if (hopWorld == 3) {
mouse.click(334, 56, false);
} else if (hopWorld == 4) {
mouse.click(337, 178, false);
} else if (hopWorld == 5) {
mouse.click(329, 417, false);
} else if (hopWorld == 6) {
mouse.click(426, 106, false);
} else if (hopWorld == 7) {
mouse.click(427, 224, false);
} else if (hopWorld == 8) {
mouse.click(425, 370, false);
} else if (hopWorld == 9) {
mouse.click(425, 464, false);
} else if (hopWorld == 10) {
mouse.click(518, 154, false);
}
sleep(random(500, 1000));
loginChar();
}
EDIT: it seems like the end of my post didn't make it. In the first instance I tried to use world.Hop(303);
It does log out but gets stuck at the login screen doing nothing. (in both instances)
Also, initially I would like to to make the script log out when somebody pops up on my map, anyone has good suggestions on how to do that? I was thinking of
if (dude pops up on minimap) {
hopAndLog();
}
I was just wondering if anybody had an idea on how to do the dude pops up on minimap part?
Cheers,
Forcanl