CODE:
function test()
{int colorw[10]={15198442,15002351,15132905,15002094,15002350,15066597,15000804,14869218,15001061,14935011}, kolw[10]={9,4,3,3,3,32,12,2,2,1},
cfood[2]={2113791,13351680}, kfood[2]={16,7}; int r=6;
if(findheapcolor(1, #colorw[0],#kolw[0], 10,4, #px,#py, 10,7, 50,50, 157,93, 843,467, r,r,r,r,r,r, as)==1)
{sendmouse(LEFT, px+157,py+93, as); pause(400); sendkey(34,0, as); sleep(300); sendkey(34,1, as); Zh@(); NikrFull@(); Nikr@();}
if(findheapcolor(1, #colorw[0],#kolw[0], 10,4, #px,#py, 10,7, 50,50, 157,93, 843,467, r,r,r,r,r,r, as)==1)
{sendmouse(LEFT, px+157,py+93, as); pause(400); sendkey(34,0, as); sleep(300); sendkey(34,1, as); Zh@(); NikrFull@(); Nikr@();}
if(findheapcolor(1, #colorw[0],#kolw[0], 10,4, #px,#py, 10,7, 50,50, 157,93, 843,467, r,r,r,r,r,r, as)==1)
{sendmouse(LEFT, px+157,py+93, as); pause(400); sendkey(34,0, as); sleep(300); sendkey(34,1, as); Zh@(); NikrFull@(); Nikr@();}
if(findheapcolor(1, #colorw[0],#kolw[0], 10,4, #px,#py, 10,7, 50,50, 157,93, 843,467, r,r,r,r,r,r, as)==1)
{sendmouse(LEFT, px+157,py+93, as); pause(400); sendkey(34,0, as); sleep(300); sendkey(34,1, as); Zh@(); NikrFull@(); Nikr@();}
loop(2)
{if(findheapcolor(1, #cfood[0],#kfood[0], 2,2, #px,#py, 12,5, 52,30, 157,93, 843,467, 1,1,1,1,1,1, as)==1)
{sendmouse(LEFT, px+167,py+93, as); pause(400); sendkey(34,0, as); sleep(300); sendkey(34,1, as); Zh@(); NikrFull@(); Nikr@();}
if(findimage(1, #gold[0][0], 0, #px,#py, 157,93, 843,467, 20, 20, 20, 20, 20, 20, 61, 1, as)==1)
{sendmouse(LEFT, px+157,py+93, as); pause(400); sendkey(34,0, as); sleep(300); sendkey(34,1, as); Zh@(); NikrFull@(); Nikr@();}
if(findimage(1, #mana[0][0], 0, #px,#py, 157,93, 843,467, 20, 20, 20, 20, 20, 20, 70, 1, as)==1)
{sendmouse(LEFT, px+157,py+93, as); pause(400); sendkey(34,0, as); sleep(300); sendkey(34,1, as); Zh@(); NikrFull@(); Nikr@();}
if(findimage(1, #wood[0][0], 0, #px,#py, 157,93, 843,467, 20, 20, 20, 20, 20, 20, 70, 1, as)==1)
{sendmouse(LEFT, px+157,py+93, as); pause(400); sendkey(34,0, as); sleep(300); sendkey(34,1, as); Zh@(); NikrFull@(); Nikr@();}}
return 1;
}
return 0;
}