Exemple #1
0
        //Return health value percentage
        public static int Mana()
        {
            //Get matching x pixels of the health bar
            int value = ImageRecognition.MatchingXPixels("Game/mana.png", 15);

            //Get total pixels of health bar
            int total = PixelCache.GetWidth("Game/mana.png");

            //Get percentage of 100
            return((int)Math.Round((double)(100 * value) / total));
        }
Exemple #2
0
        public static Point GetNearestMinion()
        {
            var position = ImageRecognition.FindImagePosition("Game/minionHealthBar.png");

            return(position);
        }