-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path自动追捕.flow.txt
338 lines (333 loc) · 10.4 KB
/
自动追捕.flow.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
//~silent
// raid.flow
// 基于 auto_zhuibu v2.1,四区白三三修改
($localVer) = 2021121401
($changeLog) = 更新至2021121401
// 追捕自定义参数
[if] (ZByes) == null || (ZByes) == 是
($ZByes) = 正常模式
[if] (ZBsx) == null
($ZBsx) = 转为正常模式
[if] (ZBWaitCD) == null
($ZBWaitCD) = 30
[if] (ZBcdskill) == null
($ZBcdskill) = null
[if] (ZBBefore) == null
($ZBBefore) = $eq 1
[if] (DieToReset) == null
($DieToReset) = 已关闭
[if] (ZBrenew) == null
($ZBrenew) = 是
[if] (:grade) == 武帝 || (:grade) == 武神 || (:grade) == 剑神 || (:grade) == 刀皇 || (:grade) == 兵主 || (:grade) == 战神
($ZBrenew) = 否
[if] (ZBxuruo) == null
($ZBxuruo) = 否
#select ($ZByes) = 追捕方式(百姓选跳过),正常模式|快速扫荡|跳过,(ZByes)
#select ($ZBsx) = 快速扫荡达到上限后处理方式,转为正常模式|自动放弃再扫荡,(ZBsx)
#input ($ZBBefore) = 追捕前执行命令(用英文;隔开),(ZBBefore)
#select ($ZBrenew) = 每次追捕是否先回武庙恢复,是|否,(ZBrenew)
#select ($ZBxuruo) = 是否到武道塔顶层清虚弱,是|否,(ZBxuruo)
#input ($ZBWaitCD) = 从此次追捕开始,等待技能冷却,(ZBWaitCD)
#input ($ZBcdskill) = 需要冷却的技能使用英文逗号隔开或以^开头过滤不需要的,填null全部不等冷却,(ZBcdskill)
#select ($DieToReset) = 死亡自动重置追捕环数,已开启|已关闭,(DieToReset)
#config
@stopSSAuto
// 开始统计收益
[if] (RecordG) != 否
<-recordGains
stopstate
// 追捕
@toolbar jh
($currentN) = null
[while] (currentN) == null
@await 500
@toolbar tasks
@task 追杀逃犯:目前完成($currentN)/20个,共连续完成($comboN)个|追杀逃犯:($empty)目前完成($currentN)/20个,共连续完成($comboN)个
($zbtemp) = (ZByes)
[if] (RCMode) == 节日免费模式 && (zbtemp) == 正常模式
//($zbtemp) = (ZByes)
($zbtemp) = 快速扫荡
[if] (currentN) < 20 && (zbtemp) == 快速扫荡
@print 开始快速追捕
stopstate
@tidyBag
@await 2000
[while] (:room) != 扬州城-衙门正厅
$to 扬州城-衙门正厅
@await 500
[while] true
[if] {b扫荡符#}? < 20 || {b扫荡符}? == null
[if] (RCMode) == 正常模式
shop 0 20
ask3 {程药发}
@tip 无法($speed)完成|目前完成20/20个|已经完成|你的($sdfnum)符不够
[if] (speed) != null || (sdfnum) != null
[if] (ZBsx) == 转为正常模式
($alert_zb) = 追捕到达上限,无法快速扫荡,转为正常模式!
($ZByes) = 正常模式
[else if] (ZBsx) == 自动放弃再扫荡
[if] (comboN) < 200
($alert_zb) = 追捕到达上限,无法快速扫荡,环数低于200环,不自动放弃,转为正常模式!
($ZByes) = 正常模式
[else if] (sdfnum) != null
($alert_zb) = 买不起扫荡符,无法快速扫荡,转为正常模式!
($ZByes) = 正常模式
($sdfnum) = null
[else]
($alert_zb) = 追捕到达上限,无法快速扫荡,自动放弃再扫荡!
ask1 {程药发}
ask2 {程药发}
($speed) = null
@await 1000
[continue]
($zbtemp) = (ZByes)
[else]
($currentN) = 20
[break]
[if] (alert_zb) != null
@print <ord>(alert_zb)</ord>
tm (alert_zb)
[if] (currentN) < 20 && (zbtemp) == 正常模式
@print 开始自动追捕
@cd
stopstate
(ZBBefore)
@await 5000
@tidyBag
@await 2000
@js $('#zb_prog').remove()
@js $(`.state-bar`).before($(`<div id=zb_prog>开始追捕</div>`).click(() => $('#zb_prog').remove()))
[while](currentN) < 20
($zb) = true
[if] (:status xuruo) == true && (ZBxuruo) == 是
jh fam 9 start;go enter
$killall
@until (:combating) == false
[if] (ZBrenew) == 是 || (:status xuruo) == true || (type1) != null
[while] (:room) != 扬州城-武庙
$to 扬州城-武庙
@await 500
@liaoshang
@until (:status xuruo) == false
[if](comboN)>=(ZBWaitCD)
@cd (ZBcdskill)
[while] (:room) != 扬州城-衙门正厅
$to 扬州城-衙门正厅
@await 500
@await 1000
($olddir1) = (dir1)
($olddir2) = (dir2)
//@print (olddir1)
($escapee) = null
[while] (escapee) == null
($zbing) = null
ask1 {程药发}
@tip 说道:($escapee)作恶多端($info)最近在($dir1)-($dir2)出现|你不是在($zbing)吗|没有在逃的逃犯|你的($party)正在进攻|不要急,($needwait)来|最近没有($zbEnd)的逃犯了,你先休息下吧
[if] (zbEnd) != null
[break]
[if] (needwait) != null
($needwait) = null
@await 30000
[continue]
[if] (party) != null
($party) = null
@print <ord>帮战未结束,获取逃犯信息失败,10秒后重试。</ord>
@await 10000
[continue]
[if] (zbing) != null
($zbing) = null
[if] (dir1) == null || (dir2) == null || (escapee) == null
@await 1000
@toolbar jh
@toolbar tasks
@await 500
@task 追杀逃犯:($escapee),据说最近在($dir1)-($dir2)出现过,你还有($time)去寻找他,目前完成($currentN)/20个,共连续完成($comboN)个。|追杀逃犯:目前完成($currentN)/20个,共连续完成($comboN)个
@print <hiy>追捕目标:(escapee) 目标地点:(dir1)-(dir2)</hiy>
[if](olddir1) != (dir1) && (olddir2) != (dir2)
($start_h) = (:hour)
($start_m) = (:minute)
@await 500
[while] {r(escapee)}? == null && (zbEnd) == null
[if] (tb) == null
($tb) = 0
<---
[if] (zb) == true
@cmdDelay 1000
[if] {r(escapee)}? != null
($type1) = null
($hunmi) = null
[if] (:room 武当派-后山小院) == true
@await 1000
kill {r(escapee)}?
@until {(escapee)的尸体}? != null || {r(escapee)}? == null || (:combating) == false || (:living) == false
@tip 你的追捕任务($done)了,目前完成($currentN)/20个,已连续完成($comboN)个。|你($type1)死了($type2)|你要攻击谁|追捕任务失败了|你又($hunmi)了知觉|不要急,($needwait)来
[if] (done) != null
($done) = null
@js $('#zb_prog').html(`<hiy>当前追捕任务已完成,进度 (currentN)/20</hiy>`)
//[if] (hunmi) != null
//($hunmi) = null
[while] (:living)==false
relive
@await 500
[if] (type1) != null && (DieToReset) == 已开启
[while] (:room) != 扬州城-衙门正厅
$to 扬州城-衙门正厅
@await 500
ask2 {程药发}
[break]
[if] (DieToReset) == 已关闭
[if] (:hour) == 0 && (start_h) != 0
($tb) = 24*60+(:minute)-(start_h)*60-(start_m)
[else]
($tb) = (:hour)*60+(:minute)-(start_h)*60-(start_m)
@js $('#zb_prog').html(`<hiy>已耗时(tb)分钟</hiy> <ord>追捕目标:(dir1)-(dir2) (escapee)</ord>`)
//@print <hiy>已耗时(tb)分钟。</hiy><ord>追捕目标:(escapee) 目标地点:(dir1)-(dir2)</ord>
[if] (tb) >= 10 || (tb) < 0
@print <hiy>追捕超时!</hiy>
($dir1) = null
($dir2) = null
($tb) = null
[break]
--->
@cmdDelay 1000
$to (dir1)-(dir2)
[if] (dir1) == 武当派
[if](dir2) == 林间小径
go south
jh fam 1 start
go north
go south;go west
go west
go east;go northup
go north
go east
go west;go west
go northup
go northup
go northup
go north
go north
go north
go north
go north
go north
[else if] (dir1) == 华山派
jh fam 3 start
go eastup
go southup
jumpdown
go southup
go south
go east
jh fam 3 start
go westup
go north
go east
go west;go north
go east
go west;go north
go south[3];go west
go east;go south
go southup
go southup
look bi;break bi;go enter
go westup
go westup
jumpup
[else if] (dir1) == 少林派
[if](dir2) == 竹林
go north
jh fam 2 start
go north
go west
go east;go east
go west;go north
go northup
go southdown;go northeast
go northwest
go southwest
go northeast;go north
go east
go west;go west
go east;go north
go east
go west;go west
go east;go north
go west
go east;go north
go north
[else if] (dir1) == 峨眉派
[if](dir2) == 走廊
go north
go south[2]
go north;go east[2]
jh fam 4 start
go northup
go east
go west;go southdown;go west
go south
go east
go east
go west;go south
go north;go west;go south
go north;go west
go south
go south
go north;go north;go west
go east;go north
go north
[else if] (dir1) == 逍遥派
[if](dir2) == 林间小道
go west;go north
go south;go west
go east;go south
[else if](dir2) == 木屋
go south[4]
[else if](dir2) == 地下石室
go up
jh fam 5 start
go north
go north
jh fam 5 start;go east
go north
go south;go south
go south
jh fam 5 start;go west
go south
jh fam 5 start;go south
go south
jh fam 5 start;go down
go down
[else if] (dir1) == 丐帮
[if](dir2) == 暗道
go east
go east[2]
go east
jh fam 6 start
go down
go east
go east
go east
go up
go down;go east
go east
go up
($zb) = false
//[if] (RCMode) == 节日免费模式 && (zbtemp) != null
//($ZByes) = (zbtemp)
@js $('#zb_prog').remove()
@cmdDelay
@await 2000
@tidyBag
@await 2000
// 结束收益统计
[if] (RecordG) == 正常统计
recordGains->
[else if] (RecordG) == 无弹窗统计
recordGains->nopopup
[else if] (RecordG) == 静默统计
recordGains->silent
@recoverSSAuto
@js $('#zb_prog').remove()
@renew
$zdwk