Vogelbekdier 1 Share Posted April 20, 2021 So I started working on my first script which is a fire rune crafter that teleport to duel arena crafts runes, teleports back to draynor and replaces empty glory/dueling rings when needed. The script is currently working fine but walking is a bit slow and glitchy some times. I am currently walking the bot using the following method, which is currently very slow as it wait for the character to completely stop moving before it makes it's next click. Quote Area duelArena = new Area(3308, 3240, 3321, 3230, 0); Area altarEntrance = new Area(3311, 3253, 3310, 3251, 0 ); if(Inventory.count("Pure essence") > 5 && !altarEntrance.contains(getLocalPlayer()) && !altarInside.contains(getLocalPlayer())) { // Walking to entrance log("Walking to entrance"); Walking.walk(altarEntrance.getRandomTile()); sleepUntil(() -> !getLocalPlayer().isMoving(), 8000); I would also like to add some randomness into the script for toggling run to on but am not sure how to go about this, for example how would I let the script toggle run if run is between x and y but not always be exactly the same number of run available? Link to comment Share on other sites More sharing options...
Pseudo 179 Share Posted April 20, 2021 Walking.getDestination is what you need bud. Sleep until X tiles from destination tile before continuing the walking cycle. Link to comment Share on other sites More sharing options...
Vogelbekdier 1 Author Share Posted April 21, 2021 Thanks my man, appreciate the help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.