(01-06-2015, 01:22 AM)yuji Wrote: Works with fixes. Though the "dead base" function isn't working well; so what is it based around? Image verification or is it a small written error in the code?
(01-06-2015, 01:35 AM)hervianzhou Wrote:(01-06-2015, 01:22 AM)yuji Wrote: Works with fixes. Though the "dead base" function isn't working well; so what is it based around? Image verification or is it a small written error in the code?
i just modified VillageSearch(), like i reply before, and it show for a sec and then hide again, maybe that one is working right now for searching dead base,
(01-05-2015, 09:04 AM)blindpick Wrote: i tried replacing the coordinates but only level 2 barracks is trying to make troops.I fixed following bellow. Add +100 after $TrainPos[0]
level 5 and 4 barracks is not. it's trying to click upgrade.
Click($TrainPos[0]+100, $TrainPos[1]) ;Click Train Troops button
If _Sleep(500) Or $RunState = False Then ExitLoop(2)
(01-05-2015, 08:58 AM)GkevinOD Wrote: @DiviniT3a go to line 1146 try changing the 10 as the last parameter to a lower number like 5. I'll find a better pixel for it because I have max barracks.had the same issue and now its working! thanks GkeninOD! =D
Code:Local $TrainPos = _PixelSearch(155, 603, 694, 605, Hex(0x603818, 6), 5) ;Finds Train Troops button