Код нарисован вот так. (для просмотра ссылки Вам необходимо авторизоваться) Вот текст кода
Спойлер (Отобразить)
CODE:
int col_KIB, ex_KIB, ey_KIB, sum_KIB, x_KIB, y_KIB, tim_KIB;
int Image_0_KIB[17][16];
int Image_1_KIB[43][36];
int Image_2_KIB[5][4];
int Image_3_KIB[11][9];
int Image_4_KIB[9][9];
start_();
m_KIB3: key_(50, 1, 0, 200);
findimage_(#Image_0_KIB[0][0], 0, 0, 0, 1, 40, 25, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #);
key_(37, 1, 0, 300); goto m_KIB8;
m_KIB31: key_(13, 1, 0, 3000); goto m_KIB28;
m_KIB5: key_(37, 1, 0, 300);
key_(37, 1, 0, 300);
if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB22;
m_KIB26: key_(13, 1, 0, 2000);
m_KIB27: key_(49, 1, 0, 0);
if (findimage_(#Image_4_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB27;
else goto m_KIB30;
m_KIB11: if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB7;
m_KIB12: key_(40, 1, 0, 300);
if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB10;
m_KIB14: if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB12;
m_KIB15: key_(39, 1, 0, 300); goto m_KIB14;
m_KIB16: if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB18;
m_KIB17: if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB20;
m_KIB18: key_(38, 1, 0, 300);
if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB15;
m_KIB20: key_(38, 1, 0, 300); goto m_KIB16;
m_KIB21: if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB25;
m_KIB22: key_(40, 1, 0, 0); goto m_KIB21;
m_KIB7: if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB1;
else goto m_KIB3;
m_KIB1: key_(50, 1, 0, 200); goto m_KIB3;
m_KIB25: key_(37, 1, 0, 300); goto m_KIB17;
m_KIB4: key_(37, 1, 0, 300);
if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto exit_KIB;
else goto m_KIB5;
m_KIB28: findimage_(#Image_3_KIB[0][0], 0, 0, 0, 1, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #); goto m_KIB3;
m_KIB10: key_(39, 1, 0, 300); goto m_KIB11;
m_KIB30: findimage_(#Image_0_KIB[0][0], 0, 0, 0, 1, 40, 25, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #);
key_(37, 1, 0, 300); goto m_KIB31;
m_KIB8: if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto exit_KIB;
else goto m_KIB4;
exit_KIB:;
function start_()
{
getdisplay(col_KIB, ex_KIB, ey_KIB);
load_image_();
pause(1000);
}
function key_(int k, int m, int p1, int p2)
{
pause(p1);
if (m==1) key(k);
if (m==2) keydown(k);
if (m==3) keyup(k);
pause(p2);
}
function load_image_()
{
loadimage (#Image_0_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\дерево_фрогл_стоянка.bmp");
loadimage (#Image_1_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\хил.bmp");
loadimage (#Image_2_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\атака.bmp");
loadimage (#Image_3_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\vzyat.bmp");
loadimage (#Image_4_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\моб_атакует.bmp");
}
function findimage_(int #Image, int t, int p1, int p2, int m, int xm, int ym, int p3, int fon, int r, int p, int k, int xs, int ys, int xf, int yf, int#sum, int#x, int#y)
{
pause(p1);
sum_KIB=0;
if (t!=1) tim_KIB=gettime();
a: if (r==0 && p==100){sum=findimage(k, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, -1); if (sum>0) goto e;}
else {sum=findimage(k, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, r, r, r, r, r, r, p, 1, -1); if (sum>0) goto e;}
if (t==0) return 0;
if (gettime()-tim_KIB<t){sleep(20); goto a;}
return 0;
e: sum_KIB=sum; x_KIB=x[0]; y_KIB=y[0];
pause(p2);
if (m==1){mouse(LEFT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==2){mouse(MIDDLE, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==3){mouse(RIGHT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==4){mousedown(LEFT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==5){mousedown(MIDDLE, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==6){mousedown(RIGHT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==7){mouseup(LEFT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==8){mouseup(MIDDLE, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==9){mouseup(RIGHT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==10){mousemove(xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
return sum_KIB;
}
int Image_0_KIB[17][16];
int Image_1_KIB[43][36];
int Image_2_KIB[5][4];
int Image_3_KIB[11][9];
int Image_4_KIB[9][9];
start_();
m_KIB3: key_(50, 1, 0, 200);
findimage_(#Image_0_KIB[0][0], 0, 0, 0, 1, 40, 25, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #);
key_(37, 1, 0, 300); goto m_KIB8;
m_KIB31: key_(13, 1, 0, 3000); goto m_KIB28;
m_KIB5: key_(37, 1, 0, 300);
key_(37, 1, 0, 300);
if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB22;
m_KIB26: key_(13, 1, 0, 2000);
m_KIB27: key_(49, 1, 0, 0);
if (findimage_(#Image_4_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB27;
else goto m_KIB30;
m_KIB11: if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB7;
m_KIB12: key_(40, 1, 0, 300);
if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB10;
m_KIB14: if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB12;
m_KIB15: key_(39, 1, 0, 300); goto m_KIB14;
m_KIB16: if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB18;
m_KIB17: if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB20;
m_KIB18: key_(38, 1, 0, 300);
if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB15;
m_KIB20: key_(38, 1, 0, 300); goto m_KIB16;
m_KIB21: if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB26;
else goto m_KIB25;
m_KIB22: key_(40, 1, 0, 0); goto m_KIB21;
m_KIB7: if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto m_KIB1;
else goto m_KIB3;
m_KIB1: key_(50, 1, 0, 200); goto m_KIB3;
m_KIB25: key_(37, 1, 0, 300); goto m_KIB17;
m_KIB4: key_(37, 1, 0, 300);
if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto exit_KIB;
else goto m_KIB5;
m_KIB28: findimage_(#Image_3_KIB[0][0], 0, 0, 0, 1, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #); goto m_KIB3;
m_KIB10: key_(39, 1, 0, 300); goto m_KIB11;
m_KIB30: findimage_(#Image_0_KIB[0][0], 0, 0, 0, 1, 40, 25, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #);
key_(37, 1, 0, 300); goto m_KIB31;
m_KIB8: if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #, #, #)>0) goto exit_KIB;
else goto m_KIB4;
exit_KIB:;
function start_()
{
getdisplay(col_KIB, ex_KIB, ey_KIB);
load_image_();
pause(1000);
}
function key_(int k, int m, int p1, int p2)
{
pause(p1);
if (m==1) key(k);
if (m==2) keydown(k);
if (m==3) keyup(k);
pause(p2);
}
function load_image_()
{
loadimage (#Image_0_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\дерево_фрогл_стоянка.bmp");
loadimage (#Image_1_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\хил.bmp");
loadimage (#Image_2_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\атака.bmp");
loadimage (#Image_3_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\vzyat.bmp");
loadimage (#Image_4_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\моб_атакует.bmp");
}
function findimage_(int #Image, int t, int p1, int p2, int m, int xm, int ym, int p3, int fon, int r, int p, int k, int xs, int ys, int xf, int yf, int#sum, int#x, int#y)
{
pause(p1);
sum_KIB=0;
if (t!=1) tim_KIB=gettime();
a: if (r==0 && p==100){sum=findimage(k, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, -1); if (sum>0) goto e;}
else {sum=findimage(k, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, r, r, r, r, r, r, p, 1, -1); if (sum>0) goto e;}
if (t==0) return 0;
if (gettime()-tim_KIB<t){sleep(20); goto a;}
return 0;
e: sum_KIB=sum; x_KIB=x[0]; y_KIB=y[0];
pause(p2);
if (m==1){mouse(LEFT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==2){mouse(MIDDLE, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==3){mouse(RIGHT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==4){mousedown(LEFT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==5){mousedown(MIDDLE, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==6){mousedown(RIGHT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==7){mouseup(LEFT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==8){mouseup(MIDDLE, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==9){mouseup(RIGHT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==10){mousemove(xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
return sum_KIB;
}
(Добавление)
При том прошлая версия похожего скрипта работает отлично.
[img](для просмотра ссылки Вам необходимо авторизоваться) /img]
Спойлер (Отобразить)
CODE:
int col_KIB, ex_KIB, ey_KIB, sum_KIB, x_KIB, y_KIB, tim_KIB;
int Image_0_KIB[16][14];
int Image_1_KIB[5][4];
int Image_2_KIB[11][9];
int Image_3_KIB[20][18];
start_();
m_KIB2: key_(50, 1, 0, 100);
m_KIB0: findimage_(#Image_0_KIB[0][0], 0, 0, 0, 1, 50, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB);
key_(39, 1, 0, 100);
key_(39, 1, 0, 100);
key_(39, 1, 0, 100);
key_(39, 1, 0, 100);
if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB18;
m_KIB22: key_(13, 1, 0, 0);
m_KIB23: key_(49, 1, 0, 0);
if (findimage_(#Image_3_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB23;
else goto m_KIB24;
m_KIB11: key_(37, 1, 0, 100);
if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB8;
m_KIB13: if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB16;
m_KIB14: key_(37, 1, 0, 100);
if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB11;
m_KIB16: key_(38, 1, 0, 100);
if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB14;
m_KIB18: key_(39, 1, 0, 100);
if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB21;
m_KIB6: key_(39, 1, 0, 100);
if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB0;
m_KIB8: key_(40, 1, 0, 100);
if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB6;
m_KIB24: key_(13, 1, 0, 200);
findimage_(#Image_2_KIB[0][0], 0, 0, 0, 1, 0, 0, 200, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB); goto m_KIB2;
m_KIB21: key_(38, 1, 0, 100); goto m_KIB13;
function start_()
{
getdisplay(col_KIB, ex_KIB, ey_KIB);
load_image_();
pause(1000);
}
function key_(int k, int m, int p1, int p2)
{
pause(p1);
if (m==1) key(k);
if (m==2) keydown(k);
if (m==3) keyup(k);
pause(p2);
}
function load_image_()
{
loadimage (#Image_0_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\кот_стоянка.bmp");
loadimage (#Image_1_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\атака.bmp");
loadimage (#Image_2_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\vzyat.bmp");
loadimage (#Image_3_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\моб.bmp");
}
function findimage_(int #Image, int t, int p1, int p2, int m, int xm, int ym, int p3, int fon, int r, int p, int k, int xs, int ys, int xf, int yf, int#sum, int#x, int#y)
{
pause(p1);
sum_KIB=0;
if (t!=1) tim_KIB=gettime();
a: if (r==0 && p==100){sum=findimage(k, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, -1); if (sum>0) goto e;}
else {sum=findimage(k, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, r, r, r, r, r, r, p, 1, -1); if (sum>0) goto e;}
if (t==0) return 0;
if (gettime()-tim_KIB<t){sleep(20); goto a;}
return 0;
e: sum_KIB=sum; x_KIB=x[0]; y_KIB=y[0];
pause(p2);
if (m==1){mouse(LEFT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==2){mouse(MIDDLE, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==3){mouse(RIGHT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==4){mousedown(LEFT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==5){mousedown(MIDDLE, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==6){mousedown(RIGHT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==7){mouseup(LEFT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==8){mouseup(MIDDLE, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==9){mouseup(RIGHT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==10){mousemove(xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
return sum_KIB;
}
int Image_0_KIB[16][14];
int Image_1_KIB[5][4];
int Image_2_KIB[11][9];
int Image_3_KIB[20][18];
start_();
m_KIB2: key_(50, 1, 0, 100);
m_KIB0: findimage_(#Image_0_KIB[0][0], 0, 0, 0, 1, 50, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB);
key_(39, 1, 0, 100);
key_(39, 1, 0, 100);
key_(39, 1, 0, 100);
key_(39, 1, 0, 100);
if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB18;
m_KIB22: key_(13, 1, 0, 0);
m_KIB23: key_(49, 1, 0, 0);
if (findimage_(#Image_3_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB23;
else goto m_KIB24;
m_KIB11: key_(37, 1, 0, 100);
if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB8;
m_KIB13: if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB16;
m_KIB14: key_(37, 1, 0, 100);
if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB11;
m_KIB16: key_(38, 1, 0, 100);
if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB14;
m_KIB18: key_(39, 1, 0, 100);
if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB21;
m_KIB6: key_(39, 1, 0, 100);
if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB0;
m_KIB8: key_(40, 1, 0, 100);
if (findimage_(#Image_1_KIB[0][0], 0, 0, 0, 0, 0, 0, 0, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB22;
else goto m_KIB6;
m_KIB24: key_(13, 1, 0, 200);
findimage_(#Image_2_KIB[0][0], 0, 0, 0, 1, 0, 0, 200, -1, 0, 100, 1, 0, 0, ex_KIB, ey_KIB, #sum_KIB, #x_KIB, #y_KIB); goto m_KIB2;
m_KIB21: key_(38, 1, 0, 100); goto m_KIB13;
function start_()
{
getdisplay(col_KIB, ex_KIB, ey_KIB);
load_image_();
pause(1000);
}
function key_(int k, int m, int p1, int p2)
{
pause(p1);
if (m==1) key(k);
if (m==2) keydown(k);
if (m==3) keyup(k);
pause(p2);
}
function load_image_()
{
loadimage (#Image_0_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\кот_стоянка.bmp");
loadimage (#Image_1_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\атака.bmp");
loadimage (#Image_2_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\vzyat.bmp");
loadimage (#Image_3_KIB[0][0], "C:\Program Files (x86)\Kibor\bot\моб.bmp");
}
function findimage_(int #Image, int t, int p1, int p2, int m, int xm, int ym, int p3, int fon, int r, int p, int k, int xs, int ys, int xf, int yf, int#sum, int#x, int#y)
{
pause(p1);
sum_KIB=0;
if (t!=1) tim_KIB=gettime();
a: if (r==0 && p==100){sum=findimage(k, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, -1); if (sum>0) goto e;}
else {sum=findimage(k, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, r, r, r, r, r, r, p, 1, -1); if (sum>0) goto e;}
if (t==0) return 0;
if (gettime()-tim_KIB<t){sleep(20); goto a;}
return 0;
e: sum_KIB=sum; x_KIB=x[0]; y_KIB=y[0];
pause(p2);
if (m==1){mouse(LEFT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==2){mouse(MIDDLE, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==3){mouse(RIGHT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==4){mousedown(LEFT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==5){mousedown(MIDDLE, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==6){mousedown(RIGHT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==7){mouseup(LEFT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==8){mouseup(MIDDLE, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==9){mouseup(RIGHT, xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
if (m==10){mousemove(xs+x_KIB+xm, ys+y_KIB+ym); pause(p3);}
return sum_KIB;
}
З.Ы И по-прежнему не работают ссылки на картинки