Skip to content

Commit

Permalink
防止脱离卡死卡死
Browse files Browse the repository at this point in the history
  • Loading branch information
CHNZYX committed Oct 31, 2023
1 parent ee868db commit 32b8c36
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
Binary file modified imgs/setting2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/setting3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 11 additions & 8 deletions states.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def route(self):
break
self.get_screen()
ban(self)
#self.click_target('imgs/reset.jpg',0.9,True) # 如果需要输出某张图片在游戏窗口中的坐标,可以用这个
#self.click_target('imgs/setting2.jpg',0.9,True) # 如果需要输出某张图片在游戏窗口中的坐标,可以用这个
"""
if begin and not self.check("f", 0.4437,0.4231) and not self.check("abyss/1",0.8568,0.6769):
begin = 0
Expand Down Expand Up @@ -670,15 +670,18 @@ def normal(self):
self.confirm_time = time.time()
elif self.check("setting", 0.9734, 0.3009, threshold=0.98):
self.click((0.9734, 0.3009))
time.sleep(2)
time.sleep(1.75)
elif self.check("setting2", 0.9490,0.9389):
self.click((0.3505,0.9398))
time.sleep(2.5)
self.click_text(["战斗功能"])
for _ in range(5):
pyautogui.scroll(-1)
time.sleep(0.1)
time.sleep(0.3)
time.sleep(1.75)
elif self.check("setting3", 0.9490,0.9389):
if self.click_text(["战斗功能"]):
for _ in range(5):
pyautogui.scroll(-1)
time.sleep(0.1)
time.sleep(0.3)
self.click_text(["脱离卡死"])
time.sleep(1)
elif self.check("enhance", 0.9208, 0.9380):
self.quit = time.time()
time.sleep(1.5)
Expand Down

0 comments on commit 32b8c36

Please sign in to comment.