Hello everyone,
I have coded an alternative method to getting the Gold and Elixir with very high accuracy (100% accuracy for me). It uses PixelSearch alone and I made a script with the function inside. After researching the PixelSearch, I made the script and I had enough time since Winter Break just set in for me. I'll be able to work on the development of this bot for at least a little bit.
http://pastebin.com/DGsg2y0Z
There are instructions inside the script and you can basically run the script when you find match. It will only get the value of the gold because elixir and the rest are not the same color as gold.
-------------------------------------------------
You must have 860x720 Resolution, also there may be complications within the code that I haven't tested with other computers.
*The x and y axis may be not the same, so with an image the x and y axis should locate to :
Where the red is, so basically the first pixel of the first digit in the upper left corner.
-------------------------------------------------
There may also be a problem that may occur in the colors as it may vary from computer to computer.
If these errors occur, the script will output a blank message box indicating that the numbers could not be found.
============================
Finally, if all goes well it should look like this:
I have coded an alternative method to getting the Gold and Elixir with very high accuracy (100% accuracy for me). It uses PixelSearch alone and I made a script with the function inside. After researching the PixelSearch, I made the script and I had enough time since Winter Break just set in for me. I'll be able to work on the development of this bot for at least a little bit.
http://pastebin.com/DGsg2y0Z
There are instructions inside the script and you can basically run the script when you find match. It will only get the value of the gold because elixir and the rest are not the same color as gold.
-------------------------------------------------
You must have 860x720 Resolution, also there may be complications within the code that I haven't tested with other computers.
*The x and y axis may be not the same, so with an image the x and y axis should locate to :
Where the red is, so basically the first pixel of the first digit in the upper left corner.
-------------------------------------------------
There may also be a problem that may occur in the colors as it may vary from computer to computer.
If these errors occur, the script will output a blank message box indicating that the numbers could not be found.
============================
Finally, if all goes well it should look like this: