01-27-2015, 01:58 PM
This edited bot working perfect for CC Drop feature, i just change hex code to my clan logo color, which is at function prepare attack at line
my clan logo is no. 17 from the left to right. im not sure if this the case, but i can see that bot detect my CC when prepare troop which is bot cant detect before edit that line.
U can try to edit as yours clan color if bot cant detect your CC when prepare attack. Use auto it window info.
Im also add double click this line as i see that bot sometimes just single click at CC slot.
Here im attach my edited bot with fully working CCdrop.
EDITED bot with working CCdrop.
Code:
ElseIf _ColorCheckVariation(_PixelGetColor_GetPixel(68 + (72 * $i), 588), Hex(0xB02830, 6), 5) Then ;Check if slot is Clan Castle
$atkTroops[$i][0] = "Clan Castle"
$atkTroops[$i][1] = 1
my clan logo is no. 17 from the left to right. im not sure if this the case, but i can see that bot detect my CC when prepare troop which is bot cant detect before edit that line.
U can try to edit as yours clan color if bot cant detect your CC when prepare attack. Use auto it window info.
Im also add double click this line as i see that bot sometimes just single click at CC slot.
Code:
Func dropCC($x, $y, $slot) ;Drop clan castle
SetLog("Dropping Clan Castle")
Click(68 + (72 * $slot), 595, 1, 500)
Click(68 + (72 * $slot), 595, 1, 500)
Click($x, $y)
Click($x, $y)
EndFunc ;==>dropCC
Here im attach my edited bot with fully working CCdrop.
EDITED bot with working CCdrop.