start:
GETSCREEN
IF_PICTURE_IN (1,1, $_xmax,$_ymax, "hp.bmp")
goto (kill)
ELSE
WAIT(5)
GOTO(start)
END_IF
kill:
GETSCREEN
IF_PIXEL_IN(1005,445, 1292,657, 13158600)
LCLICK($_return1, $_return2)
LCLICK($_return1, $_return2)
wait(2)
ELSE
goto (kill)
END_IF
close:
MOVE(100,100)
GETSCREEN
IF_PICTURE_IN (1,1, $_xmax,$_ymax, "1.bmp")
LCLICK($_return1, $_return2)
WAIT(1)
Else
GOTO(attack)
Else
GOTO(start)
END_IF
attack:
GETSCREEN
IF_PICTURE_IN (1,1, $_xmax,$_ymax, "2.bmp") /
LCLICK($_return1, $_return2)
WAIT(1)
Else
IF_PICTURE_IN (1,1, $_xmax,$_ymax, "3.bmp")
LCLICK($_return1, $_return2)
WAIT(1)
Else
IF_PICTURE_IN (1,1, $_xmax,$_ymax, "4.bmp")
LCLICK($_return1, $_return2)
WAIT(1)
END_IF
END_IF
END_IF
hpv:
GETSCREEN
IF_PICTURE_IN (1,1, $_xmax,$_ymax, "vin.bmp")
GOTO(start)
ELSE
GOTO(close)
END_IF
//=============================================
поправьте пожалуйста по отдельности вроде работает а вот так нет