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-06-2015, 05:22 PM)jervisvgarcia Wrote:  how to adjust donate time settings? i've noticed that it just checks donates every after attack so that's 20-30mins. I hope it checks request everytime or more often like every 5mins. any solution for this? TIA
As code below, donate function always run in order when bot started and waiting full army camp.
Code:
Func runBot() ;Bot that runs everything in order
    While 1
        $Restart = False
        $fullArmy = False
        If _Sleep(1000) Then Return
        checkMainScreen()
        If _Sleep(1000) Then Return
        ZoomOut()
        If _Sleep(1000) Then Return
        if $locate = 0 Then
            Collect()
            If _Sleep(1000) Then Return
            Train()
            If _Sleep(1000) Then Return
            CreateSpell()
            If _Sleep(1000) Then Return
            RequestCC()
            If _Sleep(1000) Then Return
            DonateCC()
            If _Sleep(1000) Then Return
            Idle()
            If _Sleep(1000) Then Return
            AttackMain()
            If _Sleep(1000) Then Return
        Else
            ExitLoop
        EndIf
    WEnd
EndFunc   ;==>runBot

Code:
Func Idle() ;Sequence that runs until Full Army
    Local $TimeIdle = 0 ;In Seconds
      While $fullArmy = False
          Local $hTimer = TimerInit()
          If _Sleep(1000) Then ExitLoop
          checkMainScreen()
          If _Sleep(1000) Then ExitLoop
          ZoomOut()
          If $iCollectCounter > $COLLECTATCOUNT Then ; This is prevent from collecting all the time which isn't needed anyway
              Collect()
              If _Sleep(1000) Or $RunState = False Then ExitLoop
              $iCollectCounter = 0
           EndIf
          Train()
          If _Sleep(1000) Then ExitLoop
          DropTrophy()
          If $fullArmy Then ExitLoop
          If _Sleep(1000) Then ExitLoop
          If $iDonateCounter > $DONATEATCOUNT Then
            DonateCC()
              If _Sleep(1000) Or $RunState = False Then ExitLoop
              $iDonateCounter = 0
           EndIf
          SetLog("~~~Waiting for full army~~~")
          If _Sleep(30000) Then ExitLoop
          Click(1, 1) ;Click Away
          $TimeIdle += Round(TimerDiff($hTimer) / 1000, 2) ;In Seconds
          SetLog("Time Idle: " & Floor(Floor($TimeIdle / 60) / 60) & " hours " & Floor(Mod(Floor($TimeIdle / 60), 60)) & " minutes " & Floor(Mod($TimeIdle, 60)) & " seconds")
      WEnd
EndFunc   ;==>Idle
 


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.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
RE: 5.4.2.5.2 - Better Troops Deployment (LF Style), Fixed Train Troops - by sheva370 - 02-06-2015, 07:44 PM

Forum Jump:


Users browsing this thread: 9 Guest(s)

About The Bytecode Club

We're a community forum 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