The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

Suggestions for future updates .

Started by usabug · Feb 16, 2015

11 replies179,424 views
Feb 16, 2015#11

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:

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 {})

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 .

Feb 16, 2015#12

Dear Developers ,

I was Hopping something like this .

Got something to add?

Log in to post a reply.

Join the conversation