Я красиво с переменными писать не умею. Но вот это уродство работает:
$_zona1 = 769
$_zona2 = 974
$_zona3 = 1179
$_up = 626
$_down = 878
$check = 0 //продаем склад
WHILE($check = 0)
WAITMS(100)
GETSCREEN
COLORMODE(6)
IF_PIXEL_IN($_zona1,$_up,$_zona1+1,$_up+1,4177919)
IF((PXL($_return1+32,$_return2+1)=4177919)&(PXL($_return1-7,$_return2+5)=4161535)&(PXL($_return1+32,$_return2+2)=8388607))
END_IF
ELSE
IF_PIXEL_IN($_zona2,$_up,$_zona2+1,$_up+1,4177919)
IF((PXL($_return1+32,$_return2+1)=4177919)&(PXL($_return1-7,$_return2+5)=4161535)&(PXL($_return1+32,$_return2+2)=8388607))
END_IF
ELSE
IF_PIXEL_IN($_zona3,$_up,$_zona3+1,$_up+1,4177919)
IF((PXL($_return1+32,$_return2+1)=4177919)&(PXL($_return1-7,$_return2+5)=4161535)&(PXL($_return1+32,$_return2+2)=8388607))
END_IF
ELSE
IF_PIXEL_IN($_zona1,$_down,$_zona1+1,$_down+1,4177919)
IF((PXL($_return1+32,$_return2+1)=4177919)&(PXL($_return1-7,$_return2+5)=4161535)&(PXL($_return1+32,$_return2+2)=8388607))
END_IF
ELSE
IF_PIXEL_IN($_zona2,$_down,$_zona2+1,$_down+1,4177919)
IF((PXL($_return1+32,$_return2+1)=4177919)&(PXL($_return1-7,$_return2+5)=4161535)&(PXL($_return1+32,$_return2+2)=8388607))
END_IF
ELSE
IF_PIXEL_IN($_zona3,$_down,$_zona3+1,$_down+1,4177919)
IF((PXL($_return1+32,$_return2+1)=4177919)&(PXL($_return1-7,$_return2+5)=4161535)&(PXL($_return1+32,$_return2+2)=8388607))
END_IF
ELSE
$check = 1
END_IF
END_IF
END_IF
END_IF
END_IF
END_IF
MOVE($_return1+45, $_return2-35)
WAITMS(50)
LCLICK($_return1+45, $_return2-35)
WAITMS(50)
KEYSTRING("999999",5)
WAITMS(50)
LCLICK($_return1+65, $_return2+15)
WAITMS(200)
END_CYC
HALT