I'm currently in the process of writing a leveling bot for a particular private server.
Since there is no "press tab -> target closest monster" feature, i had to implement it by myself.
So i managed to find a convenient block in the memory (map structure i suspect) which contains
the current coordinates of all the monsters in my field of vision.
That's pretty good because it serves the closest monster to my location on a silver platter.
From here we can proceed by writing some sort of a movement algorithm (using mine and the monsters' location,
and the 'W' 'A' 'S' 'D' keys) that gets me to the monster, and then just send a double click to the center of the screen to attack it.
However, i predict that this method will be long and hard to implement,
and indeed will prove to be very unaesthetic and clunky.
So (i'm referring to the bot writing veterans, and/or creative people),
do you have any idea how to avoid this mess, and solve the problem in an elegant way?
Maybe by (somehow) moving the mouse to the monster's location on the screen and click it?
Some trick to just target the monster?
Thank you.






