|
| 1 | +{ |
| 2 | + "FountainCheckinEntrance": { |
| 3 | + "desc": "喷泉打卡入口", |
| 4 | + "next": [ |
| 5 | + "FountainFindButton", |
| 6 | + "FountainCheckinExit" |
| 7 | + ] |
| 8 | + }, |
| 9 | + "FountainFindButton": { |
| 10 | + "desc": "识别喷泉打卡按钮", |
| 11 | + "recognition": { |
| 12 | + "type": "TemplateMatch", |
| 13 | + "param": { |
| 14 | + "roi": [ |
| 15 | + 765, |
| 16 | + 373, |
| 17 | + 210, |
| 18 | + 40 |
| 19 | + ], |
| 20 | + "template": [ |
| 21 | + "auto_fountain_checkin/find_fountain_button.png" |
| 22 | + ], |
| 23 | + "threshold": 0.7 |
| 24 | + } |
| 25 | + }, |
| 26 | + "action": "ClickKey", |
| 27 | + "key": 70, |
| 28 | + "post_delay": 500, |
| 29 | + "next": [ |
| 30 | + "FountainWaitAnimation" |
| 31 | + ] |
| 32 | + }, |
| 33 | + "FountainWaitAnimation": { |
| 34 | + "desc": "等待动画结束,轮询许愿选项", |
| 35 | + "next": [ |
| 36 | + "FountainMakeWish", |
| 37 | + "FountainSkipStory", |
| 38 | + "FountainSkipStoryDialog", |
| 39 | + "FountainCheckinIfExit" |
| 40 | + ], |
| 41 | + "timeout": 5000 |
| 42 | + }, |
| 43 | + "FountainMakeWish": { |
| 44 | + "desc": "识别许愿选项并按F", |
| 45 | + "recognition": { |
| 46 | + "type": "TemplateMatch", |
| 47 | + "param": { |
| 48 | + "roi": [ |
| 49 | + 871, |
| 50 | + 415, |
| 51 | + 239, |
| 52 | + 49 |
| 53 | + ], |
| 54 | + "template": [ |
| 55 | + "auto_fountain_checkin/fountain_make_wish.png" |
| 56 | + ], |
| 57 | + "threshold": 0.7 |
| 58 | + } |
| 59 | + }, |
| 60 | + "action": "Click", |
| 61 | + "post_delay": 2000, |
| 62 | + "next": [ |
| 63 | + "FountainCheckinAnyExit", |
| 64 | + "FountainSkipStoryDialog", |
| 65 | + "FountainSkipStoryDialogConfirm", |
| 66 | + "FountainCheckinIfExit" |
| 67 | + ] |
| 68 | + }, |
| 69 | + "FountainSkipStory": { |
| 70 | + "desc": "长时间未识别到许愿选项,尝试跳过剧情", |
| 71 | + "recognition": { |
| 72 | + "type": "TemplateMatch", |
| 73 | + "param": { |
| 74 | + "roi": [ |
| 75 | + 1218, |
| 76 | + 24, |
| 77 | + 39, |
| 78 | + 37 |
| 79 | + ], |
| 80 | + "template": [ |
| 81 | + "realtime_assist/skip_story_btn.png" |
| 82 | + ], |
| 83 | + "threshold": 0.7 |
| 84 | + } |
| 85 | + }, |
| 86 | + "action": { |
| 87 | + "type": "Click" |
| 88 | + }, |
| 89 | + "post_delay": 0, |
| 90 | + "next": [ |
| 91 | + "FountainCheckinAnyExit", |
| 92 | + "FountainSkipStoryDialog", |
| 93 | + "FountainWaitAnimation" |
| 94 | + ] |
| 95 | + }, |
| 96 | + "FountainSkipStoryDialog": { |
| 97 | + "desc": "跳过剧情对话框", |
| 98 | + "recognition": { |
| 99 | + "type": "TemplateMatch", |
| 100 | + "param": { |
| 101 | + "template": [ |
| 102 | + "realtime_assist/skip_story_dialog.png" |
| 103 | + ], |
| 104 | + "roi": [ |
| 105 | + 420, |
| 106 | + 275, |
| 107 | + 450, |
| 108 | + 50 |
| 109 | + ], |
| 110 | + "threshold": 0.7 |
| 111 | + } |
| 112 | + }, |
| 113 | + "action": "DoNothing", |
| 114 | + "post_delay": 0, |
| 115 | + "next": [ |
| 116 | + "FountainSkipStoryDialogConfirm", |
| 117 | + "FountainWaitAnimation" |
| 118 | + ] |
| 119 | + }, |
| 120 | + "FountainSkipStoryDialogConfirm": { |
| 121 | + "desc": "确认跳过剧情对话框确认按钮", |
| 122 | + "recognition": { |
| 123 | + "type": "TemplateMatch", |
| 124 | + "param": { |
| 125 | + "template": "realtime_assist/skip_story_dialog_confirm.png", |
| 126 | + "roi": [ |
| 127 | + 700, |
| 128 | + 410, |
| 129 | + 250, |
| 130 | + 70 |
| 131 | + ], |
| 132 | + "threshold": 0.7 |
| 133 | + } |
| 134 | + }, |
| 135 | + "action": { |
| 136 | + "type": "Click" |
| 137 | + }, |
| 138 | + "post_delay": 300, |
| 139 | + "next": [ |
| 140 | + "FountainCheckinIfExit", |
| 141 | + "FountainWaitAnimation" |
| 142 | + ] |
| 143 | + }, |
| 144 | + "FountainCheckinAnyExit": { |
| 145 | + "desc": "Esc退出", |
| 146 | + "pre_delay": 0, |
| 147 | + "action": { |
| 148 | + "type": "ClickKey", |
| 149 | + "param": { |
| 150 | + "key": 27 // ESC |
| 151 | + } |
| 152 | + }, |
| 153 | + "post_wait_freezes": { |
| 154 | + "target": [ |
| 155 | + 0, |
| 156 | + 0, |
| 157 | + 100, |
| 158 | + 100 |
| 159 | + ], |
| 160 | + "time": 600 |
| 161 | + }, |
| 162 | + "post_delay": 0, |
| 163 | + "next": [ |
| 164 | + "FountainCheckinIfExit" |
| 165 | + ] |
| 166 | + }, |
| 167 | + "FountainCheckinIfExit": { |
| 168 | + "desc": "识别喷泉打卡按钮,判断是否已退出", |
| 169 | + "recognition": { |
| 170 | + "type": "TemplateMatch", |
| 171 | + "param": { |
| 172 | + "roi": [ |
| 173 | + 765, |
| 174 | + 373, |
| 175 | + 210, |
| 176 | + 40 |
| 177 | + ], |
| 178 | + "template": [ |
| 179 | + "auto_fountain_checkin/find_fountain_button.png" |
| 180 | + ], |
| 181 | + "threshold": 0.7 |
| 182 | + } |
| 183 | + }, |
| 184 | + "next": [ |
| 185 | + "FountainCheckinExit" |
| 186 | + ] |
| 187 | + }, |
| 188 | + "FountainCheckinExit": { |
| 189 | + "desc": "喷泉打卡任务出口" |
| 190 | + } |
| 191 | +} |
0 commit comments