Hi troro,
I'm sorry you feel this way. If I felt a complete rewrite of the code would prevent bans, then of course I would do that, however that simply isn't the case. The reason for this stems from the problem at hand: The goal is to emulate a human playing Runescape. Jagex have an entire team and 20+ years to dedicate to the comparatively simpler task of telling bots and humans apart, so naturally they have the upper hand. For this reason, rather than altogether avoiding detection (a task which, considering all variables, is next to impossible), the best approach is to 'bot under the radar'. As much as I don't like repeating myself, I am confident that my last reply summarises this well:
I may have already pointed you to this resource, however this is a helpful summary of the topic by an ex-developer: https://osbot.org/forum/topic/124429-preventing-rs-botting-bans-v3/
Best
Apa