项目

一般

简介

押镖脚本 » 历史记录 » 版本 4

chenjun, 2022-05-27 17:42

1 1 chenjun
h4. _*%{color:green}押镖脚本%*_
2
3
4
标签:脚本|押镖脚本
5
6
-
7
-
8
9
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
10
11
-
12
-
13
14
15
16
bq. [@main]
17 2 chenjun
#if
18
large U98 0
19
#act
20
mov N$押镖次数 3
21
#elseact
22
mov N$押镖次数 2
23 3 chenjun
 
24 2 chenjun
#if
25
checka_gamegold > 9999
26
#act
27
mov S$高元宝颜色 {scolor=250}
28
#elseact
29
mov S$高元宝颜色 {scolor=249}
30 3 chenjun
 
31 2 chenjun
#if
32
checka_gamegold > 4999
33
#act
34
mov S$低元宝颜色 {scolor=250}
35
#elseact
36
mov S$低元宝颜色 {scolor=249}
37 3 chenjun
 
38 2 chenjun
#if
39
checkitem 山庄镖令 1
40
#act
41
mov S$山庄镖令颜色 {scolor=250}
42
#elseact
43
mov S$山庄镖令颜色 {scolor=249}
44 3 chenjun
 
45 2 chenjun
#if
46
isOnMap 神龙山庄
47
#act
48
mov S$接取低级镖车 <ImgButton:lc_anniuhui_4zi_da:495:815:接取低级镖车/@接取低级镖车>
49
#elseact
50
mov S$接取低级镖车 <ImgButton:lc_anniuhui_4zi_da:495:815:立即前往/@立即前往2>
51 3 chenjun
&nbsp;
52 2 chenjun
#if
53
isOnMap 神龙山庄
54
#act
55
mov S$接取高级镖车 <ImgButton:lc_anniuhui_4zi_da:1085:815:接取高级镖车/@接取高级镖车>
56
#elseact
57
mov S$接取高级镖车 <ImgButton:lc_anniuhui_4zi_da:1085:815:立即前往/@立即前往2>
58 3 chenjun
&nbsp;
59 2 chenjun
#if
60
#act
61
openMerchantBigDlg lc_chuangti 4 0 0 1 0 0
62
#say
63
<panelsize:1440:900>\
64
<btnList:<$str(S$btnList921)>:神龙列表:10:70:1,820:30:4>\
65
<Img:lc_leiji_tu:272:90:1>\
66
<Img:lc_quyufenge_01:255:95:1>\
67 3 chenjun
&nbsp;
68 2 chenjun
<Img:lc_zhuansheng_tanchu:430:110:1>\
69
<Img:lc_zhuansheng_tanchu:1000:110:1>\
70 3 chenjun
&nbsp;
71 2 chenjun
<playmodelex:731:450:210:3:0.7>\
72
<playmodelex:737:1020:210:3:0.7>\
73 3 chenjun
&nbsp;
74 2 chenjun
<text:低级镖车{scolor=249}:540:130> \
75
<text:高级镖车{scolor=249}:1110:130> \
76 3 chenjun
&nbsp;
77 2 chenjun
<Img:lc_settings_zihuawen_zuo:360:600:1>\
78
<Img:lc_settings_zihuawen_you:720:600:1>\
79 3 chenjun
&nbsp;
80 2 chenjun
<Img:lc_settings_zihuawen_zuo:940:600:1>\
81
<Img:lc_settings_zihuawen_you:1300:600:1>\
82 3 chenjun
&nbsp;
83 2 chenjun
<text:11:00-12:00和21:00-22:00为双倍时间,期间内押镖可获得双倍奖励。{scolor=251}:400:540> \
84 3 chenjun
&nbsp;
85 2 chenjun
<text:低级押镖奖励{scolor=251}:490:590:220:1:35> \
86
<text:高级押镖奖励{scolor=251}:1070:590:220:1:35> \
87 3 chenjun
&nbsp;
88 2 chenjun
<text:消耗::350:760> \
89
<text:消耗::930:760> \
90
<ItemShowEX:1533:0:500:745:0:0.6> \
91
<text:5000<$str(s$低元宝颜色)>:560:760> \
92
<text:1<$str(s$山庄镖令颜色)>:1100:760> \
93
<ItemShowEX:548:0:1040:750:0:0.5> \
94
<text:10000<$str(s$高元宝颜色)>:1250:760> \
95
<ItemShowEX:1533:0:1190:745:0:0.6> \
96
<ItemShow:1533:0:480:640:1>
97
<ItemShow:1539:0:600:640:1>
98
<ItemShow:1533:0:1070:640:1>
99
<ItemShow:1539:2:1190:640:1>
100
<text:10万{scolor=161}:515:700> \
101
<text:20万{scolor=161}:1105:700> \
102 3 chenjun
&nbsp;
103 2 chenjun
<text:今日押镖次数<$str(U3001)>/<$str(N$押镖次数)>{scolor=250}:770:820> \
104
<text:今日劫镖次数<$str(U3002)>/4{scolor=250}:770:860> \
105
<$str(S$接取低级镖车)><$str(S$接取高级镖车)>
106 3 chenjun
&nbsp;
107 2 chenjun
[@立即前往2]
108
#if
109 4 chenjun
checkLevelEX > 99
110 2 chenjun
#act
111
openNpcShowex 神龙山庄 山庄镖头 -1 5
112 3 chenjun
&nbsp;
113 2 chenjun
[@接取低级镖车]
114
#if
115
small U98 1
116
large U3001 1
117
#act
118
messageBox 今日已经运完2次镖了,请明日继续!
119
break
120 3 chenjun
&nbsp;
121 2 chenjun
#if
122
large U98 0
123
large U3001 2
124
#act
125
messageBox 今日已经运完3次镖了,请明日继续!
126
break
127 3 chenjun
&nbsp;
128 2 chenjun
#if
129
checka_gamegold < 5000
130
#act
131
messageBox 元宝不足,无法押送镖车
132
break
133 3 chenjun
&nbsp;
134 2 chenjun
#OR
135
equal <$HOUR> 11
136
equal <$HOUR> 21
137
#act
138
goto @接低镖
139
#elseact
140
messageBox 现在不是双倍奖励时间!是否继续押镖? @确定 @取消
141 3 chenjun
&nbsp;
142 2 chenjun
[@确定]
143
#if
144
#act
145
goto @接低镖1
146 3 chenjun
&nbsp;
147 2 chenjun
[@接低镖]
148
#if
149
checka_gamegold < 5000
150
#act
151
messageBox 元宝不足,无法押送镖车
152
break
153 3 chenjun
&nbsp;
154 2 chenjun
#if
155 4 chenjun
*{color:green}not [[checkEscort]]*
156 2 chenjun
#act
157
a_gamegold 5000
158
[[autoEscort]] 山庄普通镖车 1.5 5 1800 货运商人 5 提交低级镖车 315 91 1 GenBiao_lv GenBiao_hong 15 263,245,241,232,233,225,217,178,173,164 98,108,111,118,141,144,151,178,181,187
159
[[fellowSlave]] 山庄普通镖车 3
160
mov U2011 200
161
sendMsg 6 恭喜你接到了【山庄普通镖车】!
162
close
163
goto @取消跟随
164
goto @侧边栏
165
#elseact
166
sendmsg 6 接取失败,你已经有镖车了
167 3 chenjun
&nbsp;
168 2 chenjun
[@接低镖1]
169
#if
170
checka_gamegold < 5000
171
#act
172
messageBox 元宝不足,无法押送镖车
173
break
174 3 chenjun
&nbsp;
175 2 chenjun
#if
176
not checkEscort
177
#act
178
a_gamegold 5000
179
autoEscort 山庄普通镖车 1.5 5 1800 货运商人 5 提交低级镖车1 315 91 1 GenBiao_lv GenBiao_hong 15 263,245,241,232,233,225,217,178,173,164 98,108,111,118,141,144,151,178,181,187
180
fellowSlave 山庄普通镖车 3
181
mov U2011 200
182
sendMsg 6 恭喜你接到了【山庄普通镖车】!
183
close
184
goto @取消跟随
185
goto @侧边栏
186
#elseact
187
sendmsg 6 接取失败,你已经有镖车了
188 3 chenjun
&nbsp;
189 2 chenjun
[@接取高级镖车]
190
#if
191
small U98 1
192
large U3001 1
193
#act
194
messageBox 今日已经运完2次镖了,请明日继续!
195
break
196 3 chenjun
&nbsp;
197 2 chenjun
#if
198
large U98 0
199
large U3001 2
200
#act
201
messageBox 今日已经运完3次镖了,请明日继续!
202
break
203 3 chenjun
&nbsp;
204 2 chenjun
#if
205
checka_gamegold < 10000
206
#act
207
messageBox 元宝不足,无法押送高级镖车
208
break
209 3 chenjun
&nbsp;
210 2 chenjun
#if
211
not checkitem 山庄镖令 1
212
#act
213
messageBox 山庄镖令不足,无法押送高级镖车
214
break
215 3 chenjun
&nbsp;
216
#or
217 2 chenjun
equal <$HOUR> 11
218
equal <$HOUR> 21
219
#act
220
goto @接高镖
221
#elseact
222
messageBox 现在不是双倍奖励时间!是否继续押镖? @是的 @取消
223 3 chenjun
&nbsp;
224 2 chenjun
[@是的]
225
#if
226
#act
227
goto @接高镖1
228 3 chenjun
&nbsp;
229 2 chenjun
[@接高镖]
230
#if
231
not checkitem 山庄镖令 1
232
#act
233
messageBox 山庄镖令不足,无法押送高级镖车
234
break
235 3 chenjun
&nbsp;
236 2 chenjun
#if
237
checka_gamegold < 10000
238
#act
239
messageBox 元宝不足,无法押送高级镖车
240
break
241 3 chenjun
&nbsp;
242 2 chenjun
#if
243
not checkEscort
244
#act
245
take 山庄镖令 1
246
a_gamegold 10000
247
autoEscort 山庄高级镖车 1 5 1800 货运商人 5 提交高级镖车 315 91 1 GenBiao_lv GenBiao_hong 15 263,245,241,232,233,225,217,178,173,164 98,108,111,118,141,144,151,178,181,187
248
fellowSlave 山庄高级镖车 3
249
mov U2011 200
250
sendMsg 6 恭喜你接到了【山庄高级镖车】!
251
close
252
goto @取消跟随
253
goto @侧边栏
254
#elseact
255
sendmsg 6 接取失败,你已经有镖车了
256 3 chenjun
&nbsp;
257 2 chenjun
[@接高镖1]
258
#if
259
not checkitem 山庄镖令 1
260
#act
261
messageBox 山庄镖令不足,无法押送高级镖车
262
break
263 3 chenjun
&nbsp;
264 2 chenjun
#if
265
checka_gamegold < 10000
266
#act
267
messageBox 元宝不足,无法押送高级镖车
268
break
269 3 chenjun
&nbsp;
270 2 chenjun
#if
271
not checkEscort
272
#act
273
take 山庄镖令 1
274
a_gamegold 10000
275
autoEscort 山庄高级镖车 1 5 1800 货运商人 5 提交高级镖车1 315 91 1 GenBiao_lv GenBiao_hong 15 263,245,241,232,233,225,217,178,173,164 98,108,111,118,141,144,151,178,181,187
276
fellowSlave 山庄高级镖车 3
277
mov U2011 200
278
sendMsg 6 恭喜你接到了【山庄高级镖车】!
279
close
280
goto @取消跟随
281
goto @侧边栏
282
#elseact
283
sendmsg 6 接取失败,你已经有镖车了
284 3 chenjun
&nbsp;
285 2 chenjun
[@取消跟随]
286
#if
287
#act
288
addMainCenterBtn 取消跟随按钮 1 lc_quxiaogenbiao 0,-100 取消跟随 151 24 0,-170 lc_ditu_mc_di 0,0,0,0 进行取消
289 3 chenjun
&nbsp;
290 2 chenjun
[@进行取消]
291
#if
292
#act
293
[[stopFellowSlave]]
294
delMainCenterBtn 取消跟随按钮
295
goto @恢复跟随
296 3 chenjun
&nbsp;
297 2 chenjun
[@恢复跟随]
298
#if
299
#act
300
addMainCenterBtn 恢复跟随按钮 1 lc_huifugenbiao 0,-100 恢复跟随 151 24 0,-170 lc_ditu_mc_di 0,0,0,0 进行恢复
301 3 chenjun
&nbsp;
302 2 chenjun
[@进行恢复]
303
#if
304
#act
305
fellowSlave 山庄普通镖车 3
306
fellowSlave 山庄高级镖车 3
307
delMainCenterBtn 恢复跟随按钮
308
goto @取消跟随
309 3 chenjun
&nbsp;
310 2 chenjun
[@提交高级镖车]
311
#if
312
#act
313
inc U3001 1
314
give 天关灵符 4
315
b_gamegold + 400000
316
Sendmsg 6 恭喜您,护送高级镖车任务成功完成!
317
killCallMob 山庄高级镖车 1 1
318
delMainCenterBtn 取消跟随按钮
319
delMainCenterBtn 恢复跟随按钮
320 3 chenjun
&nbsp;
321 2 chenjun
[@提交高级镖车1]
322
#if
323
#act
324
inc U3001 1
325
give 天关灵符 2
326
b_gamegold + 200000
327
Sendmsg 6 恭喜您,护送高级镖车任务成功完成!
328
killCallMob 山庄高级镖车 1 1
329
delMainCenterBtn 取消跟随按钮
330
delMainCenterBtn 恢复跟随按钮
331 3 chenjun
&nbsp;
332 2 chenjun
[@提交低级镖车]
333
#if
334
#act
335
inc U3001 1
336
give 天关灵符 2
337
b_gamegold + 200000
338
Sendmsg 6 恭喜您,护送高级镖车任务成功完成!
339
killCallMob 山庄普通镖车 1 1
340
delMainCenterBtn 取消跟随按钮
341
delMainCenterBtn 恢复跟随按钮
342 3 chenjun
&nbsp;
343 2 chenjun
[@提交低级镖车1]
344
#if
345
#act
346
inc U3001 1
347
give 天关灵符 1
348
b_gamegold + 100000
349
Sendmsg 6 恭喜您,护送高级镖车任务成功完成!
350
killCallMob 山庄普通镖车 1 1
351
delMainCenterBtn 取消跟随按钮
352
delMainCenterBtn 恢复跟随按钮
353 3 chenjun
&nbsp;
354 2 chenjun
[@侧边栏]
355
#if
356
large U98 0
357
#act
358
mov N$押镖次数 3
359
#elseact
360
mov N$押镖次数 2
361 3 chenjun
&nbsp;
362 2 chenjun
#if
363
[[checkbiao]]
364
#act
365
mov S$镖车状态 镖车状态:移动中...
366
mov S$状态颜色 {fcolor=250}
367
#elseact
368
mov S$镖车状态 镖车状态:暂停中...
369
mov S$状态颜色 {fcolor=249}
370 3 chenjun
&nbsp;
371 2 chenjun
#if
372
#act
373
div N$镖车血量 <$str(U2011)> 2
374 3 chenjun
&nbsp;
375 2 chenjun
#if
376
#act
377
mov s$sideInfo1
378
inc s$sideInfo1 <text:<$str(S$镖车状态)><$str(S$状态颜色)>:10:10>
379
inc s$sideInfo1 <text:镖车血量{fcolor=161}:10:50>
380
inc s$sideInfo1 <progressBar:10:90:<$str(N$镖车血量)>:lc_jindutiao_di:lc_jindutiao_cheng>
381
inc s$sideInfo1 <text:<$str(U2011)>/200{fcolor=161}:120:90>
382
inc s$sideInfo1 <ImgButton:lc_anniuhhong_2zi_xiao:10:140:放弃押镖/@放弃押镖>
383
inc s$sideInfo1 <ImgButton:lc_anniuhui_2zi_xiao:180:140:自动押镖/@自动押镖>
384
inc s$sideInfo1 <text:今日押镖次数<$str(U3001)>/<$str(N$押镖次数)>{scolor=250}:40:220>
385
inc s$sideInfo1 <text:今日劫镖次数<$str(U3002)>/4{scolor=250}:40:260>
386 3 chenjun
&nbsp;
387 2 chenjun
#if
388
#act
389
mov s$sideInfo2
390
inc s$sideInfo2 <text:<$str(S$镖车状态)><$str(S$状态颜色)>:10:10>
391
inc s$sideInfo2 <text:镖车血量{fcolor=161}:10:50>
392
inc s$sideInfo2 <progressBar:10:90:<$str(N$镖车血量)>:lc_jiazaijindu_di:lc_jiazaijindu_jindu>
393
inc s$sideInfo2 <text:<$str(U2011)>/200{fcolor=161}:120:90>
394
inc s$sideInfo2 <ImgButton:lc_anniuhhong_2zi_xiao:10:140:放弃押镖/@放弃押镖>
395
inc s$sideInfo2 <ImgButton:lc_anniuhui_2zi_xiao:180:140:自动押镖/@自动押镖>
396
inc s$sideInfo2 <text:今日押镖次数<$str(U3001)>/<$str(N$押镖次数)>{scolor=250}:40:220>
397
inc s$sideInfo2 <text:今日劫镖次数<$str(U3002)>/4{scolor=250}:40:260>
398 3 chenjun
&nbsp;
399 2 chenjun
#if
400
#act
401
mov s$setPic1 main_task_richang_02,main_task_richang_01,zudui_02,zudui_01
402 3 chenjun
&nbsp;
403 2 chenjun
#if
404
#act
405
;手机端处理
406
addDlg 1 dlg:<$str(s$sideInfo1)>dlg:<$str(s$tmp2)> 1 <$str(s$setPic1)> 0
407
;pc端处理
408
addDlg 1 dlg:<$str(s$sideInfo2)>dlg:<$str(s$tmp2)> 2 <$str(s$setPic1)> 0
409
goto @循环
410 3 chenjun
&nbsp;
411
&nbsp;
412 2 chenjun
[@循环]
413
#if
414
not checkEscort
415
#act
416
break
417 3 chenjun
&nbsp;
418 2 chenjun
#if
419
checkbiao
420
#act
421
mov S$镖车状态 镖车状态:移动中...
422
mov S$状态颜色 {fcolor=250}
423
#elseact
424
mov S$镖车状态 镖车状态:暂停中...
425
mov S$状态颜色 {fcolor=249}
426 3 chenjun
&nbsp;
427 2 chenjun
#if
428
#act
429
div N$镖车血量 <$str(U2011)> 2
430 3 chenjun
&nbsp;
431 2 chenjun
#if
432
#act
433
mov s$sideInfo1
434
inc s$sideInfo1 <text:<$str(S$镖车状态)><$str(S$状态颜色)>:10:10>
435
inc s$sideInfo1 <text:镖车血量{fcolor=161}:10:50>
436
inc s$sideInfo1 <progressBar:10:90:<$str(N$镖车血量)>:lc_jindutiao_di:lc_jindutiao_cheng>
437
inc s$sideInfo1 <text:<$str(U2011)>/200{fcolor=161}:120:90>
438
inc s$sideInfo1 <ImgButton:lc_anniuhhong_2zi_xiao:10:140:放弃押镖/@放弃押镖>
439
inc s$sideInfo1 <ImgButton:lc_anniuhui_2zi_xiao:180:140:自动押镖/@自动押镖>
440
inc s$sideInfo1 <text:今日押镖次数<$str(U3001)>/<$str(N$押镖次数)>{scolor=250}:40:220>
441
inc s$sideInfo1 <text:今日劫镖次数<$str(U3002)>/4{scolor=250}:40:260>
442 3 chenjun
&nbsp;
443 2 chenjun
#if
444
#act
445
mov s$sideInfo2
446
inc s$sideInfo2 <text:<$str(S$镖车状态)><$str(S$状态颜色)>:10:10>
447
inc s$sideInfo2 <text:镖车血量{fcolor=161}:10:50>
448
inc s$sideInfo2 <progressBar:10:90:<$str(N$镖车血量)>:lc_jiazaijindu_di:lc_jiazaijindu_jindu>
449
inc s$sideInfo2 <text:<$str(U2011)>/200{fcolor=161}:120:90>
450
inc s$sideInfo2 <ImgButton:lc_anniuhhong_2zi_xiao:10:140:放弃押镖/@放弃押镖>
451
inc s$sideInfo2 <ImgButton:lc_anniuhui_2zi_xiao:180:140:自动押镖/@自动押镖>
452
inc s$sideInfo2 <text:今日押镖次数<$str(U3001)>/<$str(N$押镖次数)>{scolor=250}:40:220>
453
inc s$sideInfo2 <text:今日劫镖次数<$str(U3002)>/4{scolor=250}:40:260>
454 3 chenjun
&nbsp;
455 2 chenjun
#if
456
#act
457
mov s$setPic1 main_task_richang_02,main_task_richang_01,zudui_02,zudui_01
458 3 chenjun
&nbsp;
459 2 chenjun
#if
460
#act
461
;手机端处理
462
addDlg 1 dlg:<$str(s$sideInfo1)>dlg:<$str(s$tmp2)> 1 <$str(s$setPic1)> 1
463
;pc端处理
464
addDlg 1 dlg:<$str(s$sideInfo2)>dlg:<$str(s$tmp2)> 2 <$str(s$setPic1)> 1
465 3 chenjun
&nbsp;
466 2 chenjun
#if
467
large U2011 0
468
#act
469
delaygoto 1000 @循环
470 3 chenjun
&nbsp;
471 2 chenjun
[@放弃押镖]
472
#act
473
messageBox 确定放弃押镖吗? @确定放弃 @取消
474 3 chenjun
&nbsp;
475 2 chenjun
[@确定放弃]
476
#act
477
mov U2011 0
478
killCallMob 山庄普通镖车 1 1
479
killCallMob 山庄高级镖车 1 1
480
delMainCenterBtn 取消跟随按钮
481
delMainCenterBtn 恢复跟随按钮
482
goto @退出1
483 3 chenjun
&nbsp;
484 2 chenjun
[@自动押镖]
485
#if
486
#act
487
fellowSlave 山庄普通镖车 3
488
fellowSlave 山庄高级镖车 3
489
delMainCenterBtn 恢复跟随按钮
490
delMainCenterBtn 取消跟随按钮
491
goto @取消跟随
492
goto @侧边栏
493 3 chenjun
&nbsp;
494 2 chenjun
[@delDlg1]
495
#act
496
delDlg 1
497 3 chenjun
&nbsp;
498 2 chenjun
[@活动]
499
#act
500
messageBox 活动
501 3 chenjun
&nbsp;
502 2 chenjun
[@退出1]
503
#act
504
delDlg 1
505 3 chenjun
&nbsp;
506 2 chenjun
[@删除按钮]
507
#act
508
delMainCenterBtn 恢复跟随按钮
509
delMainCenterBtn 取消跟随按钮
510
delDlg 1