progamerz Posted November 23, 2015 Posted November 23, 2015 (edited) Hey i wanna replace the client.movemouse and client.click() As its currently showing errors any1 help? private boolean walkTile(Position p) throws InterruptedException { client.movemouse(new MiniMapTileDestination(bot, p), false); sleep(random(150, 250)); client.click(); int failsafe = 0; while (failsafe < 10 && myPlayer().getPosition().distance(p) > 2) { sleep(200); failsafe++; if (myPlayer().isMoving()) failsafe = 0; } if (failsafe == 10) return false; return true; } Hope some1 will help me. Thanks, -Progamerz Edited November 23, 2015 by progamerz
Diclonius Posted November 23, 2015 Posted November 23, 2015 Use mouse.click() and mouse.move() instead, these are the new methods.
progamerz Posted November 23, 2015 Author Posted November 23, 2015 Use mouse.click() and mouse.move() instead, these are the new methods. Thanks but now showing error here private boolean walkTile(Position p) throws InterruptedException { mouse.move(new MiniMapTileDestination(bot, p), false); //(new MiniMapTileDestination(bot, p), false); sleep(random(150, 250)); mouse.click(); int failsafe = 0; while (failsafe < 10 && myPlayer().getPosition().distance(p) > 2) { sleep(200); failsafe++; if (myPlayer().isMoving()) failsafe = 0; } if (failsafe == 10) return false; return true; }
Flamezzz Posted November 23, 2015 Posted November 23, 2015 Thanks but now showing error here private boolean walkTile(Position p) throws InterruptedException { mouse.move(new MiniMapTileDestination(bot, p), false); //(new MiniMapTileDestination(bot, p), false); sleep(random(150, 250)); mouse.click(); int failsafe = 0; while (failsafe < 10 && myPlayer().getPosition().distance(p) > 2) { sleep(200); failsafe++; if (myPlayer().isMoving()) failsafe = 0; } if (failsafe == 10) return false; return true; } mouse.click(false) or just mouse.click(new MiniMapTileDestination(bot, p))
atoo Posted November 23, 2015 Posted November 23, 2015 Step 1. Learn some basics Step 2. Don't copy paste Step 3. Don't copy paste
progamerz Posted November 23, 2015 Author Posted November 23, 2015 Step 1. Learn some basics Step 2. Don't copy paste Step 3. Don't copy paste I know the basics of java but not the API. mouse.click(false) or just mouse.click(new MiniMapTileDestination(bot, p)) Worked Ty
Chris Posted November 23, 2015 Posted November 23, 2015 Step 1. Learn some basics Step 2. Don't copy paste Step 3. Don't copy paste Now Now there is no need for this attitude in this section. Fuck boy kappa
FrostBug Posted November 23, 2015 Posted November 23, 2015 I know the basics of java but not the API. Worked Ty If you're looking for specific methods, you can do a quick search in the API index Locate the method you want by its name, and it'll tell you what class(es) it belongs to 1
progamerz Posted November 23, 2015 Author Posted November 23, 2015 If you're looking for specific methods, you can do a quick search in the API index Locate the method you want by its name, and it'll tell you what class(es) it belongs to Oh ty for saying me about that didn't know that there is something like that
atoo Posted November 24, 2015 Posted November 24, 2015 Now Now there is no need for this attitude in this section. Fuck boy kappa I'm not a rude boi, it was simply a meme. Because no dream team equals the meme team 1