def main(): time.sleep(2) util.logOut(__file__, str(CHAPTER_NUM) + '-' + str(CHAPTER_NUM2) + '脚本开始') const.chapterProcess(CHAPTER_NUM, 'N') while True: # 进入 util.logOut(__file__, str(CHAPTER_NUM) + '-' + str(CHAPTER_NUM2) + '开始') const.intoStageProcess(CHAPTER_X, CHAPTER_Y) # 走格子 X, Y = START_X, START_Y # 打CNT个出boss for n in range(CNT): const.picLoop(const.publicPath() + 'bmp/withdraw.jpg') # 等待搜索雷达 time.sleep(4.000) X, Y = const.findShip(X, Y, PIC_NUM, path) util.click(X, Y) const.anchorProcess() # boss const.picLoop(const.publicPath() + 'bmp/withdraw.jpg') # 等待搜索雷达 time.sleep(4.000) const.goBossProcess() util.logOut(__file__, '-------------------------')
def main(): time.sleep(2) util.logOut( __file__, '通常' + str(CHAPTER_NUM) + '-' + str(CHAPTER_NUM2) + ' 不打boss 开始') const.chapterProcess(CHAPTER_NUM, 'N') while True: # 进入12-4 util.logOut(__file__, '-------------一局开始------------') const.intoStageProcess(CHAPTER_X, CHAPTER_Y, 3, 6, True) # 走格子 X, Y = START_X, START_Y # 打CNT个出boss for n in range(CNT): util.logOut(__file__, '------------一把开始-----------') const.picLoop(const.publicPath() + 'bmp/withdraw.jpg') # 等待搜索雷达 time.sleep(4.000) X, Y = const.findShip(X, Y, const.getPicNum(path), path) util.click(X, Y) const.anchorProcess(redFace=True) util.logOut(__file__, '------------一把结束-----------') # boss 不打boss x, y = const.picLoop(const.publicPath() + 'bmp/withdraw.jpg') util.click(x, y) x, y = const.picLoop(const.publicPath() + 'bmp/OK.jpg') util.click(x, y) util.logOut(__file__, '-------------一局结束------------')
def main(): time.sleep(2) util.logOut(__file__, '通常9-1 打n把 开始') const.chapterProcess(CHAPTER_NUM, 'N') while True: # 进入 util.logOut(__file__, '9-1开始') const.intoStageProcess(CHAPTER_X, CHAPTER_Y, 3, 6) # 走格子 X, Y = START_X, START_Y # 打CNT个出boss for n in range(CNT): const.picLoop(const.publicPath() + 'bmp/withdraw.jpg') #紧急委托 特殊 xx, yy = util.findPic(const.publicPath() + 'bmp/OK.jpg') if xx != -1 and yy != -1: util.click(xx, yy) # 等待搜索雷达 time.sleep(4.000) X, Y = const.findShip(X, Y, const.getPicNum(path), path) util.click(X, Y) const.anchorProcess() # boss 不打boss x, y = const.picLoop(const.publicPath() + 'bmp/withdraw.jpg') util.click(x, y) x, y = const.picLoop(const.publicPath() + 'bmp/OK.jpg') util.click(x, y) util.logOut(__file__, '-------------------------')
def main(): print('记得把道中队换好') print('破交自己打不识别') time.sleep(2) util.logOut(__file__,'每日脚本开始') # 判断是否在出击界面 if not util.isFindPic(const.publicPath() + 'bmp/exercise.jpg'): # 返回主页面 const.backMainProcess() # 进入出击界面 x, y = const.picLoop(const.publicPath() + 'bmp/weigh anchor.jpg') util.click(x, y) time.sleep(.8) # 进入每日界面 x, y = const.picLoop(const.publicPath() + 'bmp/daily task.jpg') util.click(x, y) time.sleep(.8) firstIntoFlag = True indexTup = INDEXS_BY_WEEK[util.dayOfWeek() - 1] for index in indexTup: if not firstIntoFlag: resetProcess() if not isOKByIndex(index): continue # 移动 if index != 2: util.click(NAME_SIZES[index][0], NAME_SIZES[index][1]) time.sleep(.800) # 进入 util.click(NAME_SIZES[2][0], NAME_SIZES[2][1]) time.sleep(.800) # 打3把 for k in range(3): # 最上面那个子选项位置 util.click(503, 134) time.sleep(.800) const.anchorProcess() # 返回 x, y = const.picLoop(const.publicPath() + 'bmp/back.jpg') time.sleep(.800) util.click(x, y) firstIntoFlag = False time.sleep(1) const.backMainProcess() return
def main(): time.sleep(2) util.logOut(__file__,'演习脚本开始') # 判断是否在演习界面 if not util.isFindPic(const.publicPath() + 'bmp/is_exercise.jpg'): # 返回主页面 const.backMainProcess() # 进入演习界面 x, y = const.picLoop(const.publicPath() + 'bmp/weigh anchor.jpg') util.click(x, y) time.sleep(.500) x, y = const.picLoop(const.publicPath() + 'bmp/exercise.jpg') util.click(x, y) time.sleep(.500) while True: # 0/10退出 time.sleep(1) list = util.getNumbers((778, 91, 818, 113)) if list != [] and list[0][0] == '0': const.backMainProcess() return # 识字 选择弱的 min, minIndex = FindOKExercise() while min > myAttack: x, y = const.picLoop( const.publicPath() + 'bmp/new opponent.jpg') util.click(x, y) time.sleep(6.000) min, minIndex = FindOKExercise() util.click(EXERCISE_SIZES[minIndex] [0], EXERCISE_SIZES[minIndex][1]) time.sleep(.500) # 开始演习 x, y = const.picLoop(const.publicPath() + 'bmp/start excise.jpg') util.click(x, y) time.sleep(.500) const.anchorProcess()
def main(): while True: const.anchorProcess() time.sleep(5)