Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pls Help me fixed CreateSpell.au3!
#12
(02-27-2015, 02:46 PM)huunguyen Wrote:  find it in C:\COC-Bot-5.5.1.1\COCBot\functions\Attack\Attack Algorithms
if using algorithm_Barch.au3 you can add Attack Algorithms
$LSpell = -1
   For $i = 0 To 8
If $atkTroops[$i][0] = $eBarbarian Then
$Barb = $i
ElseIf $atkTroops[$i][0] = $eArcher Then
$Arch = $i
ElseIf $atkTroops[$i][0] = $eCastle Then
$CC = $i
ElseIf $atkTroops[$i][0] = $eKing Then
$King = $i
ElseIf $atkTroops[$i][0] = $eQueen Then
$Queen = $i
ElseIf $atkTroops[$i][0] = $eLSpell Then
$LSpell = $i
EndIf
Next
;attack dark storage with lighting spell here
If(($DarkElixLocation = 1) And ($LSpell <> -1 And $DarkElixx <> 0)) Then
  Click(68 + (72 * $LSpell), 595) ;Select Troop
  If _Sleep(500) Then Return
  Click($DarkElixx, $DarkElixy, 2)
EndIf


Thanks huunguyen! Where can I find to edit total amount of DE to light spell? For example, I want bot just lighting DE storage if >3000. How to edit? Please guide..
Reply
 


Messages In This Thread
pls Help me fixed CreateSpell.au3! - by mtrong - 02-26-2015, 12:44 PM
RE: pls Help me fixed CreateSpell.au3! - by henrynguyen - 02-27-2015, 03:19 PM

Forum Jump:


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