|
@@ -1301,6 +1301,43 @@ class task_fight_campion(dongri_task):
|
|
|
return False
|
|
|
return True
|
|
|
|
|
|
+class check_safe_collect(dongri_task):
|
|
|
+ def __init__(self):
|
|
|
+ super().__init__(f"检查安全收集")
|
|
|
+ def run(self):
|
|
|
+ basic_operate.go_outside()
|
|
|
+ if waitClickImg_noWait_withBool(special_activity_img.collection, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ if waitClickImg_noWait_withBool(special_activity_img.collection_friend, 2, 1) == False:
|
|
|
+ return False
|
|
|
+
|
|
|
+ myTimeSleep_big()
|
|
|
+ firstPos = get_yys_random_point(special_activity_img.first_enemy_region)
|
|
|
+ pcacc_mouse.click(firstPos[0], firstPos[1])
|
|
|
+ maxTryTimes = 5
|
|
|
+ while waitClickImg_noWait_withBool(monster_img.collect, 1, 1) == False and maxTryTimes > 0:
|
|
|
+ maxTryTimes -= 1
|
|
|
+ myTimeSleep_big()
|
|
|
+ mid_enemy_pos = get_yys_random_point(special_activity_img.mid_enemy_region)
|
|
|
+ pcacc_mouse.click(mid_enemy_pos[0], mid_enemy_pos[1])
|
|
|
+ myTimeSleep_big()
|
|
|
+
|
|
|
+ if waitClickImg_noWait_withBool(special_activity_img.big_collect, 2, 1) == False:
|
|
|
+ return False
|
|
|
+
|
|
|
+ if waitClickImg_noWait_withBool(monster_img.line7, 2, 1) == False:
|
|
|
+ return False
|
|
|
+
|
|
|
+ maxTryTimes = 3
|
|
|
+ while maxTryTimes > 0:
|
|
|
+ maxTryTimes -= 1
|
|
|
+ waitClickImg_withBool([monster_img.fight, monster_img.fight2], 1, 1)
|
|
|
+ waitClickImg_noWait_withBool(monster_img.all_select, 1, 1)
|
|
|
+ if waitFindImg_withBool(monster_img.all_select, 1, 1) == False:
|
|
|
+ break
|
|
|
+
|
|
|
+
|
|
|
+ return True
|
|
|
|
|
|
|
|
|
|
|
@@ -1325,7 +1362,8 @@ if __name__ == '__main__':
|
|
|
#task_checkHelp().run()
|
|
|
#task_checkStoreRoom().run()
|
|
|
#task_start_game(0)
|
|
|
- task_fight_campion().run()
|
|
|
+ check_safe_collect().run()
|
|
|
+ #task_fight_campion().run()
|
|
|
#task_activity_lianmeng().run()
|
|
|
#task_fight_yongbing(True).run()
|
|
|
#task_collect([4,3,2,1]).run()
|