Делал через граф редактор, т. к. сам писать не знаю функций да и проще так.
Сам скрипт (Отобразить)
int col_KIB, ex_KIB, ey_KIB, x_KIB, y_KIB, tim_KIB;
int Image_0_KIB[69][23];
int Image_1_KIB[202][40];
int Image_2_KIB[146][282];
start_();
m0: findimage_(#Image_0_KIB[0][0], 0, 0, 0, 1, 34, 12, 0, -1, 0, 100, 1);
findimage_(#Image_1_KIB[0][0], 0, 0, 0, 1, 97, 17, 0, -1, 0, 100, 1);
if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 1, 60, 150, 0, -1, 0, 90, 1)==1) goto exit;
else goto m0;
exit:;
function start_()
{
getdisplay(col_KIB, ex_KIB, ey_KIB);
load_image();
}
function load_image()
{
loadimage (#Image_0_KIB[0][0], "C:\Users\Nikolya\Desktop\скрины для бота\1 Вход.bmp");
loadimage (#Image_1_KIB[0][0], "C:\Users\Nikolya\Desktop\скрины для бота\2 В БОЙ.bmp");
loadimage (#Image_2_KIB[0][0], "C:\Users\Nikolya\Desktop\скрины для бота\3 PvP.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)
{
pause(p1);
if (t!=1) tim_KIB=gettime();
a: if (r==0 && p==100){if (findimage(1, #Image[0][0], fon, #x_KIB, #y_KIB, 0, 0, ex_KIB, ey_KIB, -1)==1) goto e;}
else {if (findimage(1, #Image[0][0], fon, #x_KIB, #y_KIB, 0, 0, ex_KIB, ey_KIB, r, r, r, r, r, r, p, 1, -1)==1) goto e;}
if (t==0) return -1;
if (gettime()-tim_KIB<t){sleep(20); goto a;}
return -1;
e: pause(p2);
if (m==1){mouse(LEFT, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==2){mouse(MIDDLE, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==3){mouse(RIGHT, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==4){mousedown(LEFT, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==5){mousedown(MIDDLE, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==6){mousedown(RIGHT, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==7){mouseup(LEFT, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==8){mouseup(MIDDLE, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==9){mouseup(RIGHT, x_KIB+xm, y_KIB+ym); pause(p3);}
return 1;
}
int col_KIB, ex_KIB, ey_KIB, x_KIB, y_KIB, tim_KIB;
int Image_0_KIB[69][23];
int Image_1_KIB[202][40];
int Image_2_KIB[146][282];
start_();
m0: findimage_(#Image_0_KIB[0][0], 0, 0, 0, 1, 34, 12, 0, -1, 0, 100, 1);
findimage_(#Image_1_KIB[0][0], 0, 0, 0, 1, 97, 17, 0, -1, 0, 100, 1);
if (findimage_(#Image_2_KIB[0][0], 0, 0, 0, 1, 60, 150, 0, -1, 0, 90, 1)==1) goto exit;
else goto m0;
exit:;
function start_()
{
getdisplay(col_KIB, ex_KIB, ey_KIB);
load_image();
}
function load_image()
{
loadimage (#Image_0_KIB[0][0], "C:\Users\Nikolya\Desktop\скрины для бота\1 Вход.bmp");
loadimage (#Image_1_KIB[0][0], "C:\Users\Nikolya\Desktop\скрины для бота\2 В БОЙ.bmp");
loadimage (#Image_2_KIB[0][0], "C:\Users\Nikolya\Desktop\скрины для бота\3 PvP.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)
{
pause(p1);
if (t!=1) tim_KIB=gettime();
a: if (r==0 && p==100){if (findimage(1, #Image[0][0], fon, #x_KIB, #y_KIB, 0, 0, ex_KIB, ey_KIB, -1)==1) goto e;}
else {if (findimage(1, #Image[0][0], fon, #x_KIB, #y_KIB, 0, 0, ex_KIB, ey_KIB, r, r, r, r, r, r, p, 1, -1)==1) goto e;}
if (t==0) return -1;
if (gettime()-tim_KIB<t){sleep(20); goto a;}
return -1;
e: pause(p2);
if (m==1){mouse(LEFT, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==2){mouse(MIDDLE, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==3){mouse(RIGHT, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==4){mousedown(LEFT, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==5){mousedown(MIDDLE, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==6){mousedown(RIGHT, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==7){mouseup(LEFT, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==8){mouseup(MIDDLE, x_KIB+xm, y_KIB+ym); pause(p3);}
if (m==9){mouseup(RIGHT, x_KIB+xm, y_KIB+ym); pause(p3);}
return 1;
}