Your bot is pretty good, the idea of using the auto-walk and auto-retaliate is clever, but there are faults (aka, when the bot gets stuck and the AFK function just keeps the character logged in). I get the initializing "freeze" about 50% of the time on start up and usually restarting OS bot works. It also seems that when I don't choose an account for relogging in it works, but that is probably un-related.
I am looking forward to adding some improvements to this code, I will throw some things your way when I get a chance to really look through your code, I am currently swamped IRL and haven't had any time.