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

I was Hopping something like this .

[Image: 30c9cw5.jpg]
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