So I am coming across a weird problem in my scripting adventure. The current script that I am trying to make is a Jug filler and for some reason, code that uses "interact()" sometimes does the action twice. Here is an example:
I thought the conditional sleep would make it stop but it still does the double action of "Trade with" sometimes, not all the time.
Another example:
This is my run method for my jug filling task. It will select a jug and then select the fountain to fill the jugs. My problem with this section is that my bot will select the jug while it is already filling other jugs and then use it on the fountain again. This only happens like half the time, sometimes the bot will fill the jugs perfectly. Maybe isAnimating() does not catch the filling animation? that is a possibility because when I was debugging and looking at the animation ids, the bot would switch in between the filling animation id and -1 so maybe it depends on if the check gets lucky or not. But I checked the documentation of isAnimating() and it said that even if the bot is doing a series of animations, it should still return true. I am a bit lost lols.
If you guys have a better way of doing what I am doing please help a fellow scripter out Thanks guys!