|
@@ -238,8 +238,10 @@ class task_fight_yongbing(dongri_task):
|
|
|
maxTryTimes = 3
|
|
|
while maxTryTimes > 0:
|
|
|
maxTryTimes -= 1
|
|
|
- waitClickImg_withBool([monster_img.fight, monster_img.fight2], 2, 1)
|
|
|
- waitClickImg_noWait_withBool(monster_img.all_select, 2, 1)
|
|
|
+ waitClickImg_withBool([monster_img.fight, monster_img.fight2], 1, 1)
|
|
|
+ waitClickImg_noWait_withBool(monster_img.all_select, 1, 1)
|
|
|
+ if waitClickImg_noWait_withBool(monster_img.all_select, 1, 1) == False:
|
|
|
+ break
|
|
|
|
|
|
return True
|
|
|
|
|
@@ -290,8 +292,10 @@ class task_fight_jina(dongri_task):
|
|
|
maxTryTimes = 3
|
|
|
while maxTryTimes > 0:
|
|
|
maxTryTimes -= 1
|
|
|
- waitClickImg_withBool([monster_img.fight, monster_img.fight2], 2, 1)
|
|
|
- waitClickImg_noWait_withBool(monster_img.all_select, 2, 1)
|
|
|
+ waitClickImg_withBool([monster_img.fight, monster_img.fight2], 1, 1)
|
|
|
+ waitClickImg_noWait_withBool(monster_img.all_select, 1, 1)
|
|
|
+ if waitClickImg_noWait_withBool(monster_img.all_select, 1, 1) == False:
|
|
|
+ break
|
|
|
|
|
|
return True
|
|
|
|
|
@@ -348,8 +352,10 @@ class task_fightMonster(dongri_task):
|
|
|
maxTryTimes = 3
|
|
|
while maxTryTimes > 0:
|
|
|
maxTryTimes -= 1
|
|
|
- waitClickImg_withBool([monster_img.fight, monster_img.fight2], 2, 1)
|
|
|
- waitClickImg_noWait_withBool(monster_img.all_select, 2, 1)
|
|
|
+ waitClickImg_withBool([monster_img.fight, monster_img.fight2], 1, 1)
|
|
|
+ waitClickImg_noWait_withBool(monster_img.all_select, 1, 1)
|
|
|
+ if waitClickImg_noWait_withBool(monster_img.all_select, 1, 1) == False:
|
|
|
+ break
|
|
|
|
|
|
return True
|
|
|
|
|
@@ -414,8 +420,10 @@ class task_collect(dongri_task):
|
|
|
maxTryTimes = 3
|
|
|
while maxTryTimes > 0:
|
|
|
maxTryTimes -= 1
|
|
|
- waitClickImg_withBool([monster_img.fight, monster_img.fight2], 2, 1)
|
|
|
- waitClickImg_noWait_withBool(monster_img.all_select, 2, 1)
|
|
|
+ waitClickImg_withBool([monster_img.fight, monster_img.fight2], 1, 1)
|
|
|
+ waitClickImg_noWait_withBool(monster_img.all_select, 1, 1)
|
|
|
+ if waitClickImg_noWait_withBool(monster_img.all_select, 1, 1) == False:
|
|
|
+ break
|
|
|
return True
|
|
|
|
|
|
class task_train(dongri_task):
|
|
@@ -472,7 +480,7 @@ class task_checkStoreRoom(dongri_task):
|
|
|
return False
|
|
|
myTimeSleep_big()
|
|
|
pcacc_mouse.quickclick_current()
|
|
|
- if waitClickImg_noWait_withBool((check_img.storeroom, check_img.invite_free), 2, 1) == False:
|
|
|
+ if waitClickImg_noWait_withBool((check_img.storeroom, check_img.storeroom2, check_img.invite_free), 2, 1) == False:
|
|
|
return False
|
|
|
|
|
|
pcacc_mouse.quickclick_current()
|
|
@@ -730,14 +738,15 @@ class task_activity_lianmeng(dongri_task):
|
|
|
if waitClickImg_noWait_withBool((special_activity_img.shili, special_activity_img.shili2), 2, 1) == True:
|
|
|
if waitClickImg_noWait_withBool(special_activity_img.accept_task, 2, 1) == False:
|
|
|
return False
|
|
|
-
|
|
|
- maxTryTimes = 2
|
|
|
- while waitClickImg_noWait_withBool(special_activity_img.owning, 2, 1) == True:
|
|
|
- waitClickImg_noWait_withBool(special_activity_img.refresh_task, 2, 1)
|
|
|
- waitClickImg_noWait_withBool(special_activity_img.refresh, 2, 1)
|
|
|
- maxTryTimes -= 1
|
|
|
- if maxTryTimes <= 0:
|
|
|
- break
|
|
|
+
|
|
|
+ if waitFindImg_withBool(special_activity_img.shili, 2, 1) == False:
|
|
|
+ maxTryTimes = 2
|
|
|
+ while waitClickImg_noWait_withBool(special_activity_img.owning, 2, 1) == True:
|
|
|
+ waitClickImg_noWait_withBool(special_activity_img.refresh_task, 2, 1)
|
|
|
+ waitClickImg_noWait_withBool(special_activity_img.refresh, 2, 1)
|
|
|
+ maxTryTimes -= 1
|
|
|
+ if maxTryTimes <= 0:
|
|
|
+ break
|
|
|
return True
|
|
|
|
|
|
|