Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Faster deployment speed
#11
(02-05-2015, 06:55 PM)M Khalid Wrote:  @SongHyeKyo where can i find this??also tell me the version plz???  Smile

Func algorithm_AllTroops()

@Topic

In 2nd wave of barbarian there is a little delay ..

What do you think i need to change in script?

Code:
algorithmTH()
         if LauchTroop($eGiant, $nbSides, 1, 1, 1) Then
            If _Sleep(1000) Then Return
               EndIf
         if LauchTroop($eBarbarian, $nbSides, 1, 2) Then
            If _Sleep(100) Then Return
               EndIf
         if LauchTroop($eArcher, $nbSides, 1, 2) Then
            If _Sleep(75) Then Return
               EndIf
         If _Sleep(2000) Then Return
         If LauchTroop($eBarbarian, $nbSides, 2, 2) Then
            If _Sleep(50) Then Return
            EndIf
         if LauchTroop($eWallbreaker, $nbSides, 1, 1, 1) Then
            If _Sleep(500) 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(25) Then Return
               EndIf
         If LauchTroop($eGoblin, $nbSides, 2, 2) Then
            If _Sleep(500) Then Return
               EndIf
Take delight in the LORD, and he will give you the desires of your heart - Psalm 37:4
Reply
#12
wow thnx.... now it is able to break walls even....the speed is good now...will try to fast more
thank you so much Smile .....loot time :D
Reply
#13
Could you tell me what exactly do you change there ? I've found that line before, but I don't know what to do with it Tongue Could any of you post the changed code here ? Thanks.
Reply
#14
(02-05-2015, 07:21 PM)jondra Wrote:  Could you tell me what exactly do you change there ? I've found that line before, but I don't know what to do with it Tongue Could any of you post the changed code here ? Thanks.

The code i posted i change already the speed ..

if sleep = 100 barb
if sleep = 75 arch
if sleep = 50 barb
if sleep = 25 arch

the original script ( not yet edited )

if sleep = 300 barb
if sleep = 200 arch
if sleep = 100 barb
if sleep = 50 arch
Take delight in the LORD, and he will give you the desires of your heart - Psalm 37:4
Reply
#15
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:
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
Reply
#16
Hi,
I changed the values but the attack is exactly the same as before any idea why ?
Reply
#17
(02-05-2015, 08:16 PM)jondra Wrote:  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:
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

5.5v version
5.4.5.1 safar bot

i try to lower to 1 for more speed but there is a delay between deploying barb > arch > barb .. anybody where i can edit that so i can increase the speed?
Take delight in the LORD, and he will give you the desires of your heart - Psalm 37:4
Reply
#18
you're looking at the wrong function! this one is called only for th sniping..

look for algorithm_AllTroops
Reply
#19
Reply
#20
(02-05-2015, 09:00 PM)indy Wrote:  you're looking at the wrong function! this one is called only for th sniping..

look for algorithm_AllTroops

https://the.bytecode.club/showthread.php?tid=453&page=3

really? but dinobot said here .. atkAlgorithmTH()
Take delight in the LORD, and he will give you the desires of your heart - Psalm 37:4
Reply
 


Forum Jump:


Users browsing this thread: 2 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