项目地址:github网址
软件截图:
目前版本仅支持御魂副本,可以同时开多个号一起刷,部分代码如下:
def YuHunTwoWindow(LogUI):"""自动御魂,双开模式"""imgs = loadImgs()PassTime=1while True:LogUI.insert(END, '开始挑战')logging.debug('开始挑战')isStageOnePass=False# 开始挑战while isStageOnePass==False:screen=GetScreenShot()for i in ['tiaozhan']:obj = imgs[i]pos = GetLocation(obj, screen)if not pos == None:isStageOnePass=TrueClick(pos)time.sleep(0.1)logging.debug('结算奖励')isStageTwoPass=FalseclickCount = 0# 结算奖励 双开计算两次while isStageTwoPass==False:screen = GetScreenShot()for i in ['end1', 'end2']:obj = imgs[i]pos = GetLocation(obj, screen)logging.debug('检测结算目标图像')if not pos == None:logging.info('结算点击'+str(clickCount)+'次')Click(pos)if clickCount == 4:isStageTwoPass=TrueclickCount += 1isStageThreePass=FalseinvitedParter = FalseclickCount=0while isStageThreePass==False:screen = GetScreenShot()if invitedParter == True:breaklogging.debug('第一次邀请队友并自动组队')# 邀请队友for i in ['queding', 'jieshou1']:obj = imgs[i]pos = GetLocation(obj, screen)if not pos == None:clickCount += 1Click(pos)if clickCount == 2:invitedParter = TrueisStageThreePass=Truecontinuelogging.info('已通关副本'+str(PassTime)+'次')PassTime+=1LogUI.insert(END, '已经通关'+str(PassTime)+'次')
有感兴趣的欢迎点star哦,欢迎提issue。
如果觉得《python制作阴阳师挂机脚本》对你有帮助,请点赞、收藏,并留下你的观点哦!