It's quite an elaborate issue haha, my scripts are based on 'Activities', when an activity ends, I call canChangeActivity() within that class, which for example makes sure that I am no longer on a rooftop before finishing the AgilityActivity. I had a similar thing for tutorial island, where the canChangeActivity() makes sure I sell all my stuff to the store before I continue.
It turns out that I forgot to wait until my bots fully login before running the activities, which resulted in the scripts thinking it hasn't done tutorial island after a hard restart.
Result: 8M worth of logs in general store
hahaha