Please help :/
;TIB
hotkeyset ("{`}", "MyExit")
Global $attacking = false;
while(1)
winactivate("The Infinite Black")
;find a enemy
$pix = Pixelsearch (680,48,807,88,0x8c2231,5)
if not (@error) Then
;click and attack enemy
mouseclick("left", $pix(0), $pix(1),1,1)
sleep(2000)
$attacking - True
while ($attacking)
;are we still attacking enemy
$isattacking = Pixelsearch (680,48,807,88,0xf4fef6,1)
if not (@error)
Else
$attacking = False
wend
func MyExit ()
msgbox(0, "Ending","Bot has exited")`
EndFunc