progamerz Posted November 23, 2015 Share 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 Quote Link to comment Share on other sites More sharing options...
Diclonius Posted November 23, 2015 Share Posted November 23, 2015 Use mouse.click() and mouse.move() instead, these are the new methods. Quote Link to comment Share on other sites More sharing options...
progamerz Posted November 23, 2015 Author Share 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; } Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted November 23, 2015 Share 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)) Quote Link to comment Share on other sites More sharing options...
atoo Posted November 23, 2015 Share Posted November 23, 2015 Step 1. Learn some basics Step 2. Don't copy paste Step 3. Don't copy paste Quote Link to comment Share on other sites More sharing options...
progamerz Posted November 23, 2015 Author Share 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 Quote Link to comment Share on other sites More sharing options...
Chris Posted November 23, 2015 Share 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 Quote Link to comment Share on other sites More sharing options...
FrostBug Posted November 23, 2015 Share 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 Quote Link to comment Share on other sites More sharing options...
progamerz Posted November 23, 2015 Author Share 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 Quote Link to comment Share on other sites More sharing options...
atoo Posted November 24, 2015 Share 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 Quote Link to comment Share on other sites More sharing options...