押镖脚本 » 历史记录 » 版本 2
chenjun, 2022-05-27 17:07
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 | |||
24 | #if |
||
25 | checka_gamegold > 9999 |
||
26 | #act |
||
27 | mov S$高元宝颜色 {scolor=250} |
||
28 | #elseact |
||
29 | mov S$高元宝颜色 {scolor=249} |
||
30 | |||
31 | #if |
||
32 | checka_gamegold > 4999 |
||
33 | #act |
||
34 | mov S$低元宝颜色 {scolor=250} |
||
35 | #elseact |
||
36 | mov S$低元宝颜色 {scolor=249} |
||
37 | |||
38 | #if |
||
39 | checkitem 山庄镖令 1 |
||
40 | #act |
||
41 | mov S$山庄镖令颜色 {scolor=250} |
||
42 | #elseact |
||
43 | mov S$山庄镖令颜色 {scolor=249} |
||
44 | |||
45 | #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 | |||
52 | #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 | |||
59 | #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 | |||
68 | <Img:lc_zhuansheng_tanchu:430:110:1>\ |
||
69 | <Img:lc_zhuansheng_tanchu:1000:110:1>\ |
||
70 | |||
71 | <playmodelex:731:450:210:3:0.7>\ |
||
72 | <playmodelex:737:1020:210:3:0.7>\ |
||
73 | |||
74 | <text:低级镖车{scolor=249}:540:130> \ |
||
75 | <text:高级镖车{scolor=249}:1110:130> \ |
||
76 | |||
77 | <Img:lc_settings_zihuawen_zuo:360:600:1>\ |
||
78 | <Img:lc_settings_zihuawen_you:720:600:1>\ |
||
79 | |||
80 | <Img:lc_settings_zihuawen_zuo:940:600:1>\ |
||
81 | <Img:lc_settings_zihuawen_you:1300:600:1>\ |
||
82 | |||
83 | <text:11:00-12:00和21:00-22:00为双倍时间,期间内押镖可获得双倍奖励。{scolor=251}:400:540> \ |
||
84 | |||
85 | <text:低级押镖奖励{scolor=251}:490:590:220:1:35> \ |
||
86 | <text:高级押镖奖励{scolor=251}:1070:590:220:1:35> \ |
||
87 | |||
88 | <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 | |||
103 | <text:今日押镖次数<$str(U3001)>/<$str(N$押镖次数)>{scolor=250}:770:820> \ |
||
104 | <text:今日劫镖次数<$str(U3002)>/4{scolor=250}:770:860> \ |
||
105 | <$str(S$接取低级镖车)><$str(S$接取高级镖车)> |
||
106 | |||
107 | [@立即前往2] |
||
108 | #if |
||
109 | CHECKLEVELEX > 99 |
||
110 | #act |
||
111 | openNpcShowex 神龙山庄 山庄镖头 -1 5 |
||
112 | |||
113 | [@接取低级镖车] |
||
114 | #if |
||
115 | small U98 1 |
||
116 | large U3001 1 |
||
117 | #act |
||
118 | messageBox 今日已经运完2次镖了,请明日继续! |
||
119 | break |
||
120 | |||
121 | #if |
||
122 | large U98 0 |
||
123 | large U3001 2 |
||
124 | #act |
||
125 | messageBox 今日已经运完3次镖了,请明日继续! |
||
126 | break |
||
127 | |||
128 | #if |
||
129 | checka_gamegold < 5000 |
||
130 | #act |
||
131 | messageBox 元宝不足,无法押送镖车 |
||
132 | break |
||
133 | |||
134 | #OR |
||
135 | equal <$HOUR> 11 |
||
136 | equal <$HOUR> 21 |
||
137 | #act |
||
138 | goto @接低镖 |
||
139 | #elseact |
||
140 | messageBox 现在不是双倍奖励时间!是否继续押镖? @确定 @取消 |
||
141 | |||
142 | [@确定] |
||
143 | #if |
||
144 | #act |
||
145 | goto @接低镖1 |
||
146 | |||
147 | [@接低镖] |
||
148 | #if |
||
149 | checka_gamegold < 5000 |
||
150 | #act |
||
151 | messageBox 元宝不足,无法押送镖车 |
||
152 | break |
||
153 | |||
154 | #if |
||
155 | not [[checkEscort]] |
||
156 | #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 | |||
168 | [@接低镖1] |
||
169 | #if |
||
170 | checka_gamegold < 5000 |
||
171 | #act |
||
172 | messageBox 元宝不足,无法押送镖车 |
||
173 | break |
||
174 | |||
175 | #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 | |||
189 | [@接取高级镖车] |
||
190 | #if |
||
191 | small U98 1 |
||
192 | large U3001 1 |
||
193 | #act |
||
194 | messageBox 今日已经运完2次镖了,请明日继续! |
||
195 | break |
||
196 | |||
197 | #if |
||
198 | large U98 0 |
||
199 | large U3001 2 |
||
200 | #act |
||
201 | messageBox 今日已经运完3次镖了,请明日继续! |
||
202 | break |
||
203 | |||
204 | #if |
||
205 | checka_gamegold < 10000 |
||
206 | #act |
||
207 | messageBox 元宝不足,无法押送高级镖车 |
||
208 | break |
||
209 | |||
210 | #if |
||
211 | not checkitem 山庄镖令 1 |
||
212 | #act |
||
213 | messageBox 山庄镖令不足,无法押送高级镖车 |
||
214 | break |
||
215 | |||
216 | #OR |
||
217 | equal <$HOUR> 11 |
||
218 | equal <$HOUR> 21 |
||
219 | #act |
||
220 | goto @接高镖 |
||
221 | #elseact |
||
222 | messageBox 现在不是双倍奖励时间!是否继续押镖? @是的 @取消 |
||
223 | |||
224 | [@是的] |
||
225 | #if |
||
226 | #act |
||
227 | goto @接高镖1 |
||
228 | |||
229 | [@接高镖] |
||
230 | #if |
||
231 | not checkitem 山庄镖令 1 |
||
232 | #act |
||
233 | messageBox 山庄镖令不足,无法押送高级镖车 |
||
234 | break |
||
235 | |||
236 | #if |
||
237 | checka_gamegold < 10000 |
||
238 | #act |
||
239 | messageBox 元宝不足,无法押送高级镖车 |
||
240 | break |
||
241 | |||
242 | #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 | |||
257 | [@接高镖1] |
||
258 | #if |
||
259 | not checkitem 山庄镖令 1 |
||
260 | #act |
||
261 | messageBox 山庄镖令不足,无法押送高级镖车 |
||
262 | break |
||
263 | |||
264 | #if |
||
265 | checka_gamegold < 10000 |
||
266 | #act |
||
267 | messageBox 元宝不足,无法押送高级镖车 |
||
268 | break |
||
269 | |||
270 | #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 | |||
285 | [@取消跟随] |
||
286 | #if |
||
287 | #act |
||
288 | addMainCenterBtn 取消跟随按钮 1 lc_quxiaogenbiao 0,-100 取消跟随 151 24 0,-170 lc_ditu_mc_di 0,0,0,0 进行取消 |
||
289 | |||
290 | [@进行取消] |
||
291 | #if |
||
292 | #act |
||
293 | [[stopFellowSlave]] |
||
294 | delMainCenterBtn 取消跟随按钮 |
||
295 | goto @恢复跟随 |
||
296 | |||
297 | [@恢复跟随] |
||
298 | #if |
||
299 | #act |
||
300 | addMainCenterBtn 恢复跟随按钮 1 lc_huifugenbiao 0,-100 恢复跟随 151 24 0,-170 lc_ditu_mc_di 0,0,0,0 进行恢复 |
||
301 | |||
302 | [@进行恢复] |
||
303 | #if |
||
304 | #act |
||
305 | fellowSlave 山庄普通镖车 3 |
||
306 | fellowSlave 山庄高级镖车 3 |
||
307 | delMainCenterBtn 恢复跟随按钮 |
||
308 | goto @取消跟随 |
||
309 | |||
310 | [@提交高级镖车] |
||
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 | |||
321 | [@提交高级镖车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 | |||
332 | [@提交低级镖车] |
||
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 | |||
343 | [@提交低级镖车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 | |||
354 | [@侧边栏] |
||
355 | #if |
||
356 | large U98 0 |
||
357 | #act |
||
358 | mov N$押镖次数 3 |
||
359 | #elseact |
||
360 | mov N$押镖次数 2 |
||
361 | |||
362 | #if |
||
363 | [[checkbiao]] |
||
364 | #act |
||
365 | mov S$镖车状态 镖车状态:移动中... |
||
366 | mov S$状态颜色 {fcolor=250} |
||
367 | #elseact |
||
368 | mov S$镖车状态 镖车状态:暂停中... |
||
369 | mov S$状态颜色 {fcolor=249} |
||
370 | |||
371 | #if |
||
372 | #act |
||
373 | div N$镖车血量 <$str(U2011)> 2 |
||
374 | |||
375 | #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 | |||
387 | #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 | |||
399 | #if |
||
400 | #act |
||
401 | mov s$setPic1 main_task_richang_02,main_task_richang_01,zudui_02,zudui_01 |
||
402 | |||
403 | #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 | |||
411 | |||
412 | [@循环] |
||
413 | #if |
||
414 | not checkEscort |
||
415 | #act |
||
416 | break |
||
417 | |||
418 | #if |
||
419 | checkbiao |
||
420 | #act |
||
421 | mov S$镖车状态 镖车状态:移动中... |
||
422 | mov S$状态颜色 {fcolor=250} |
||
423 | #elseact |
||
424 | mov S$镖车状态 镖车状态:暂停中... |
||
425 | mov S$状态颜色 {fcolor=249} |
||
426 | |||
427 | #if |
||
428 | #act |
||
429 | div N$镖车血量 <$str(U2011)> 2 |
||
430 | |||
431 | #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 | |||
443 | #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 | |||
455 | #if |
||
456 | #act |
||
457 | mov s$setPic1 main_task_richang_02,main_task_richang_01,zudui_02,zudui_01 |
||
458 | |||
459 | #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 | |||
466 | #if |
||
467 | large U2011 0 |
||
468 | #act |
||
469 | delaygoto 1000 @循环 |
||
470 | |||
471 | [@放弃押镖] |
||
472 | #act |
||
473 | messageBox 确定放弃押镖吗? @确定放弃 @取消 |
||
474 | |||
475 | [@确定放弃] |
||
476 | #act |
||
477 | mov U2011 0 |
||
478 | killCallMob 山庄普通镖车 1 1 |
||
479 | killCallMob 山庄高级镖车 1 1 |
||
480 | delMainCenterBtn 取消跟随按钮 |
||
481 | delMainCenterBtn 恢复跟随按钮 |
||
482 | goto @退出1 |
||
483 | |||
484 | [@自动押镖] |
||
485 | #if |
||
486 | #act |
||
487 | fellowSlave 山庄普通镖车 3 |
||
488 | fellowSlave 山庄高级镖车 3 |
||
489 | delMainCenterBtn 恢复跟随按钮 |
||
490 | delMainCenterBtn 取消跟随按钮 |
||
491 | goto @取消跟随 |
||
492 | goto @侧边栏 |
||
493 | |||
494 | [@delDlg1] |
||
495 | #act |
||
496 | delDlg 1 |
||
497 | |||
498 | [@活动] |
||
499 | #act |
||
500 | messageBox 活动 |
||
501 | |||
502 | [@退出1] |
||
503 | #act |
||
504 | delDlg 1 |
||
505 | |||
506 | [@删除按钮] |
||
507 | #act |
||
508 | delMainCenterBtn 恢复跟随按钮 |
||
509 | delMainCenterBtn 取消跟随按钮 |
||
510 | delDlg 1 |