boomslap 5 Posted December 15, 2021 Maybe I am missing something very simple here but how do you turn off running even if the character has 100 Energy? Using Walking.walk() seems to activate running and setting the running threshold at 100 or above makes it so that running is turned on and off very quickly.
FriedNuts 2 Posted December 15, 2021 https://dreambot.org/javadocs/org/dreambot/api/methods/walking/impl/Walking.html#walk(org.dreambot.api.wrappers.interactive.Entity) Play around with isRunEnabled() and ToggleRun().
boomslap 5 Author Posted December 15, 2021 The issue I have is that on the next call to walk() it gets turned on again even if I toggle it off.
Phantomwire 2 Posted December 23, 2021 I've had this problem in the past @boomslap. Here's a quick fix, though I'm not sure if there are better workarounds. // Run threshold being set to 101 - enable manually if required log("Setting Run Threshold to 101 to ensure not enabled at any point."); Walking.setRunThreshold(101);
boomslap 5 Author Posted December 23, 2021 I am pretty sure I did try to set my runThreshold() to 150 but that didn't seem to work. It would toggle it on again on 100 Energy. Maybe I did something wrong ? I will have to test it again at some point to double check. Nevermind.. I probably had another issue affecting the matter in my code. Setting the runThreshold 101 and above works! Thanks for the suggestion and taking the time! @Phantomwire
Recommended Posts
Archived
This topic is now archived and is closed to further replies.