|
@@ -500,14 +500,25 @@ class task_checkStoreRoom(dongri_task):
|
|
|
if waitClickImg_noWait_withBool((train_img.train_success, check_img.needgo), 2, 1) == False:
|
|
|
return False
|
|
|
myTimeSleep_big()
|
|
|
- pcacc_mouse.quickclick_current()
|
|
|
- if waitClickImg_noWait_withBool((check_img.storeroom, check_img.storeroom2, check_img.invite_free), 2, 1) == False:
|
|
|
- return False
|
|
|
-
|
|
|
- pcacc_mouse.quickclick_current()
|
|
|
+ if waitFindImg_withBool(check_img.pet_findtreature, 2, 1) == False:
|
|
|
+ pcacc_mouse.quickclick_current()
|
|
|
+ if waitClickImg_noWait_withBool((check_img.storeroom, check_img.storeroom2, check_img.invite_free), 2, 1) == False:
|
|
|
+ return False
|
|
|
+
|
|
|
+ pcacc_mouse.quickclick_current()
|
|
|
+
|
|
|
+ waitClickImg_noWait_withBool(check_img.store_strength, 2, 1)
|
|
|
+ waitClickImg_noWait_withBool((check_img.get,check_img.bigGet), 2, 1)
|
|
|
+ else:
|
|
|
+ if waitClickImg_noWait_withBool(check_img.pet_success, 2, 1):
|
|
|
+ dstPos = get_yys_random_point(check_img.pet_getRegion)
|
|
|
+ pcacc_mouse.click(dstPos[0], dstPos[1])
|
|
|
+ elif waitClickImg_noWait_withBool((check_img.pet_advance, check_img.pet_senior, check_img.pet_junior), 2, 1):
|
|
|
+ waitClickImg_noWait_withBool(check_img.pet_gotreature, 2, 1)
|
|
|
+ waitClickImg_noWait_withBool(check_img.pet_begintreature, 2, 1)
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- waitClickImg_noWait_withBool(check_img.store_strength, 2, 1)
|
|
|
- waitClickImg_noWait_withBool((check_img.get,check_img.bigGet), 2, 1)
|
|
|
return True
|
|
|
|
|
|
class task_checkConfilits(dongri_task):
|
|
@@ -774,13 +785,13 @@ class task_activity_lianmeng(dongri_task):
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
- basic_operate.get_line_num()
|
|
|
+ #basic_operate.get_line_num()
|
|
|
#yys_ocrAuto(check_img.line_orc)
|
|
|
#basic_operate.go_town()
|
|
|
#basic_operate.add_strength()
|
|
|
#task_fightMonster(False, True).run()
|
|
|
#task_checkHelp().run()
|
|
|
- #task_checkStoreRoom().run()
|
|
|
+ task_checkStoreRoom().run()
|
|
|
#task_activity_lianmeng().run()
|
|
|
#task_fight_yongbing(True).run()
|
|
|
#task_collect([4,3,2,1]).run()
|