当前位置: 首页>>代码示例>>Python>>正文


Python General.setMissionWaypoint方法代码示例

本文整理汇总了Python中General.setMissionWaypoint方法的典型用法代码示例。如果您正苦于以下问题:Python General.setMissionWaypoint方法的具体用法?Python General.setMissionWaypoint怎么用?Python General.setMissionWaypoint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在General的用法示例。


在下文中一共展示了General.setMissionWaypoint方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: run

# 需要导入模块: import General [as 别名]
# 或者: from General import setMissionWaypoint [as 别名]
def run():
	print '--> mission New Frontiers - Raw Materials (6 of 7)'

	if not station.openInventory():
		return False

	if not station.loadItem('mission_cargo'):
		return False

	if not station.closeInventory():
		return False

	if not station.undock():
		return False

	pilot.autopilot()

	if not general.setMissionWaypoint():
		return False

	if not station.startConversation(agent):
		return False

	if not station.completeMission():
		return False

	if not station.undock():
		return False

	pilot.autopilot()


	print '<-- mission New Frontiers - Raw Materials (6 of 7)\n'
	return True
开发者ID:kidsang,项目名称:EVE-Script-2,代码行数:36,代码来源:NewFrontiers6.py

示例2: run

# 需要导入模块: import General [as 别名]
# 或者: from General import setMissionWaypoint [as 别名]
def run():
	print '--> mission Technological Secrets 2'

	# this is a transport mission
	if not (station.openInventory() \
		and station.loadItem('dna_sample') \
		and station.closeInventory()):
		return False

	if not station.undock():
		return False

	pilot.autopilot()

	if not general.setMissionWaypoint():
		return False

	if not station.startConversation(agent):
		return False

	if not station.completeMission():
		return False

	if not station.undock():
		return False

	pilot.autopilot()

	print '<-- mission Technological Secrets 2\n'
	return True
开发者ID:kidsang,项目名称:EVE-Script-2,代码行数:32,代码来源:TechnologicalSecrets2.py

示例3: run

# 需要导入模块: import General [as 别名]
# 或者: from General import setMissionWaypoint [as 别名]
def run():
	print 'mission bot begin.\n'
	log('\n\nbot started\n')

	while True:

		if not station.startConversation(agent):
			print 'Error: Could not find target agent.'
			return False

		mission = pic.extractTextR(panel.MissionName).strip()
		missionType = ''
		print mission
		if mission in battle:
			missionType = 'b'
		elif mission in transport:
			missionType = 't'
		elif mission in skip:
			if not station.declineMission():
				return False
			else:
				continue
		else:
			print 'Error: Cant find bot for mission \'' + mission + '\'.'
			return False

		record(mission, 'begin')

		if not station.acceptMission():
			print 'Error: Accept mission failed.'
			return False

		# mouse.moveToP(panel.center(panel.Mission))
		# result = findAtFull('x')
		# if not result:
		# 	return False
		# mouse.leftClickAtP(result)

		if not general.setMissionWaypoint(True):
			print 'Error: Cant set mission waypoint.'
			return False

		if missionType == 'b':
			if not runBattle(mission):
				return False
		elif missionType == 't':
			if not runTransport(mission):
				return False

		record(mission, 'complete')
开发者ID:kidsang,项目名称:EVE-Script-2,代码行数:52,代码来源:Main.py

示例4: run

# 需要导入模块: import General [as 别名]
# 或者: from General import setMissionWaypoint [as 别名]
def run():
	print '--> mission New Frontiers - Raw Materials (3 of 7)'

	if not station.activateShip('shuttle'):
		return False

	if not station.undock():
		return False

	pilot.autopilot()

	if not station.openInventory():
		return False

	if not station.loadItem('datacore'):
		return False

	if not station.closeInventory():
		return False

	if not general.setMissionWaypoint():
		return False

	if not station.undock():
		return False

	pilot.autopilot()

	if not station.startConversation(agent):
		return False

	if not station.completeMission():
		return False

	if not station.activateShip('dominix'):
		return False

	print '<-- mission New Frontiers - Raw Materials (3 of 7)\n'
	return True
开发者ID:kidsang,项目名称:EVE-Script-2,代码行数:41,代码来源:NewFrontiers3.py


注:本文中的General.setMissionWaypoint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。