When my bot is enabled. I've got engine.exe, game freeze (like disconnect) or getting expelled. For example 20 min after botting or 2 hours. There is no rules when and how.
I am using 3 threads, one for command, one for bot and one for auto heal.
I dont have variable declarations inside of loops. For slow downs I use Sleep.
For example Sleep(15) for running or Sleep(700) for attacking.
I have also tried with 1 thread for Command() function and bot runned from Command () thread. I've also replaced all Sleeps with GetTickCount and IF instruction, but still got same problem.
I think that problem is with SendPacket() function, it crashes the game.
What you think about that and how your code looks?
I am using 3 threads, one for command, one for bot and one for auto heal.
I dont have variable declarations inside of loops. For slow downs I use Sleep.
For example Sleep(15) for running or Sleep(700) for attacking.
I have also tried with 1 thread for Command() function and bot runned from Command () thread. I've also replaced all Sleeps with GetTickCount and IF instruction, but still got same problem.
I think that problem is with SendPacket() function, it crashes the game.
What you think about that and how your code looks?