miquel011 5 Share Posted August 24, 2018 After teleporting somehow i try to walk back to varrock from lumbridge and the bot still believes its on varrock, is there any way to update my current tile on the web or anything i can do about it? to walk i always use this: private void playerWalk(Area area) { if (getWalking().walk(area.getRandomTile())) { if (!getWalking().isRunEnabled() && getWalking().getRunEnergy() > Calculations.random(30, 70)) { getWalking().toggleRun(); } sleep(Calculations.random(2000, 3000)); } } Works everytime BUT after teleport edit: tried to stop the bot, teleport manually and start it, then it works perfectly... hmm this is the code i use to teleport. after withdraw my items: if (lumbridgeArea.contains(getLocalPlayer().getTile())) { sleep(50000, 60000); } else { if (getMagic().castSpell(Normal.HOME_TELEPORT)) { sleep(10000, 20000); } } THANKS! Link to comment Share on other sites More sharing options...
MadsPH 4 Share Posted August 24, 2018 How does the bot still think it's in Varrock? Can you post a gif? Also, there is no need to enable run manually. You can just do the following and it will enable it when necessary, using the default walk methods. getWalking().setRunThreshold(int runThreshold) Link to comment Share on other sites More sharing options...
Nex 2542 Share Posted August 24, 2018 restart the client this was a bug due to rs update Link to comment Share on other sites More sharing options...
miquel011 5 Author Share Posted August 24, 2018 3 hours ago, MadsPH said: How does the bot still think it's in Varrock? Can you post a gif? Also, there is no need to enable run manually. You can just do the following and it will enable it when necessary, using the default walk methods. getWalking().setRunThreshold(int runThreshold) Hey! thanks!!! nice one to save code. Link to comment Share on other sites More sharing options...
miquel011 5 Author Share Posted August 24, 2018 29 minutes ago, Nex said: restart the client this was a bug due to rs update i guess i did something wrong, it happened yesterday too, from the beginning never worked as expected. Maybe im stupid and my code is shit lol Link to comment Share on other sites More sharing options...
Miami 369 7 Share Posted August 25, 2018 if you post the actual code we can debug it Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.