def run():
    print "--> mission Labors of War (1 of 3)"

    if not station.undock():
        return False

    if not space.warpToMissionLocation():
        return False

    if not space.enableAllLowSlot():
        return False

    if not space.openMissionDetail():
        return False

    if not space.lockBig():
        return False

    if not space.approach():
        return False

    if not space.openAfterBurn():
        return False

    if not space.launchDrones():
        return False

    if not space.fireOne():
        return False

    if not space.dronesEngage():
        return False

        # in this mission we should destroy all three industrials
    while True:
        space.lockBig()
        space.dronesEngage()
        time.sleep(15)
        if space.findV():
            break

    if not space.dronesReturn():
        return False

    if not space.missionObjectiveComplete():
        return False

    if not space.backToAgentStation():
        return False

    print "<-- mission Labors of War (1 of 3)\n"
    return True
def run():
	print '--> mission The Hidden Stash'

	if not station.undock():
		return False

	pilot.autopilot()

	if not space.warpToMissionLocation():
		return False

	if not space.enableAllLowSlot():
		return False

	if not space.activateAccelerationGate():
		return False

	if not space.openMissionDetail():
		return False

	if not space.lockTarget('img/warehouse.bmp'):
		return False

	if not space.openAfterBurn():
		return False

	if not space.approach():
		return False

	if not space.launchDrones():
		return False

	if not space.fireOne():
		return False

	if not space.dronesEngage():
		return False

	if not space.missionObjectiveComplete():
		return False

	if not space.dronesReturn():
		return False

	# there are two cargos
	if not space.pickMissionItem():
		return False

	if not space.pickMissionItem():
		return False

	if space.setMissionWaypoint():
		pilot.autopilot()
	else:
		mouse.leftClick()
		space.exitStartMap()
		space.backToAgentStation()

	print '<-- mission The Hidden Stash\n'
	return True
def run():
    print "--> mission Saving A Mans Career"

    if not station.undock():
        return False

    pilot.autopilot()

    if not space.warpToMissionLocation():
        return False

    if not space.enableAllLowSlot():
        return False

    if space.findClose():
        mouse.leftClick()

    if not space.lockTarget("img/sangrel_minn.bmp"):
        return False

    space.openAfterBurn()

    space.approachFor(30)

    if not space.launchDrones():
        return False

    space.fireOne()

    space.dronesEngage()

    if not space.pickMissionItem():
        return False

    if not space.dronesReturn():
        return False

    if space.setMissionWaypoint():
        pilot.autopilot()
    else:
        mouse.leftClick()
        space.exitStartMap()
        space.backToAgentStation()

    print "<-- mission Saving A Mans Career\n"
    return True
def run():
    print "--> mission Customs lnterdictian (1 of 2)"

    if not station.undock():
        return False

    pilot.autopilot()

    space.warpToMissionLocation()

    # this mission don't have a acceleration gate
    # and will pop up a dialog
    time.sleep(10)
    if space.findClose():
        mouse.leftClick()

    if not space.enableAllLowSlot():
        return False

    if not space.openMissionDetail():
        return False

    time.sleep(10)

    if not space.lockBig():
        return False

    if not space.approach():
        return False

    if not space.openAfterBurn():
        return False

    if not space.launchDrones():
        return False

    if not space.fireOne():
        return False

    if not space.dronesEngage():
        return False

    if not space.missionObjectiveComplete():
        return False

    if not space.dronesReturn():
        return False

    if not space.pickMissionItem():
        return False

    if not space.setMissionWaypoint():
        return False

    pilot.autopilot()

    print "<-- mission Customs lnterdictian (1 of 2)\n"
    return True
def run():
	print '--> mission The Damsel In Distress'

	if not station.undock():
		return False

	pilot.autopilot()

	if not space.warpToMissionLocation():
		return False

	if not space.enableAllLowSlot():
		return False

	if not space.openMissionDetail():
		return False

	if not space.lockTarget('img/pleasure_hub.bmp'):
		return False

	if not space.approach():
		return False

	if not space.openAfterBurn():
		return False

	if not space.launchDrones():
		return False

	if not space.fireOne():
		return False

	if not space.dronesEngage():
		return False

	#there are two cargos
	mouse.move(-200, 0)
	if not space.pickMissionItem():
		return False
	if not space.pickMissionItem():
		return False

	if not space.missionObjectiveComplete():
		return False

	if not space.dronesReturn():
		return False

	if space.setMissionWaypoint():
		pilot.autopilot()
	else:
		mouse.leftClick()
		space.exitStartMap()
		space.backToAgentStation()

	print '<-- mission The Damsel In Distress\n'
	return True
def run():
	print '--> mission Avenge a Fallen Comrade'

	if not station.undock():
		return False

	pilot.autopilot()

	if not space.warpToMissionLocation():
		return False

	if not space.enableAllLowSlot():
		return False

	if not space.activateAccelerationGate():
		return False

	if not space.openMissionDetail():
		return False

	if not space.lockTarget('img/habitat.bmp'):
		return False

	if not space.openAfterBurn():
		return False

	if not space.approachFor(60):
		return False

	if not space.lockTarget('img/habitat.bmp'):
		return False

	if not space.launchDrones():
		return False

	if not space.fireOne():
		return False

	if not space.dronesEngage():
		return False

	if not space.missionObjectiveComplete():
		return False

	if not space.dronesReturn():
		return False

	if space.setMissionWaypoint():
		pilot.autopilot()
	else:
		mouse.leftClick()
		space.exitStartMap()
		space.backToAgentStation()

	print '<-- mission Avenge a Fallen Comrade\n'
	return True
