02-05-2015, 08:16 PM
Which version of the bot are you using ? If I change any of those values and then compile the script it gives me error when searching "Error cannot check for Dead Base, Attacking..." (works good with the orginal script).
Code in v5.4.2.4.2 by safar46 looks like this. For me changing any of those values results in error.
Code in v5.4.2.4.2 by safar46 looks like this. For me changing any of those values results in error.
Code:
atkAlgorithmTH()
PrepareAttack(True) ;Check remaining quantities
EndIf
if LauchTroop($eGiant, $nbSides, 1, 1, 1) Then
If _Sleep(1000) Then Return
EndIf
if LauchTroop($eBarbarian, $nbSides, 1, 2) Then
If _Sleep(1000) Then Return
EndIf
if LauchTroop($eWallbreaker, $nbSides, 1, 1, 1) Then
If _Sleep(500) Then Return
EndIf
if LauchTroop($eArcher, $nbSides, 1, 2) Then
If _Sleep(1000) Then Return
EndIf
If _Sleep(2000) Then Return
If LauchTroop($eBarbarian, $nbSides, 2, 2) Then
If _Sleep(1000) Then Return
EndIf
If LauchTroop($eGoblin, $nbSides, 1, 2) Then
If _Sleep(500) Then Return
EndIf
If LauchTroop($eArcher, $nbSides, 2, 2) Then
If _Sleep(500) Then Return
EndIf
If LauchTroop($eGoblin, $nbSides, 2, 2) Then
If _Sleep(500) Then Return
EndIf