Quote Originally Posted by DarkstaR View Post
The bot is fast because I don't do stuff like this which is computationally expensive. For corpses, for instance, I keep a 17x15 array of integers that line up with the map. When I damage a creature, I update the integer on the array for that tile with the current time. When a body drops, if the time on the spot of the body is within X milliseconds, I know I damaged that creature and should consider the body. Checking health percents is trickier because the update heath and "you dealt xx damage to xx" packets com separately and would need to be paired and summed and related directly to a creature instead of just updating an array.

Is it doable? Yes. Is it efficient? Maybe, but much less so than now. Will it happen? Maybe.

So, doing like Spectrus said would be easier and better then? If a body drops, check for a message with loot of in it and if there's none, don't attempt to loot? :P