CODE:
win w=window ("PirateStorm | Пиратска игра с много приключения - Maxthon Cloud Browser 4.1.3.5000", "Maxthon3Cls_MainFrm", -1)
int Pok_LS=0;
int Storona1[50][50], Storona2[50][50], Storona3[50][50], Storona4[50][50], Storona5[50][50], Storona6[50][50], Storona7[50][50], Storona8[50][50], Storona9[50][50], Storona10[50][50];
int Storona11[50][50], Storona12[50][50], Storona13[50][50], Storona14[50][50], Storona15[50][50], Storona16[50][50], Storona17[50][50];
int PosX[1], PosY[1];
int rx1, ry1, rx2, ry2, rx3, ry3, rx4, ry4, rx5, ry5, rx6, ry6, rx7, ry7, rx8, ry8, rx9, ry9, rx10, ry10;
int rx11, ry11, rx12, ry12, rx13, ry13, rx14, ry14, rx15, ry15, rx16, ry16, rx17, ry17;
int k=0;
/////////////////////////////////////////////////////////////////////////////////////
activate (w) ;
load_image();
n:rash_image();
if (findimage(1, #Storona1[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
key("2");
key("3");
mouse (LEFT, PosX[0]+50, PosY[0]+45, 1, w);
key("q");
pause(50);
keydown(CONTROL);
key("6");
sleep(20);
key("3");
sleep(20);
key("4");
sleep(20);
key("5");
sleep(20);
key("7");
sleep(20);
key("8");
sleep(20);
key("1");
sleep(20);
key("2");
sleep(20);
key("0");
sleep(20);
key("9");
sleep(20);
keyup(CONTROL);
key("1");
key("7");
key("8");
mouse (LEFT, PosX[0], PosY[0]+20, 1, w);
pause(50);
key("0");
sleep(20);
goto n;
}
if (findimage(1, #Storona2[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona3[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona4[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona5[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona6[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona7[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona8[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona9[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona10[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona11[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
key("2");
key("3");
mouse (LEFT, PosX[0]+50, PosY[0]+45, 1, w);
key("q");
pause(50);
keydown(CONTROL);
key("6");
sleep(20);
key("1");
sleep(20);
key("2");
sleep(20);
key("5");
sleep(20);
key("8");
sleep(20);
key("9");
sleep(50);
keyup(CONTROL);
key("1");
mouse (LEFT, PosX[0]-20, PosY[0]+10, 1, w);
pause(50);
key("0");
sleep(20);
goto n;
}
if (findimage(1, #Storona12[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0], PosY[0]+30, 1, w);
sleep(1000);
mouse (LEFT, PosX[0], PosY[0]-30, 1, w);
goto n;
}
if (findimage(1, #Storona13[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
sleep(1000);
key("0");
sleep(1200);
keydown(CONTROL);
key("2");
keyup(CONTROL);
sleep(1200);
key("2");
sleep(100);
key("3");
sleep(100);
key("4");
sleep(1200);
key("5");
sleep(1200);
key("6");
sleep(1200);
key("1");
pause(50000);
mouse (LEFT, PosX[0], PosY[0], 1, w);
sleep(2000);
mouse (LEFT, 1100, 600 , 1, w);
sleep(3000);
mouse (LEFT, 1100, 600 , 1, w);
sleep(3000);
mouse (LEFT, 1100, 600 , 1, w);
sleep(3000);
mouse (LEFT, 1100, 600 , 1, w);
sleep(3000);
goto n;
}
if (findimage(1, #Storona14[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+rand(200, 700), PosY[0]+100, 1, w);
sleep(1000);
goto n;
}
if (findimage(1, #Storona15[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+200, PosY[0]+rand(200, 700), 1, w);
sleep(1000);
goto n;
}
if (findimage(1, #Storona16[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]-rand(200, 700), PosY[0]+200, 1, w);
sleep(1000);
goto n;
}
if (findimage(1, #Storona17[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+250, PosY[0]-rand(100, 500), 1, w);
sleep(1000);
goto n;
}
sleep(100);
mouse (LEFT);
goto n;
///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////
function load_image()
{
loadimage (#Storona1[0][0], "C:\Kibor\Image_11.bmp");//червен бот
loadimage (#Storona2[0][0], "C:\Kibor\Image_71.bmp");//сандък
loadimage (#Storona3[0][0], "C:\Kibor\Image_72.bmp");//сандък
loadimage (#Storona4[0][0], "C:\Kibor\Image_73.bmp");//сандък
loadimage (#Storona5[0][0], "C:\Kibor\Image_74.bmp");//сандък
loadimage (#Storona6[0][0], "C:\Kibor\Image_75.bmp");//сандък
loadimage (#Storona7[0][0], "C:\Kibor\Image_76.bmp");//сандък
loadimage (#Storona8[0][0], "C:\Kibor\Image_77.bmp");//сандък
loadimage (#Storona9[0][0], "C:\Kibor\Image_78.bmp");//сандък
loadimage (#Storona10[0][0], "C:\Kibor\Image_79.bmp");//сандък
loadimage (#Storona11[0][0], "C:\Kibor\Image_12.bmp");//бял бот
loadimage (#Storona12[0][0], "C:\Kibor\Image_21.bmp");//потапяне
loadimage (#Storona13[0][0], "C:\Kibor\Image_22.bmp");//излизане от пристанище
loadimage (#Storona14[0][0], "C:\Kibor\Image_911.bmp");//лява граница
loadimage (#Storona15[0][0], "C:\Kibor\Image_921.bmp");//горна граница
loadimage (#Storona16[0][0], "C:\Kibor\Image_932.bmp");//дясна граница
loadimage (#Storona17[0][0], "C:\Kibor\Image_942.bmp");//долна граница
}
int Pok_LS=0;
int Storona1[50][50], Storona2[50][50], Storona3[50][50], Storona4[50][50], Storona5[50][50], Storona6[50][50], Storona7[50][50], Storona8[50][50], Storona9[50][50], Storona10[50][50];
int Storona11[50][50], Storona12[50][50], Storona13[50][50], Storona14[50][50], Storona15[50][50], Storona16[50][50], Storona17[50][50];
int PosX[1], PosY[1];
int rx1, ry1, rx2, ry2, rx3, ry3, rx4, ry4, rx5, ry5, rx6, ry6, rx7, ry7, rx8, ry8, rx9, ry9, rx10, ry10;
int rx11, ry11, rx12, ry12, rx13, ry13, rx14, ry14, rx15, ry15, rx16, ry16, rx17, ry17;
int k=0;
/////////////////////////////////////////////////////////////////////////////////////
activate (w) ;
load_image();
n:rash_image();
if (findimage(1, #Storona1[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
key("2");
key("3");
mouse (LEFT, PosX[0]+50, PosY[0]+45, 1, w);
key("q");
pause(50);
keydown(CONTROL);
key("6");
sleep(20);
key("3");
sleep(20);
key("4");
sleep(20);
key("5");
sleep(20);
key("7");
sleep(20);
key("8");
sleep(20);
key("1");
sleep(20);
key("2");
sleep(20);
key("0");
sleep(20);
key("9");
sleep(20);
keyup(CONTROL);
key("1");
key("7");
key("8");
mouse (LEFT, PosX[0], PosY[0]+20, 1, w);
pause(50);
key("0");
sleep(20);
goto n;
}
if (findimage(1, #Storona2[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona3[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona4[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona5[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona6[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona7[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona8[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona9[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona10[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+5, PosY[0]+5, 1, w);
sleep(1500);
goto n;
}
if (findimage(1, #Storona11[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
key("2");
key("3");
mouse (LEFT, PosX[0]+50, PosY[0]+45, 1, w);
key("q");
pause(50);
keydown(CONTROL);
key("6");
sleep(20);
key("1");
sleep(20);
key("2");
sleep(20);
key("5");
sleep(20);
key("8");
sleep(20);
key("9");
sleep(50);
keyup(CONTROL);
key("1");
mouse (LEFT, PosX[0]-20, PosY[0]+10, 1, w);
pause(50);
key("0");
sleep(20);
goto n;
}
if (findimage(1, #Storona12[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0], PosY[0]+30, 1, w);
sleep(1000);
mouse (LEFT, PosX[0], PosY[0]-30, 1, w);
goto n;
}
if (findimage(1, #Storona13[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
sleep(1000);
key("0");
sleep(1200);
keydown(CONTROL);
key("2");
keyup(CONTROL);
sleep(1200);
key("2");
sleep(100);
key("3");
sleep(100);
key("4");
sleep(1200);
key("5");
sleep(1200);
key("6");
sleep(1200);
key("1");
pause(50000);
mouse (LEFT, PosX[0], PosY[0], 1, w);
sleep(2000);
mouse (LEFT, 1100, 600 , 1, w);
sleep(3000);
mouse (LEFT, 1100, 600 , 1, w);
sleep(3000);
mouse (LEFT, 1100, 600 , 1, w);
sleep(3000);
mouse (LEFT, 1100, 600 , 1, w);
sleep(3000);
goto n;
}
if (findimage(1, #Storona14[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+rand(200, 700), PosY[0]+100, 1, w);
sleep(1000);
goto n;
}
if (findimage(1, #Storona15[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+200, PosY[0]+rand(200, 700), 1, w);
sleep(1000);
goto n;
}
if (findimage(1, #Storona16[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]-rand(200, 700), PosY[0]+200, 1, w);
sleep(1000);
goto n;
}
if (findimage(1, #Storona17[0][0], 0, #PosX[0], #PosY[0], 0, 0, 1180, 650, w)==1)
{
mouse (LEFT, PosX[0]+250, PosY[0]-rand(100, 500), 1, w);
sleep(1000);
goto n;
}
sleep(100);
mouse (LEFT);
goto n;
///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////
function load_image()
{
loadimage (#Storona1[0][0], "C:\Kibor\Image_11.bmp");//червен бот
loadimage (#Storona2[0][0], "C:\Kibor\Image_71.bmp");//сандък
loadimage (#Storona3[0][0], "C:\Kibor\Image_72.bmp");//сандък
loadimage (#Storona4[0][0], "C:\Kibor\Image_73.bmp");//сандък
loadimage (#Storona5[0][0], "C:\Kibor\Image_74.bmp");//сандък
loadimage (#Storona6[0][0], "C:\Kibor\Image_75.bmp");//сандък
loadimage (#Storona7[0][0], "C:\Kibor\Image_76.bmp");//сандък
loadimage (#Storona8[0][0], "C:\Kibor\Image_77.bmp");//сандък
loadimage (#Storona9[0][0], "C:\Kibor\Image_78.bmp");//сандък
loadimage (#Storona10[0][0], "C:\Kibor\Image_79.bmp");//сандък
loadimage (#Storona11[0][0], "C:\Kibor\Image_12.bmp");//бял бот
loadimage (#Storona12[0][0], "C:\Kibor\Image_21.bmp");//потапяне
loadimage (#Storona13[0][0], "C:\Kibor\Image_22.bmp");//излизане от пристанище
loadimage (#Storona14[0][0], "C:\Kibor\Image_911.bmp");//лява граница
loadimage (#Storona15[0][0], "C:\Kibor\Image_921.bmp");//горна граница
loadimage (#Storona16[0][0], "C:\Kibor\Image_932.bmp");//дясна граница
loadimage (#Storona17[0][0], "C:\Kibor\Image_942.bmp");//долна граница
}