-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
176 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** 识别所处界面 1:角色操作界面,2:关卡选择界面 */ | ||
recogLocation() { | ||
/** 通过三个特殊定位点判断所处界面 */ | ||
patterns1 := [ | ||
[1170, 880, 1800, 920, 0xffffff], ; M | ||
[1770, 1020, 1790, 1050, 0xffffff], ; Q | ||
[1800, 100, 1850, 130, 0xffffff] ; Tab | ||
] | ||
patterns2 := [ | ||
[240, 700, 260, 750, 0x78cc00], ; 资质考核 | ||
[580, 780, 600, 850, 0x78cc00], ; 旧都列车 | ||
[680, 410, 700, 450, 0x78cc00] ; 施工废墟 | ||
] | ||
judge(patterns) { | ||
for (pattern in patterns) { | ||
if (!PixelSearchPre(&FoundX, &FoundY, pattern*)) { | ||
return false | ||
} | ||
} | ||
return true | ||
} | ||
mode := 0 | ||
loop (10) { | ||
if (judge(patterns1)) { | ||
mode := 1 | ||
break | ||
} | ||
if (judge(patterns2)) { | ||
mode := 2 | ||
break | ||
} | ||
Sleep(100) | ||
} | ||
return mode | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,5 @@ refuse() { | |
; 对话 | ||
Press("Space", 10) | ||
; 加载动画 | ||
Sleep(5000) | ||
RandomSleep(5000, 5200) | ||
} |
Oops, something went wrong.