The Bytecode Club

Full Version: Suggestions for future updates .
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(02-16-2015, 08:28 PM)MrGioba Wrote: [ -> ]Ah, ok sorry.
BTW for the 2nd thing I suppose you can go in ..\COC-Bot-5.5.1.1\COCBot\functions\Attack and modify DropHeroes.au3
Line 28 ORIGINAL:

Code:
Case 2 ;All Base
If $KingSlot <> -1 And $KingAttack[2] = 1 Then
SetLog("Dropping King", $COLOR_BLUE)
Click(68 + (72 * $KingSlot), 595) ;Select King
If _Sleep(500) Then Return
Click($x, $y)
$checkKPower = True
EndIf

You can try to change like this PSEUDO CODE!! (Pseudo code! It is not in the correct sintax beacuse i don't know autoit sintax for multiple action in if condition. I used c++ {} to explain but u need to modify the {})



Code:
Case 2 ;All Base
If checkDeadBase() Then
                  {
SetLog("Dead base. NOT dropping King", $COLOR_BLUE)
                  }
Else
                  {
If $KingSlot <> -1 And $KingAttack[2] = 1 Then
SetLog("Dropping King", $COLOR_BLUE)
Click(68 + (72 * $KingSlot), 595) ;Select King
If _Sleep(500) Then Return
Click($x, $y)
$checkKPower = True
                  }
EndIf

Dear MrGiova ,

Thank you for your sample code . I also trying to do it by my self .
If i find a solution i will posted .
Dear Developers ,

I was Hopping something like this .

[Image: 30c9cw5.jpg]
Pages: 1 2