def run():
	print '--> mission Customs lnterdictian (2 of 2)'

	if not station.undock():
		return False

	pilot.autopilot()

	if not space.warpToMissionLocation():
		return False

	if not space.enableAllLowSlot():
		return False

	if not space.openMissionDetail():
		return False

	if not space.lockBig():
		return False

	if not space.approach():
		return False

	if not space.openAfterBurn():
		return False

	if not space.launchDrones():
		return False

	if not space.fireOne():
		return False

	if not space.dronesEngage():
		return False

	if not space.missionObjectiveComplete():
		return False

	if not space.dronesReturn():
		return False

	if not space.pickMissionItem():
		return False

	if space.setMissionWaypoint():
		pilot.autopilot()
	else:
		mouse.leftClick()
		space.exitStartMap()
		space.backToAgentStation()

	print '<-- mission Customs lnterdictian (2 of 2)\n'
	return True
def run():
	print '--> mission The Blockade'

	if not station.undock():
		return False

	if not space.warpToMissionLocation():
		return False

	if not space.enableAllLowSlot():
		return False

	if not space.openMissionDetail():
		return False

	if not space.launchDrones():
		return False

	while not space.findV():
		if space.lockTarget('img/enslaver.bmp') or space.lockTarget('img/plague.bmp'):
			space.dronesReturn()
			time.sleep(8)
			space.launchDrones()
			space.fireOne()
			space.dronesEngage()
			time.sleep(20)
		else:
			time.sleep(5)

	if not space.missionObjectiveComplete():
		return False

	if not space.dronesReturn():
		return False

	space.backToAgentStation()

	print '<-- mission The Blockade\n'
	return True
def run():
	print '--> mission The Drug Bust'

	if not station.undock():
		return False

	if not space.warpToMissionLocation():
		return False

	if not space.enableAllLowSlot():
		return False

	if not space.activateAccelerationGate():
		return False

	if not space.openMissionDetail():
		return False

	if not space.lockBig():
		return False

	if not space.approach():
		return False

	if not space.openAfterBurn():
		return False

	if not space.launchDrones():
		return False

	if not space.fireOne():
		return False

	if not space.dronesEngage():
		return False

	if not space.pickMissionItem():
		return False

	if not space.missionObjectiveComplete():
		return False

	if not space.dronesReturn():
		return False

	if not space.backToAgentStation():
		return False


	print '<-- mission The Drug Bust\n'
	return True
def run():
    print "--> mission Labors of War (3 of 3)"

    if not station.undock():
        return False

    if not space.warpToMissionLocation():
        return False

    if not space.enableAllLowSlot():
        return False

    if not space.openMissionDetail():
        return False

    if not space.lockTarget("img/manufacturing_outpost.bmp"):
        return False

    if not space.approach():
        return False

    if not space.openAfterBurn():
        return False

    if not space.launchDrones():
        return False

    if not space.fireOne():
        return False

    if not space.dronesEngage():
        return False

    if not space.missionObjectiveComplete():
        return False

    if not space.dronesReturn():
        return False

    if not space.backToAgentStation():
        return False

    print "<-- mission Labors of War (3 of 3)\n"
    return True
def run():
	print '--> mission Vigilance'

	if not station.undock():
		return False

	pilot.autopilot()

	if not space.warpToMissionLocation():
		return False

	if not space.enableAllLowSlot():
		return False

	if not space.openAfterBurn():
		return False

	while not space.lockTarget('img/suspicious.bmp'):
		time.sleep(5)

	if not space.launchDrones():
		return False

	if not space.dronesEngage():
		return False

	if not space.pickMissionItem():
		return False

	if not space.dronesReturn():
		return False

	if space.setMissionWaypoint():
		pilot.autopilot()
	else:
		mouse.leftClick()
		space.exitStartMap()
		space.backToAgentStation()

	print '<-- mission Vigilance\n'
	return True
def run():
	print '--> mission Unauthorized Military Presence'

	if not station.undock():
		return False

	pilot.autopilot()

	if not space.warpToMissionLocation():
		return False

	if not space.enableAllLowSlot():
		return False

	if not space.activateAccelerationGate():
		return False

	if not space.openMissionDetail():
		return False

	if not space.lockTarget('img/blood_raider_personnel.bmp'):
		return False

	if not space.openAfterBurn():
		return False

	if not space.approachFor(90):
		return False

	if not space.lockTarget('img/blood_raider_personnel.bmp'):
		return False

	if not space.launchDrones():
		return False

	if not space.fireOne():
		return False

	if not space.dronesEngage():
		return False

	# mission item is in wreck
	while not space.findV():
		if space.findEnemy():
			mouse.leftClick()
			space.approach()
			key.keyPressEx(sc.Lock)
			time.sleep(8)
			space.fireOne()
			time.sleep(15)
			mouse.move(-200, 0)
		# collect
		space.pickWreck()

	if not space.missionObjectiveComplete():
		return False

	if not space.dronesReturn():
		return False

	if space.setMissionWaypoint():
		pilot.autopilot()
	else:
		mouse.leftClick()
		space.exitStartMap()
		space.backToAgentStation()

	print '<-- mission Unauthorized Military Presence\n'
	return True