Thank you so much for sharing such a great code! I have very limited programming skills but happy to contribute some thoughts to improve any existing script. It is not just for farming but an exciting project to work on.
Firstly I would say, it is 100% possible to write a script which farm a large chosen area (possibly including random elements) and non-detectable. Blue knows that as well. It can get to a point where it is very difficult to clearly separate botting behaviour and human behaviour. Blue will only using mass filters to locate certain amount of players each time, and then view them case by case to ban them. If your behaviour are similar to human, not exactly same, you are guaranteed safety. For example, run a 15min script with a few random pauses and no longer than 8 hours a day is the way to go. Blue will not have the resources to find you after reviewing 1m similar player profiles when they still have 100k+ full time botters out there.
Sadly, I am not capable to write such a complicate script. I can only copy + paste and doing some minor variations on provided codes. But when some of the required codes are made available by professional people like you, I am ready to give it a go.
Anyway, enough talking. I have some questions to ask you:
1. What does the memory read / write func do it the main file? I believe anything related to memory reading is highly detectable and should be avoided. Basically I do not know much about this function and wondering if we can delete/replace them.
2. How do you detect and shot the mobs while moving?
I want to try your code but will not do so until I think it is safe. I do not know much about programming but willing to help you if you are still interested. I found it most entertaining to build a working script
