02-03-2015, 03:01 PM
(02-02-2015, 07:51 PM)dinobot Wrote: Currently each line is set to 1000 sleep (1sec) before next line out. U can play around with the sleep...
I do 300 for first wave of barb, 200 for first wave of archer, 100 for second wave barb and 50 for second wave archer.. Try play around with the sleep...
The coding was efficient... As it makes the wave customizable
This is what you changed, right?
Code:
if LauchTroop($eGiant, $nbSides, 1, 1, 1) Then
If _Sleep(1000) Then Return
EndIf
if LauchTroop($eBarbarian, $nbSides, 1, 2) Then
If _Sleep(300) 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(200) Then Return
EndIf
If _Sleep(1000) Then Return
If LauchTroop($eBarbarian, $nbSides, 2, 2) Then
If _Sleep(100) 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(50) Then Return
EndIf
If LauchTroop($eGoblin, $nbSides, 2, 2) Then
If _Sleep(500) Then Return
EndIf