miquel011 5 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!
MadsPH 4 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)
miquel011 5 Author 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.
miquel011 5 Author 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.