Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Suggestions for future updates .
#10
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
Reply
 


Messages In This Thread
Suggestions for future updates . - by usabug - 02-16-2015, 07:41 PM
RE: Suggestions for future updates . - by usabug - 02-16-2015, 08:00 PM
RE: Suggestions for future updates . - by usabug - 02-16-2015, 08:12 PM
RE: Suggestions for future updates . - by MrGioba - 02-16-2015, 08:13 PM
RE: Suggestions for future updates . - by usabug - 02-16-2015, 08:22 PM
RE: Suggestions for future updates . - by reztars - 02-16-2015, 08:23 PM
RE: Suggestions for future updates . - by MrGioba - 02-16-2015, 08:28 PM
RE: Suggestions for future updates . - by usabug - 02-16-2015, 08:34 PM
RE: Suggestions for future updates . - by usabug - 02-16-2015, 10:10 PM

Forum Jump:


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