|
|
@ -29,7 +29,6 @@ public class fisher { |
|
|
|
static RGB BOBBER_COLOR = new RGB(255, 180, 31); |
|
|
|
static RGB BOBBER_COLOR = new RGB(255, 180, 31); |
|
|
|
|
|
|
|
|
|
|
|
static boolean fishing = false; |
|
|
|
static boolean fishing = false; |
|
|
|
static boolean windowActivated = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static Robot bot; |
|
|
|
static Robot bot; |
|
|
|
|
|
|
|
|
|
|
@ -112,7 +111,7 @@ public class fisher { |
|
|
|
updateGUIThread.start(); |
|
|
|
updateGUIThread.start(); |
|
|
|
|
|
|
|
|
|
|
|
// fishing logic
|
|
|
|
// fishing logic
|
|
|
|
windowActivated = false; |
|
|
|
boolean windowActivated = false; |
|
|
|
while (true) { |
|
|
|
while (true) { |
|
|
|
Thread.sleep(50); |
|
|
|
Thread.sleep(50); |
|
|
|
|
|
|
|
|
|
|
@ -243,7 +242,8 @@ public class fisher { |
|
|
|
|
|
|
|
|
|
|
|
if (bobberCoords.x == -1 && bobberCoords.y == -1 && initialBobberPosition.x != -1 && initialBobberPosition.y != -1) { |
|
|
|
if (bobberCoords.x == -1 && bobberCoords.y == -1 && initialBobberPosition.x != -1 && initialBobberPosition.y != -1) { |
|
|
|
// the game has been finished
|
|
|
|
// the game has been finished
|
|
|
|
Thread.sleep(8000); |
|
|
|
bot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); |
|
|
|
|
|
|
|
Thread.sleep(6000); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|