Someone did try this with iron powermining. They were still banned.
https://medium.com/@youngdp/my-attempt-at-botting-in-runescape-63e9e61e47ed
In theory it would be possible.
But when you're throwing your model into a purely speculative black box (since runescape does not tell you why or when you get banned) its very, VERY hard to train your model with loss actions, meaning empirical risk minimization will be impossible.