Bladeren bron

!2 update shili 860

pcacc 4 maanden geleden
bovenliggende
commit
72dee42f87
5 gewijzigde bestanden met toevoegingen van 23 en 10 verwijderingen
  1. 4 4
      app_dongri.py
  2. BIN
      dongri_img/special_activity/shili_860.png
  3. BIN
      dongri_img/special_activity/shili_860_3.png
  4. 18 5
      dongri_task.py
  5. 1 1
      scriptBase/imgFind.py

+ 4 - 4
app_dongri.py

@@ -291,8 +291,8 @@ def add_auto_task(isMaxCollect, isJina, isSimple = False, isAddStrengh = False,
             task_queue.appendleft(task_cure(True, g_cureNum))
             task_queue.appendleft(task_cure(True, g_cureNum))
             return
-
-        task_queue.appendleft(task_information())
+        if isSimple == False:
+            task_queue.appendleft(task_information())
         
         task_queue.appendleft(check_buildOrResearch())
         task_queue.appendleft(task_cure(False, g_cureNum))
@@ -352,9 +352,9 @@ def add_auto_task(isMaxCollect, isJina, isSimple = False, isAddStrengh = False,
             handle_restart_game()
         else:
             if isAddStrengh:
-                myTimeSleep(random.randint(150, 150), send_status)
+                myTimeSleep(random.randint(350, 400), send_status)
             else:
-                myTimeSleep(random.randint(150, 150), send_status)
+                myTimeSleep(random.randint(350, 400), send_status)
             
         
     task_queue.clear()

BIN
dongri_img/special_activity/shili_860.png


BIN
dongri_img/special_activity/shili_860_3.png


+ 18 - 5
dongri_task.py

@@ -838,7 +838,20 @@ class task_information(dongri_task):
         if waitClickImg_noWait_withBool(information_img.information, 1, 1) == False:
             return False
         
-        if waitClickImg_noWait_withBool([information_img.hero0, information_img.hero1, information_img.hero2], 0.5, 0.5):
+        hero_arr = [information_img.hero0, information_img.hero1, information_img.hero2]
+        camp_arr = [information_img.camp1, information_img.camp2]
+        wolf_arr = [information_img.wolf0, information_img.wolf1, information_img.wolf2]
+        total_arr = []
+        total_arr.append(hero_arr)
+        total_arr.append(camp_arr)
+        total_arr.append(wolf_arr)
+        
+        if waitFindImg_withBool(total_arr, 2, 1) == False:
+            return False
+
+
+
+        if waitClickImg_noWait_withBool(hero_arr, 0.5, 0.5):
             if waitClickImg_noWait_withBool(information_img.gotosee, 1, 1) == False:
                 return False
             if waitClickImg_noWait_withBool(information_img.explore, 1, 1) == False:
@@ -848,13 +861,13 @@ class task_information(dongri_task):
             
             myTimeSleep_big()
             return True
-        elif waitClickImg_noWait_withBool([information_img.camp1, information_img.camp2], 0.5, 0.5):
+        elif waitClickImg_noWait_withBool(camp_arr, 0.5, 0.5):
             if waitClickImg_noWait_withBool(information_img.gotosee, 1, 1) == False:
                 return False
             if waitClickImg_noWait_withBool(information_img.survive, 1, 1) == False:
                 return False
             return True
-        elif waitClickImg_noWait_withBool([information_img.wolf0, information_img.wolf1, information_img.wolf2], 0.5, 0.5):
+        elif waitClickImg_noWait_withBool(wolf_arr, 0.5, 0.5):
             if waitClickImg_noWait_withBool(information_img.gotosee, 1, 1) == False:
                 return False
             if waitClickImg_noWait_withBool(information_img.fight, 1, 1) == False:
@@ -1146,7 +1159,7 @@ class task_fight_enemy(dongri_task):
 
 if __name__ == '__main__':
     #task_cure(True, 85).run()
-    task_fight_enemy().run()
+    #task_fight_enemy().run()
     #task_fight_ranshuang().run()
     #task_gotoTree().run()
     #task_fight_jina_only().run()
@@ -1160,7 +1173,7 @@ if __name__ == '__main__':
     #task_fightMonster(False, False,False).run()
     #task_checkHelp().run()
     #task_checkStoreRoom().run()
-    #task_activity_lianmeng().run()
+    task_activity_lianmeng().run()
     #task_fight_yongbing(True).run()
     #task_collect([4,3,2,1]).run()
     #task_train("upgrade").run()

+ 1 - 1
scriptBase/imgFind.py

@@ -147,7 +147,7 @@ class pcacc_img:
     def find_img(image_path):
 
         # 设置查找的置信度(confidence)阈值,范围从0到1,默认为0.999
-        confidence_threshold = 0.90
+        confidence_threshold = 0.95
 
         # 查找模糊图片在屏幕上的位置
         position = pyautogui.locateOnScreen(image_path, confidence=confidence_threshold)