Jelajahi Sumber

!2 check safe mine

pcacc 3 bulan lalu
induk
melakukan
89e9f71720
7 mengubah file dengan 46 tambahan dan 1 penghapusan
  1. 1 0
      app_dongri.py
  2. TEMPAT SAMPAH
      dongri_img/monster/line6.png
  3. TEMPAT SAMPAH
      dongri_img/monster/line7.png
  4. TEMPAT SAMPAH
      dongri_img/special_activity/big_collect.png
  5. TEMPAT SAMPAH
      dongri_img/special_activity/collection_friend.png
  6. 6 0
      dongri_pic.py
  7. 39 1
      dongri_task.py

+ 1 - 0
app_dongri.py

@@ -353,6 +353,7 @@ def add_auto_task(isMaxCollect, isJina, isSimple = False, isAddStrengh = False,
             task_queue.appendleft(task_useAnnimalSkill())
             #task_queue.appendleft(task_checkHelp(False))
             task_queue.appendleft(task_read_mails())
+            task_queue.appendleft(check_safe_collect())
             if auto_participate:
                 task_queue.appendleft(task_checkConfilits())
             task_queue.appendleft(task_checkDiamond())

TEMPAT SAMPAH
dongri_img/monster/line6.png


TEMPAT SAMPAH
dongri_img/monster/line7.png


TEMPAT SAMPAH
dongri_img/special_activity/big_collect.png


TEMPAT SAMPAH
dongri_img/special_activity/collection_friend.png


+ 6 - 0
dongri_pic.py

@@ -42,6 +42,8 @@ class monster_img:
     line3 = R'dongri_img\monster\line3.png'
     line4 = R'dongri_img\monster\line4.png'
     line5 = R'dongri_img\monster\line5.png'
+    line6 = R'dongri_img\monster\line6.png'
+    line7 = R'dongri_img\monster\line7.png'
     all_select = R'dongri_img\monster\all_select.png'
     attack = R'dongri_img\monster\attack.png'
     attack2 = R'dongri_img\monster\attack2.png'
@@ -269,6 +271,10 @@ class special_activity_img:
     enter_champion = R'dongri_img\special_activity\enter_champion.png'
     champion_move = (476,471,357,437)
     fight_last = (451,547,481,575)
+
+    # 安全矿
+    collection_friend = R'dongri_img\special_activity\collection_friend.png'
+    big_collect = R'dongri_img\special_activity\big_collect.png'
     
 def change_direction(direction):
     if len(direction) == 4:

+ 39 - 1
dongri_task.py

@@ -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()