Esempio n. 1
0
def unloadItem(item):
    print '--> unload item ' + item

    x, y = image.findImgR(panel.Inventory, 'img/ship.bmp', 0.2)
    if x > 0:
        mouse.moveTo(x, y)
        mouse.leftClick()
        time.sleep(1.5)

    x = -1
    x, y = image.findImgR(panel.Inventory, item)
    while x < 0:
        mouse.moveToP(panel.middle(panel.Inventory))
        mouse.leftClick()
        mouse.wheel(-12)
        mouse.move(300, 0)
        x, y = image.findImgR(panel.Inventory, item)

    mouse.moveTo(x, y)
    mouse.leftDown()
    x, y = image.findImgR(panel.Inventory, 'img/item_hangar.bmp', 0.2)
    if x < 0:
        mouse.leftUp()
        return False
    mouse.moveTo(x, y)
    mouse.leftUp()
    time.sleep(1)

    print '<-- unload item ' + item + '\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 The Seven\'s Brothel'

	if not station.undock():
		return False

	pilot.autopilot()

	if not space.warpToMissionLocation():
		return False

	print 'wait for message'
	time.sleep(10)
	if space.findClose():
		mouse.leftClick()

	if not space.enableAllLowSlot():
		return False

	if not space.openMissionDetail():
		return False

	if not space.openAfterBurn():
		return False

	if not space.launchDrones():
		return False

	while space.findEnemy():
		mouse.leftClick()
		key.keyPressEx(sc.Lock)
		time.sleep(8)
		space.fireOne()
		time.sleep(15)
		mouse.move(-200, 0)

	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 Seven\'s Brothel\n'
	return True
def run():
	print '--> mission The Sansha Spies'

	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.activateAccelerationGate():
		return False

	if not space.openAfterBurn():
		return False

	if not space.launchDrones():
		return False

	while space.findEnemy():
		mouse.leftClick()
		space.approach()
		key.keyPressEx(sc.Lock)
		time.sleep(8)
		space.fireOne()
		time.sleep(15)
		mouse.move(-200, 0)

	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 Sansha Spies\n'
	return True
Esempio n. 5
0
def acceptMission():
    print '--> accept mission'

    if not findAccept():
        return False
    mouse.leftClick()
    mouse.move(0, 50)

    print 'wait until accepting mission'
    while not findCompleteMission():
        time.sleep(0.2)

    if not findX():
        return False
    mouse.leftClick()

    print '<-- accept mission\n'
    return True
Esempio n. 6
0
def run():
	# print '--> mission Recon 1'

	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.activateAccelerationGate():
		return False

	# pocket 1
	# can activate acceleration gate without cleaning
	mouse.move(-200, 0)

	if not space.openAfterBurn():
		return False

	if not space.activateAccelerationGate():
		return False

	# # pocket 2
	time.sleep(2)
	if space.findOK():
		mouse.leftClick()
	
	if not space.missionObjectiveComplete():
		return False

	if not space.backToAgentStation():
		return False

	print '<-- mission Recon 1\n'
	return True
Esempio n. 7
0
def undock():
    print '--> undock'

    if not findUndock():
        return False

    mouse.leftClick()
    mouse.move(200, 0)

    print 'wait until undock'
    while findUndock():
        time.sleep(0.1)

    print 'wait until entering space'
    while not findEnteringSpace():
        time.sleep(0.1)

    time.sleep(3)

    print '<-- undock\n'
    return True
def run():
	print '--> mission Pirate Intrusion'

	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.activateAccelerationGate():
		return False

	# pocket 1
	mouse.move(-200, 0)
	if not space.findTarget("img/acceleration_gate.bmp"):
		return False
	mouse.leftClick()

	if not space.approach():
		return False

	if not space.openAfterBurn():
		return False

	time.sleep(30)

	if not space.launchDrones():
		return False

	while space.findEnemy():
		mouse.leftClick()
		key.keyPressEx(sc.Lock)
		time.sleep(8)
		space.fireOne()
		time.sleep(15)
		mouse.move(-200, 0)

	if not space.dronesReturn():
		return False

	if not space.activateAccelerationGate():
		return False

	# pocket 2

	if not space.launchDrones():
		return False
		
	if not space.openAfterBurn():
		return False

	while space.findEnemy():
		mouse.leftClick()
		space.approach()
		key.keyPressEx(sc.Lock)
		time.sleep(8)
		space.fireOne()
		time.sleep(15)
		mouse.move(-200, 0)

	if not space.missionObjectiveComplete():
		return False

	if not space.dronesReturn():
		return False

	if not space.backToAgentStation():
		return False

	print '<-- mission Pirate Intrusion\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
def run():
	print '--> mission Foreign Investment'

	if not station.undock():
		return False

	pilot.autopilot()

	if not space.warpToMissionLocation():
		return False

	if not space.enableAllLowSlot():
		return False

	# there are guards
	if not space.launchDrones():
		return False

	if not space.openMissionDetail():
		return False

	if not space.openAfterBurn():
		return False

	while space.findEnemy():
		mouse.leftClick()
		key.keyPressEx(sc.Lock)
		time.sleep(8)
		space.fireOne()
		time.sleep(15)
		mouse.move(-200, 0)

	if not space.dronesReturn():
		return False

	if not space.activateAccelerationGate():
		return False

	# pocket 1
	mouse.move(-200, 0)
	if not space.lockTarget("img/gallente_company_hq.bmp"):
		return False

	if not space.approach():
		return False

	if not space.launchDrones():
		return False

	if not space.fireOne():
		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 Foreign Investment\n'
	return True
def run():
	print '--> mission Mission of Mercy'

	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.activateAccelerationGate():
		return False

	if not space.openAfterBurn():
		return False

	# wait for enemy to warp in
	time.sleep(60)

	# establish hate
	if space.findEnemy():
		mouse.leftClick()
		key.keyPressEx(sc.Lock)
		key.keyPressEx(sc.Keep)
		time.sleep(10)
		space.fireOne()
		time.sleep(5)

	if not space.launchDrones():
		return False

	while not space.findV() and space.findEnemy():
		mouse.leftClick()
		key.keyPressEx(sc.Keep)
		key.keyPressEx(sc.Lock)
		time.sleep(10)
		space.fireOne()
		time.sleep(50)
		mouse.move(-200, 0)
		mouse.leftClick()

	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 Mission of Mercy\n'
	return True