Quantcast
Channel: OwnedCore - World of Warcraft Exploits, Hacks, Bots and Guides.
Viewing all articles
Browse latest Browse all 277771

Pixel Based Bot

$
0
0
I have been contemplating starting a pixel based bot and was wandering if anyone that has done it "efficiently".
For testing purposes that keep it simple and say I want to find the current players health and from the health bar I want to get the percent health, and I would want to find the health bar.

Sample health bar below so we all talking about the same health bar - position can be anywhere on the screen.



To find the position of the healh bar I was thinking of taking a few key colors from it, and locating them on the screen, if they found and they the correct pixels apart then we have the health bar (assuming same screen scaling).
To find the percent health I would need to find the length of the health bar in pixels and calculate how much of that health bar was green and how much was not (reading from the start position of the health bar to the first "greyish" pixel.

Any other tips or hints welcome - even if they have nothing to do with the above example directly but will help in pixel based bots.

Viewing all articles
Browse latest Browse all 277771

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>