CODE:int kol1[2]={1276157, 2077951}
int kk1[2]={10, 5}
go();
for (int a=0; a<2; a)
{
if (klik1(#kol1[0], #kk1[0], 2, 0)==1) {
loop () {
if(klik1(#kol1[0], #kk1[0], 2, 0)==0){waitoff();break;}
}
}
}
function klik1(int #kol, int #kk, int p, int r) {
int x, y; int min=1;
if (findheapcolor(1, #kol[0], #kk[0], p, min, #x, #y, 10, 10, 10, 10, 679, 615, 838, 630, r, r, r, r, r, r, -1)==1)
{
mousedown(LEFT,1554, 637);return 1;
}
a=2;
return 0;
}
function waitoff() {
mouseup(LEFT,1554, 637);
}
function waitdown() {
int color=2570219;
int r=30;
int x[999], y[999];
int coord[4]={696, 536, 894, 699};
int count=findcolor(sizearray(x), #x[0],#y[0], coord[0], coord[1], coord[2], coord[3], color, r, r, r, r, r, r, -1);
textout(0, coord[0], coord[1]-50, format(count), 1);
sleep(10);
if(count < 150) {mouse(LEFT);return 1}
}
function go {
mousedown(LEFT,1554, 637);
sleep(rand(40,80));
mouseup(LEFT,1554, 637);
sleep(1000);
loop(){if (waitdown()==1);break;}
sleep(500);
}