Code:
If $result = 0 Then ;no missions found at all, move on to next companion
custTooltip("No missions available, moving on to next companion...")
$compStatus = "Unavailable"
Else ;mission found, click on it
waitSleep()
clickRight($x, $y - 20)
EndIf
Code:
If $result = 0 Then ;no missions found looking for money job
custTooltip("No missions available,choose most profitable (if any)...move up")
clickLeft($scrollupx, $scrollupy);added new positions for scroll up
waitSleep()
$result = _imagesearcharea($icbImageDir & "en_rich.bmp", 1, 520, 216, 740, 406, $x, $y, $icbCrewTol);mb error in file naming
If $result = 0 Then ;no rich missions found
custTooltip("No RICH missions available...for default")
waitSleepLonger()
$result = _imagesearcharea($icbImageDir & "en_bounti.bmp", 1, 520, 216, 740, 406, $x, $y, $icbCrewTol)
If $result = 0 Then ;no missions found at all, move on to next companion
custTooltip("No rich/bounti missions available, moving on to next companion...for default")
waitSleepLonger()
;no missions found in first page
custTooltip("No missions found on first page, scrolling down...")
;scroll down mission window, see if there's more
clickLeft($scrolldownx, $scrolldowny)
waitSleep()
custTooltip("No missions available,choose most profitable (if any)...")
$result = _imagesearcharea($icbImageDir & "en_rich.bmp", 1, 520, 216, 740, 406, $x, $y, $icbCrewTol)
If $result = 0 Then ;no rich missions found
custTooltip("No RICH missions available...for choosen lvl")
waitSleepLonger()
$result = _imagesearcharea($icbImageDir & "en_bounti.bmp", 1, 520, 216, 740, 406, $x, $y, $icbCrewTol)
If $result = 0 Then ;no missions found at all, move on to next companion
custTooltip("No rich/bounti missions available, moving on to next companion...for choosen lvl")
waitSleepLonger()
$compStatus = "Unavailable"
Else ;mission found, click on it
waitSleep()
clickRight($x, $y - 20)
EndIf
Else ;mission found, click on it
waitSleep()
clickRight($x, $y - 20)
EndIf
Else ;mission found, click on it
waitSleep()
clickRight($x, $y - 20)
EndIf
Else ;mission found, click on it
waitSleep()
clickRight($x, $y - 20)
EndIf
Else ;mission found, click on it
waitSleep()
clickRight($x, $y - 20)
EndIf