thats true for buildings but buttons like fight are usually all the same for what i know.
as you have seen it already worked for others with my color 😉
maybe im gonna add some more shades but first im gonna wait for antidote and his opinion
Developing Bot
Started by Antidote · Dec 5, 2014
Hello guys, I'm currently working on the new GUI and I'm rewriting the code of Antidote. I will improve the current codes and make it as efficient as possible. Also the code will be more organized so it is easier to find all of the functions.
I will also implement a new system of pixelsearch that will enable us to be able to work on finding dead bases and such.
Finally, it will probably take me this whole day and by tomorrow or later today I will be finished.
Hello guys, I'm currently working on the new GUI and I'm rewriting the code of Antidote. I will improve the current codes and make it as efficient as possible. Also the code will be more organized so it is easier to find all of the functions.
I will also implement a new system of pixelsearch that will enable us to be able to work on finding dead bases and such.
Finally, it will probably take me this whole day and by tomorrow or later today I will be finished.
wow, special thanks to you GkevinOD, Antidote, AtoZ and all who help until this bot function well, been keep visiting and see this is huge development is working great with all of help, do please take ur time on holiday and enjoy it, we sure can be wait 🙂 happy holiday and merry xmas guys, may GOD bless u all
i cant run bot 002 it say u cant run this app in your pc im using windows 8.1 32bit help me pls same as bot 003 how to use it thanks
i cant run bot 002 it say u cant run this app in your pc im using windows 8.1 32bit help me pls same as bot 003 how to use it thanks
Have you installed autoit? If so, try running the script in 32bit from the file ending with .au3 instead of using the compiled .exe.
I would like to test the not but I don't know where to get the file since there are so many links. Possibility to post current links below? Thank you
cydin wrote:
GkevinOD wrote:
Hello guys, I'm currently working on the new GUI and I'm rewriting the code of Antidote. I will improve the current codes and make it as efficient as possible. Also the code will be more organized so it is easier to find all of the functions.
I will also implement a new system of pixelsearch that will enable us to be able to work on finding dead bases and such.
Finally, it will probably take me this whole day and by tomorrow or later today I will be finished.
wow, special thanks to you GkevinOD, Antidote, AtoZ and all who help until this bot function well, been keep visiting and see this is huge development is working great with all of help, do please take ur time on holiday and enjoy it, we sure can be wait 🙂 happy holiday and merry xmas guys, may GOD bless u all
I only contributed a little. Major credit to GKevinOD and Antidote. 😎
@HAX4DAYS It is on the first page. Go here http://ge.tt/6Twq4O72 and download Bot 002.exe
@Antidote, GKevinOD
I started with the ImageSearchArea function and used the x64 version. I divided the search into 9 areas and added a bit of overlap. I was able to identify if the image is present in a specific area of bluestacks. But there is a bit of a problem - Color Variations. I tried increasing tolerance but it also increased the number of hits and even identified non-collectors like elixir storages. I also tried increasing the cropped area but it only made the problem worse. GKevinOD might develop a better alternative to ImageSearch. Kudos to that! 😎
Again, I'm not a programmer but below is my (newbie)code. I'll try uploading the image files. Btw, how do I upload files here?
#include <ImageSearch.au3>
#include <MsgBoxConstants.au3>
opt("mousecoordmode",0)
Global $Title = "BlueStacks App Player"
;Global $Title = "COLLECTORS 11 FULL10 - Windows Photo Viewer"
;Global $Title = "Untitled-1 @ 100% (Layer 1, RGB/8) *"
Global $HWnD = WinGetHandle (WinGetTitle($Title))
Global $ZC=0,$ZombieCount=0, $E
Global $SearchZombie=0, $ZombieCount=0
Global $Tolerance=50
Global $Lx[9]= [ 0, 287, 574, 0, 287, 574, 0, 287, 574 ]
Global $Ly[9]= [ 0, 0, 0, 240, 240, 240, 480, 480, 480 ]
Global $Rx[9]= [ 302, 589, 860, 302, 589, 860, 302, 589, 860 ]
Global $Ry[9]= [ 255, 255, 255, 495, 495, 495, 720, 720, 720 ]
Global $Area[8][9], $IS_x[8][9], $IS_y[8][9], $E[8]
$E[0] = @ScriptDir&"\ELIX\E9F9.bmp"
$E[1] = @ScriptDir&"\ELIX\E9F10.bmp"
$E[2] = @ScriptDir&"\ELIX\E10F8.bmp"
$E[3] = @ScriptDir&"\ELIX\E10F9.bmp"
$E[4] = @ScriptDir&"\ELIX\E10F10.bmp"
$E[5] = @ScriptDir&"\ELIX\E11F8.bmp"
$E[6] = @ScriptDir&"\ELIX\E11F9.bmp"
$E[7] = @ScriptDir&"\ELIX\E11F10.bmp"
ZombieSearch()
Func ZombieSearch()
WinActivate ($HWnD)
$SearchZombie=0
For $p=0 to 7 Step 1
IS_Area($p,$E[$p])
$ZombieCount=$ZombieCount+$ZC
Next
If $ZombieCount > 1 Then
$SearchZombie=1
EndIf
MsgBox(0,"","$ZombieCount= "&$ZOmbieCount&", $SearchZombie= "&$SearchZombie)
EndFunc
Func IS_Area($p,$E)
$ZC =0
For $i=0 to 8 Step 1
$Area[$p][$i]=_ImageSearchArea($E,0,$Lx[$i],$Ly[$i],$Rx[$i],$Ry[$i], $IS_x[$p][$i], $IS_y[$p][$i],$Tolerance)
If $i=4 Then
Else
$ZC=$ZC+$Area[$p][$i]
EndIf
Next
MsgBox(0,"",$E&" $Area ["&$p&"]["&$i&"] $ZC: "&$ZC&" = "&@CRLF&$Area[$p][0]&","&$Area[$p][1]&","&$Area[$p][2]&@CRLF&""&$Area[$p][3]&",c,"&$Area[$p][5]&@CRLF&""&$Area[$p][6]&","&$Area[$p][7]&","&$Area[$p][8])
EndFunc
Also, I'm bad at arrays. How do I merge the array data of 2 dimension into 1 with criteria of an 'OR'? I'm planning to merge $Area[$p][$i] to $Area[$i] as I only want to identify the presence of elix per area and not elix collector type.
ex.
[0,0,1,0,0,1,0,0,1]+
[1,0,0,0,0,0,0,1,1]=
[1,0,1,0,0,1,0,1,1]
I selected all 4 of the barracks but the bot would click on the barrack and randomly press on the screen (probably where the troop would be) but the bot never selects train once it presses on barrack. Not sure what to do:-\ running Windows 8 and I only downloaded bot 002