Всем доброго вечера) помогите пожалуйста понять ошибку(как я подозреваю подвох где-то кроется в wait(n)) я запускаю скрипт,когда он листает локации то мобов находит более 4 секунд а иногда и вовсе не успевает найти,и как только я "глушу" перелистывание локаций и проверяю скрипт на каждом из мобов,всё работает как часы!
GETSCREEN
COLORMODE(6)
IF_PICTURE_IN(236,576,246,586,"ZAS.bmp",-1,30)
LCLICK ($_return1,$_return2)
wait(2)
GETSCREEN
COLORMODE(6)
IF_PICTURE_IN(497,184,734,219,"EXIT.bmp",-1,100)
KEYPRESS(#ESC)
waitms(100)
ELSE
BEEP(500,1000)
LCLICK (555,451)
WAIT(15)
LCLICK (223,655) //OGN SHAR
WAIT(1)
LCLICK (540,602) //MANA
WAIT(1)
LCLICK (224,601) //MOLN
WAIT(1)
LCLICK (596,606) //OZVER
WAIT(1)
LCLICK (647,602) //SNEJ
WAIT(1)
LCLICK (701,605) //SNEJ
WAIT(1)
LCLICK (754,603) //SNEJ
WAIT(5)
KEYPRESS(#ESC)
WAIT(1)
LCLICK (425,431) //MENU
WAIT(1)
LCLICK (483,449) //ZABR
WAIT(4)
LCLICK (557,511) //EXIT
WAIT(2)
WAIT(1)
END_IF
END_IF
GETSCREEN
COLORMODE(6)
IF_PICTURE_IN(250,631,260,641,"SCOR.bmp",-1,30)
LCLICK (245,593)
wait(2)
GETSCREEN
COLORMODE(6)
IF_PICTURE_IN(492,186,733,213,"EXIT.bmp",-1,100)
KEYPRESS(#ESC)
waitms(100)
ELSE
BEEP(500,1000)
LCLICK (556,473) //atack
WAIT(15)
LCLICK (223,655) //OGN SHAR
WAIT(1)
LCLICK (540,602) //MANA
WAIT(1)
LCLICK (224,601) //MOLN
WAIT(1)
LCLICK (596,606) //OZVER
WAIT(1)
LCLICK (647,602) //SNEJ
WAIT(1)
LCLICK (701,605) //SNEJ
WAIT(1)
LCLICK (754,603) //SNEJ
WAIT(5)
KEYPRESS(#ESC)
WAIT(1)
LCLICK (425,431) //MENU
WAIT(1)
LCLICK (483,449) //ZABR
WAIT(4)
LCLICK (557,511) //EXIT
WAIT(2)
END_IF
END_IF
GETSCREEN
COLORMODE(6)
IF_PICTURE_IN(224,573,234,583,"ZAB.bmp",-1,30)
LCLICK ($_return1,$_return2)
wait(2)
GETSCREEN
COLORMODE(6)
IF_PICTURE_IN(602,206,627,228,"ZAB.EXIT.bmp",-1,100)
KEYPRESS(#ESC)
waitms(100)
ELSE
LCLICK (552,463) //atack
WAIT(15)
LCLICK (223,655) //OGN SHAR
WAIT(1)
LCLICK (540,602) //MANA
WAIT(1)
LCLICK (224,601) //MOLN
WAIT(1)
LCLICK (596,606) //OZVER
WAIT(1)
LCLICK (647,602) //SNEJ
WAIT(1)
LCLICK (701,605) //SNEJ
WAIT(1)
LCLICK (754,603) //SNEJ
WAIT(5)
KEYPRESS(#ESC)
WAIT(1)
LCLICK (425,431) //MENU
WAIT(1)
LCLICK (483,449) //ZABR
WAIT(4)
LCLICK (557,511) //EXIT
WAIT(2)
END_IF
END_IF
GETSCREEN
COLORMODE(6)
IF_PICTURE_IN(225,642,235,652,"DEVA.bmp",-1,30)
LCLICK ($_return1,$_return2)
wait(2)
GETSCREEN
COLORMODE(6)
IF_PICTURE_IN(602,206,627,228,"DEVA.EXIT.bmp",-1,100)
KEYPRESS(#ESC)
waitms(100)
ELSE
LCLICK (550,450)
WAIT(15)
LCLICK (223,655) //OGN SHAR
WAIT(1)
LCLICK (540,602) //MANA
WAIT(1)
LCLICK (224,601) //MOLN
WAIT(1)
LCLICK (596,606) //OZVER
WAIT(1)
LCLICK (647,602) //SNEJ
WAIT(1)
LCLICK (701,605) //SNEJ
WAIT(1)
LCLICK (754,603) //SNEJ
WAIT(5)
KEYPRESS(#ESC)
WAIT(1)
LCLICK (425,431) //MENU
WAIT(1)
LCLICK (483,449) //ZABR
WAIT(4)
LCLICK (557,511) //EXIT
WAIT(2)
WAIT(1)
END_IF
END_IF
GETSCREEN
COLORMODE(6)
IF_PICTURE_IN (246,631,256,641,"UJAS.bmp",-1,30)
LCLICK ($_return1,$_return2)
wait(1)
GETSCREEN
COLORMODE(6)
IF_PICTURE_IN(601,207,626,229,"UJAS.EXIT.bmp",-1,100)
KEYPRESS(#ESC)
waitms(100)
ELSE
LCLICK (555,451)
WAIT(15)
LCLICK (223,655) //OGN SHAR
WAIT(1)
LCLICK (540,602) //MANA
WAIT(1)
LCLICK (224,601) //MOLN
WAIT(1)
LCLICK (596,606) //OZVER
WAIT(1)
LCLICK (647,602) //SNEJ
WAIT(1)
LCLICK (701,605) //SNEJ
WAIT(1)
LCLICK (754,603) //SNEJ
WAIT(5)
KEYPRESS(#ESC)
WAIT(1)
LCLICK (425,431) //MENU
WAIT(1)
LCLICK (483,449) //ZABR
WAIT(4)
LCLICK (557,511) //EXIT
WAIT(2)
END_IF
END_IF
GETSCREEN
COLORMODE(6)
IF_PICTURE_IN(240,629,258,647,"BUY.bmp",-1,30)
LCLICK ($_return1,$_return2)
wait(1)
GETSCREEN
COLORMODE(6)
IF_PICTURE_IN(602,191,626,208,"BUY.EXIT.bmp",-1,100)
KEYPRESS(#ESC)
waitms(100)
ELSE
LCLICK (553,479)
WAIT(15)
LCLICK (223,655) //OGN SHAR
WAIT(1)
LCLICK (540,602) //MANA
WAIT(1)
LCLICK (224,601) //MOLN
WAIT(1)
LCLICK (596,606) //OZVER
WAIT(1)
LCLICK (647,602) //SNEJ
WAIT(1)
LCLICK (701,605) //SNEJ
WAIT(1)
LCLICK (754,603) //SNEJ
WAIT(5)
KEYPRESS(#ESC)
WAIT(1)
LCLICK (425,431) //MENU
WAIT(1)
LCLICK (483,449) //ZABR
WAIT(4)
LCLICK (557,511) //EXIT
END_IF
END_IF
END_CYC
LCLICK (790,368)
wait(4)