It works now:) I included to my bot and works fine:) Just when i checked manually i couldnt check that fast to see it's ok:DQuote:
Maybe you could try this:
Let your program read from the first 10 or so monster addresses, there chance that all of them will be empty should be low (or read every second, like offset 0, 8, 10, 18 and so on).
Now we'd have to find out what monster is closest to our char. Maybe this could be done buy reading the mob's coordinates (those are ctrl-click coords, right)
subtract the from the char's coords
= -
= -
make and be positive (multiplicate with -1 if negative or so)
add and
The lowest sum belongs to the monster that is closest to you.
Or, easier, just read from 10 monster addresses and attack the first "victim" you find. If the bot doesn't run miles when you do it like this, it should be ok.