Вот последний вариант, он точно правильный. Единственное не уверен что в твоих переменных числа в правильном порядке.
define($agr1,470)
define($agr2,424)
define($agr3,381)
define($agr4,466)
define($spok1,555)
define($spok2,431)
define($spok3,553)
define($spok4,460)
define($hitr1,467)
define($hitr2,466)
define($hitr3,512)
define($hitr4,462)
define($start1,390)
define($start2,501)
define($start3,383)
define($start4,492)
define($okno1,370)
define($okno2,396)
define($okno3,370)
define($okno4,406)
define($1,434)
define($2,236)
define($3,435)
define($4,246)
getscreen
IF_PIXEL_IN(514,396,514,396, 47026) //Агрессивная
lclick(RND($hitr1,$hitr3),rnd($hitr2,$hitr4))
WAITMS(50)
getscreen
IF_PICTURE_IN($okno1,$okno2,$okno3,$okno4, "zero.bmp")
wait(RND(1000,1500))
getscreen
IF_PIXEL_IN(436,242,436,242, 1343307)
lclick(RND($start1,$start3),rnd($start2,$start4))
ELSE
wait(RND(1200,1500))
END_IF
END_IF
END_IF
getscreen
IF_PIXEL_IN(514,396,514,396, 9830400) // Спокойная
lclick(RND($agr1,$agr3),RND($agr2,$agr4))
WAITMS(50)
GETSCREEN
IF_PICTURE_IN($okno1,$okno2,$okno3,$okno4, "zero.bmp")
wait(RND(1000,1500))
getscreen
IF_PIXEL_IN(436,242,437,244 1343307)
lclick(RND($start1,$start3,rnd($start2,$start4))
WAITMS(50)
ELSE
wait(RND(1200,1500))
END_IF
END_IF
END_IF
getscreen
IF_PIXEL_IN(506,393,506,393, 327243)
lclick(RND($spok1,$spok3),RND($spok2,$spok4))
WAITMS(50)
GETSCREEN
IF_PICTURE_IN($okno1,$okno2,$okno3,$okno4, "zero.bmp")
wait(RND(1000,1500))
getscreen
IF_PIXEL_IN(436,242,436,242, 1343307)
lclick(RND($start1,$start3,rnd($start2,$start4)
WAITMS(50)
ELSE
wait(1500)
getscreen
IF_PICTURE_IN($okno1,$okno2,$okno3,$okno4, "zero.bmp")
wait(RND(1000,1500))
END_IF
END_IF
END_IF
END_IF