The first bit of code runs smoothly, but the 2nd freezes my client... any ideas?
if(!player.isAnimating()){
if (!player.isMoving()){
wheel.interact("Spin"); //Wheel is now visible, spin bowstring
sleep(random(700, 3000));
spinMenu.hover();
mouse.click(true);
if(menu.isOpen()){
sleep(random(700, 3000));
menu.selectAction("Make X");
}
}
}
vs
if(!player.isAnimating()){
if (!player.isMoving()){
if(!spinMenu.isVisible()){
wheel.interact("Spin"); //Wheel is now visible, spin bowstring
sleep(random(700, 3000));
}
spinMenu.hover();
mouse.click(true);
if(menu.isOpen()){
sleep(random(700, 3000));
menu.selectAction("Make X");
}
}
}