Thread Rating:
  • 40 Vote(s) - 4.78 Average
  • 1
  • 2
  • 3
  • 4
  • 5
5.4.2.5.2 - Better Troops Deployment (LF Style), Fixed Train Troops
(02-02-2015, 12:27 AM)DrImmo Wrote:  
(02-01-2015, 11:41 PM)using Wrote:  for the last barrack issue, edit the code in the "Func Train()"


Code:
        SetLog("Training Troops Complete")
        Click(1, 1, 2, 250); Click away twice with 250ms delay
        ExitLoop
    WEnd
EndFunc   ;==>Train

(02-01-2015, 11:55 PM)dinobot Wrote:  Regards to the out of sync, try revert to old coding in 5.4.2.2 as below... Swapping of return false and true.
Please test out and report back..


Code:
Func checkNextButton() ;Checks for Out of Sync or Connection Lost errors
    $Message = _PixelSearch(457, 300, 458, 330, Hex(0x33B5E5, 6), 10) ;Check for out of sync or inactivity
    If IsArray($Message) = False Then
        Return False ;Button available
    Else
        Return True ;Out of sync or inactivity error.
    EndIf
EndFunc   ;==>checkNextButton

Thanks in advance guys. I put both changes in the code, testing now... lets see if that's working as well as i think it will Wink

the wrong code in my script only of this
_PixelSearch
(458, 300, 458, 330, Hex
(0x33B5E5, 6), 10)
x left and x right coordinate is same... i change 457 to 458 in new version, and it work like a charm.

for swapping return. im not wrong. this code will not force bot to restarting.
if the Out of Sync message not appear, bot will click in the Next Button location.
But in new version, i was added code when Out of Sync message still not appear and white screen still not gone after 3 minutes, bot will restarting Coc and itself
 


Messages In This Thread
Edited bot - by saxmydix - 01-27-2015, 01:28 AM
RE: 5.4.2.2.2 - by saxmydix - 01-27-2015, 01:58 PM
RE: 5.4.2.2.2 + - by saxmydix - 01-29-2015, 06:03 PM
RE: 5.4.2.2.2 - Looking @ dropCC - by LiveToDrink - 01-30-2015, 12:55 PM
TRAIN SPEED - by kennethwut - 02-01-2015, 07:18 AM
Crash on deploying Wall Breakers - by clarkii - 02-01-2015, 07:05 AM
RE: 5.4.2.4 Safar46's Mods - - by saxmydix - 02-01-2015, 01:07 PM
RE: 5.4.2.4.1 Safar46's Mods - Better Troops Deploy, Fix Out of Sync and 4 Barracks - by safar46 - 02-02-2015, 01:35 AM
RE: 5.4.2.4.3 - Fix Attack Townhall - by promac - 02-03-2015, 12:12 AM
RE: 5.4.2.4.3 - by promac - 02-03-2015, 01:29 AM
RE: 5.4.2.4.3 - by promac - 02-03-2015, 01:40 AM
RE: - by promac - 02-03-2015, 03:48 AM
RE: 5.4.2.4.4 - Fixed Locate Collectors - by BoBz - 02-03-2015, 04:02 AM
RE: 5.4.2.5 - by indy - 02-03-2015, 08:36 PM
RE: 5.4.2.5 - - by indy - 02-03-2015, 09:35 PM

Forum Jump:


Users browsing this thread: 13 Guest(s)

About The Bytecode Club

We're a community focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website