|
@@ -932,10 +932,23 @@ class task_cure(dongri_task):
|
|
|
self.continueCure = continueCure
|
|
|
self.cureNum = cureNum
|
|
|
def run(self):
|
|
|
+ basic_operate.go_town()
|
|
|
basic_operate.go_outside()
|
|
|
if waitClickImg_noWait_withBool(check_img.soilder_cure, 2, 1) == False:
|
|
|
return False
|
|
|
|
|
|
+ while waitFindImg_withBool(special_activity_img.done_immediately, 1, 0.5) == False:
|
|
|
+ if waitClickImg_noWait_withBool(special_activity_img.quick_choose, 1, 0.5) == False:
|
|
|
+ return False
|
|
|
+
|
|
|
+ while waitFindImg_withBool(special_activity_img.done_immediately, 1, 0.5):
|
|
|
+ if waitClickImg_noWait_withBool(special_activity_img.choose_zero, 1, 0.5) == False:
|
|
|
+ return False
|
|
|
+ else:
|
|
|
+ myTimeSleep_big()
|
|
|
+ pcacc_mouse.input_string(str(self.cureNum))
|
|
|
+
|
|
|
+
|
|
|
if self.continueCure == False:
|
|
|
if waitClickImg_noWait_withBool(check_img.cure, 2, 1) == False:
|
|
|
return False
|
|
@@ -944,10 +957,11 @@ class task_cure(dongri_task):
|
|
|
return False
|
|
|
else:
|
|
|
maxTryTimes = 50
|
|
|
- while waitClickImg_noWait_withBool((check_img.cure, check_img.help4), 30, 1) and maxTryTimes >= 0:
|
|
|
+ while waitClickImg_noWait_withBool((check_img.cure, check_img.help4), 30, 0.2) and maxTryTimes >= 0:
|
|
|
maxTryTimes -= 1
|
|
|
continue
|
|
|
|
|
|
+ waitClickImg_noWait_withBool(check_img.help4, 1, 1)
|
|
|
|
|
|
return True
|
|
|
|
|
@@ -1097,15 +1111,18 @@ class task_fight_enemy(dongri_task):
|
|
|
if waitClickImg_noWait_withBool(special_activity_img.enemy, 2, 1) == False:
|
|
|
return False
|
|
|
|
|
|
+ attackArr = [monster_img.attack, monster_img.attack2, monster_img.ranshuang_attack]
|
|
|
+
|
|
|
myTimeSleep_big()
|
|
|
firstPos = get_yys_random_point(special_activity_img.first_enemy_region)
|
|
|
pcacc_mouse.click(firstPos[0], firstPos[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()
|
|
|
+ while waitFindImg_withBool(attackArr, 2, 1) == False:
|
|
|
+ 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([monster_img.attack, monster_img.attack2, monster_img.ranshuang_attack], 2, 1) == False:
|
|
|
+ if waitClickImg_noWait_withBool(attackArr, 2, 1) == False:
|
|
|
return False
|
|
|
if waitClickImg_noWait_withBool(monster_img.line1, 2, 1) == False:
|
|
|
return False
|
|
@@ -1126,7 +1143,8 @@ class task_fight_enemy(dongri_task):
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
- #task_fight_enemy().run()
|
|
|
+ #task_cure(True, 85).run()
|
|
|
+ task_fight_enemy().run()
|
|
|
#task_fight_ranshuang().run()
|
|
|
#task_gotoTree().run()
|
|
|
#task_fight_jina_only().run()
|
|
@@ -1143,7 +1161,7 @@ if __name__ == '__main__':
|
|
|
#task_activity_lianmeng().run()
|
|
|
#task_fight_yongbing(True).run()
|
|
|
#task_collect([4,3,2,1]).run()
|
|
|
- task_train("upgrade").run()
|
|
|
+ #task_train("upgrade").run()
|
|
|
#task_information().run()
|
|
|
#check_buildOrResearch().run()
|
|
|
#task_checkDonata().run()
|