November 23, 201510 yr 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, 201510 yr by progamerz
November 23, 201510 yr Author 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; }
November 23, 201510 yr 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))
November 23, 201510 yr Author 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
November 23, 201510 yr 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
November 23, 201510 yr 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
November 23, 201510 yr Author 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
November 24, 201510 yr 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
Create an account or sign in to comment