项目

一般

简介

行会红包 » 历史记录 » 版本 28

yangdefeng, 2023-05-16 17:34

1 1 chenjun
h4. %{color:green}行会红包%
2
3 27 chenjun
4
标签:模块示例|行会红包
5
6
7
*模块说明*
8 1 chenjun
玩家可以在行会中发红包给行会成员,也可以收取其他成员发放的红包
9 27 chenjun
10
行会红包的发放和领取与微信红包的规则类似,主要有以下几点:
11
* 发出的红包有总金额和领取个数,单个领取金额随机,个数领完该红包消失,无法继续领取
12
* 每个行会红包每人只能领取一次
13
* 红包发出超过24小时,未被领取的金额将退还给发红包的人
14 1 chenjun
15
-
16
-
17
18
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
19
20
-
21
-
22
23 26 chenjun
bq. %{color:lightGrey};..\Mir200\Envir\QuestDiary\行会红包\行会红包.txt%
24
[<notextile>@</notextile>main]
25 2 chenjun
%{color:lightGrey};行会红包UI显示处理%
26 15 chenjun
#if
27 2 chenjun
#act
28
openMerchantBigDlg lc_chuangti 4 0 0 1 0 0
29 3 chenjun
goto <notextile>@</notextile>生成红包列表
30
goto <notextile>@</notextile>红包数据
31 2 chenjun
#say
32
<panelsize:1440:900>\
33
<Img:lc_quyufenge_01:255:95:1>\
34
<Img:lc_quyufenge_02:270:760:1>\
35
<text:灵符:<$gameGird>{scolor=250}:1100:840> \
36 3 chenjun
<ImgButton:lc_anniuhui_4zi_da:1300:820:去发红包/<notextile>@</notextile>去发红包>\
37 2 chenjun
%{color:lightGrey};创建领取红包列表界面%
38 28 yangdefeng
<notextile><</notextile>*{color:green}[[dlg_itemGrid_|itemGrid]]*:<$str(s$itemList)>:gridname,0,0,1:260:80:310,410:1,4,652,1:0>\
39 1 chenjun
&nbsp;
40
&nbsp;
41 15 chenjun
[<notextile>@</notextile>去发红包]
42
#if
43
#act
44
mov n$发红包金额显示值 1000
45 1 chenjun
mov n$发红包数量显示值 10
46 28 yangdefeng
*{color:green}[[mov]]* n$新红包数量 10
47 15 chenjun
goto <notextile>@</notextile>设置红包
48
&nbsp;
49
&nbsp;
50
[<notextile>@</notextile>设置红包]
51
#if
52
#act
53
openMerchantBigDlg lc_chuangti 4 0 0 1 0 0
54
#say
55
%{color:lightGrey};红包展示%
56
<Img:lc_hongbao_03:123:225:1:1.5>
57
<text:<$userName>的红包{scolor=151}:200:240> \
58
<text:恭喜发财,大吉大利{scolor=151}:128:374> \
59
<text:发放金额:{scolor=161}:500:230> \
60
<img:huatiao01:832:222:1:1>
61
%{color:lightGrey};红包金额输入框%
62 22 chenjun
<notextile><</notextile>*{color:green}[[dlg_Input_|Input]]*:1:1:<$str(n$发红包金额显示值)>:161:400:40:161:30:6:921:237/<notextile>@</notextile>endInput1> \
63 16 chenjun
&nbsp;
64 15 chenjun
<text:今日可发<$str(u$今日剩余可发灵符)>灵符{scolor=160}:803:317> \
65
<ImgButton:lc_shangcheng_jh_anniu:772:224:/<notextile>@</notextile>发放金额减>\
66
<ImgButton:lc_shangcheng_jiahao_anniu:1074:224:/<notextile>@</notextile>发放金额加>\
67
<text:红包数量:{scolor=161}:500:480> \
68
<img:huatiao01:832:474:1:1>
69
%{color:lightGrey};红包数量输入框%
70 22 chenjun
<notextile><</notextile>*{color:green}[[dlg_Input_|Input]]*:2:1:<$str(n$发红包数量显示值)>:161:400:40:161:30:4:931:487/<notextile>@</notextile>endInput2> \
71 15 chenjun
<ImgButton:lc_shangcheng_jh_anniu:772:476:/<notextile>@</notextile>红包数量减>\
72
<ImgButton:lc_shangcheng_jiahao_anniu:1074:476:/<notextile>@</notextile>红包数量加>\
73
<text:祝福语:{scolor=161}:500:700> \
74
<text:恭喜发财,大吉大利{scolor=161}:692:700> \
75
<text:注:未领取的红包将于24小时后退还{scolor=250}:100:850> \
76
<ImgButton:lc_anniuhui_4zi_da:1200:820:发送/<notextile>@</notextile>submitinput>\
77
&nbsp;
78
&nbsp;
79
[<notextile>@</notextile>endInput1]
80
%{color:lightGrey};触发编辑结束,如未输入红包金额,会返回一个空字符%
81
#act
82
mov n$新红包金额 <$str(s1)>
83
&nbsp;
84
#if
85
not equal s1
86
small n$新红包金额 n$发红包金额显示值
87
#act
88
sendtipsmsg 红包金额最少需要1000灵符
89
mov s1 1000
90
mov n$发红包金额显示值 <$str(s1)>
91
goto <notextile>@</notextile>设置红包
92
#elseact
93
mov n$发红包金额显示值 <$str(s1)>
94
&nbsp;
95
&nbsp;
96
[<notextile>@</notextile>endInput2]
97
%{color:lightGrey};触发编辑结束,如未输入红包数量,会返回一个空字符%
98
#act
99
mov n$新红包数量 <$str(s2)>
100
&nbsp;
101
#if
102
not equal s2
103
small n$新红包数量 n$发红包数量显示值
104
#act
105
sendtipsmsg 红包数量最少10个
106
mov s2 10
107
mov n$发红包数量显示值 <$str(s2)>
108
goto <notextile>@</notextile>设置红包
109
#elseact
110
mov n$发红包数量显示值 <$str(s2)>
111
&nbsp;
112
&nbsp;
113
%{color:lightGrey};点击调整红包金额的减号按钮触发%
114
[<notextile>@</notextile>发放金额减]
115
#if
116
small n$发红包金额显示值 1001
117
#act
118
mov n$发红包金额显示值 1000
119
sendtipsmsg 红包金额最少需要1000灵符
120
#elseact
121
mov n$显示值数字化金额 <$str(n$发红包金额显示值)>
122
dec n$显示值数字化金额 100
123
mov n$发红包金额显示值 <$str(n$显示值数字化金额)>
124
goto <notextile>@</notextile>设置红包
125
&nbsp;
126
&nbsp;
127
%{color:lightGrey};点击调整红包金额的加号按钮触发%
128
[<notextile>@</notextile>发放金额加]
129
#if
130
equal s1
131
#act
132
mov s1 10
133
mov n$显示值数字化金额 1000
134
inc n$显示值数字化金额 100
135
mov n$发红包金额显示值 <$str(n$显示值数字化金额)>
136
goto <notextile>@</notextile>设置红包
137
break
138
&nbsp;
139
#if
140
#act
141
mov n$显示值数字化金额 <$str(n$发红包金额显示值)>
142
inc n$显示值数字化金额 100
143
mov n$发红包金额显示值 <$str(n$显示值数字化金额)>
144
goto <notextile>@</notextile>设置红包
145
&nbsp;
146
&nbsp;
147
%{color:lightGrey};点击调整红包数量的减号按钮触发%
148
[<notextile>@</notextile>红包数量减]
149
#if
150
small n$发红包数量显示值 11
151
#act
152
mov n$发红包数量显示值 10
153
sendtipsmsg 红包数量最少10个
154
#elseact
155
mov n$显示值数字化数量 <$str(n$发红包数量显示值)>
156
dec n$显示值数字化数量 1
157
mov n$发红包数量显示值 <$str(n$显示值数字化数量)>
158
goto <notextile>@</notextile>设置红包
159
&nbsp;
160
&nbsp;
161
%{color:lightGrey};点击调整红包数量的加号按钮触发%
162
[<notextile>@</notextile>红包数量加]
163
#if
164
equal s2
165
#act
166
mov s2 10
167
mov n$显示值数字化数量 10
168
inc n$显示值数字化数量 1
169
mov n$发红包数量显示值 <$str(n$显示值数字化数量)>
170
goto <notextile>@</notextile>设置红包
171
break
172
&nbsp;
173
#if
174
#act
175
mov n$显示值数字化数量 <$str(n$发红包数量显示值)>
176
inc n$显示值数字化数量 1
177
mov n$发红包数量显示值 <$str(n$显示值数字化数量)>
178
goto <notextile>@</notextile>设置红包
179
&nbsp;
180
&nbsp;
181
[<notextile>@</notextile>submitinput]
182
%{color:lightGrey};触发提交时,如果未输入过任何内容,则返回值为空格%
183
#if
184
equal " " <$str(s1)>
185
#act
186
mov s1 <$str(n$发红包金额显示值)>
187
&nbsp;
188
#if
189
equal " " <$str(s2)>
190
#act
191
mov s2 <$str(n$发红包数量显示值)>
192
&nbsp;
193
%{color:lightGrey};今日剩余可发灵符不足时,弹出提示%
194
#act
195
mov n$新红包金额 <$str(s1)>
196
&nbsp;
197
#if
198
large n$新红包金额 u$今日剩余可发灵符
199
#act
200
messageBox 今日剩余可发灵符不足
201
break
202
&nbsp;
203
#if
204
small n$新红包金额 1000
205
#act
206
messageBox 红包金额最少需要1000灵符
207
break
208
&nbsp;
209
#if
210
small n$新红包数量 10
211
#act
212
messageBox 红包数量最少10个
213
break
214
&nbsp;
215
#if
216
#act
217
mov n$新红包金额 <$str(s1)>
218
%{color:lightGrey};更新今日剩余可发灵符%
219
dec u$今日剩余可发灵符 n$新红包金额
220 1 chenjun
%{color:lightGrey};扣除灵符%
221 28 yangdefeng
#if
222
*{color:green}[[small]]* <$gamegird> <$str(s1)>
223
#act
224
*{color:green}[[sendMsg]]* 6 你的灵符不足,,,
225
#elseAct
226 15 chenjun
gameGird - <$str(s1)>
227
%{color:lightGrey};添加新红包数据,时间戳,发放者角色名,红包总金额,红包数量%
228
mov s$新红包数据 <$timeStamp>|<$userName>|<$str(s1)>|<$str(s2)>|:
229
inc s$新红包数据 <$guild2(行会红包)>
230
*{color:green}[[calcVar]]* guild2 行会红包 = <$str(s$新红包数据)>
231
%{color:lightGrey};更新自己发出的红包列表,过期退还红包余额时用%
232 1 chenjun
mov s1 <$str(t$自己发出的红包列表)>
233 15 chenjun
inc s1 <$timeStamp>|
234 28 yangdefeng
mov t$自己发出的红包列表 <$str(s1)>
235 15 chenjun
sendMsg 6 发送红包成功
236
%{color:lightGrey};重新加载红包列表界面%
237
goto <notextile>@</notextile>main
238
&nbsp;
239
&nbsp;
240
[<notextile>@</notextile>生成红包列表]
241
%{color:lightGrey};获取全部的行会红包,包括不能领取的%
242 1 chenjun
#act
243 15 chenjun
mov s$红包列表含已领取 <$guild2(行会红包)>
244 28 yangdefeng
%{color:lightGrey};sendmsg 6 <$str(s$红包列表含已领取)>,<$guild2(行会红包)>%
245 15 chenjun
*{color:green}[[pgExtractString]]* : s$红包列表含已领取 s$红包列表含已领取分割后 n$行会红包总数
246
mov n$红包计数器 1
247
&nbsp;
248
%{color:lightGrey};循环取出列表中各红包的时间戳%
249
#if loop n$行会红包总数
250
#act
251
%{color:lightGrey};取出单个红包数据%
252
mov n$var <$str(n$红包计数器)>
253
*{color:green}[[getListValue]]* s$红包列表含已领取分割后 <$str(n$var)> s$红包
254
%{color:lightGrey};取出红包的时间戳%
255
*{color:green}[[pgExtractString]]* | <$str(s$红包)> s$红包分割后 n$红包分割后
256
mov n$var 1
257
*{color:green}[[getListValue]]* s$红包分割后 <$str(n$var)> s$红包的时间戳
258
goto <notextile>@</notextile>过滤红包
259 1 chenjun
inc n$红包计数器 1
260
&nbsp;
261 15 chenjun
&nbsp;
262
[<notextile>@</notextile>过滤红包]
263 28 yangdefeng
%{color:lightGrey};列表不展示自己已经领取过的行会红包,列表不展示发出超过24小时的行会红包
264
;检测时间戳是否在自己领过的红包列表中,检测时间戳与当前时间的差值是否大于24小时%
265 15 chenjun
#act
266
mov n$var1 <$timeStamp>
267
mov n$var2 <$str(s$红包的时间戳)>
268
dec n$var1 n$var2
269
div n$发出多少小时 n$var1 3600
270
&nbsp;
271
#or
272
*{color:green}[[checkContainsText]]* t$自己领过的红包列表 s$红包的时间戳
273
not small n$发出多少小时 24
274
#act
275
mov s$tmp
276
*{color:green}[[ansiReplaceText]]* s$红包列表含已领取 <$str(s$红包)>: s$tmp
277
mov s$红包列表 <$str(s$红包列表含已领取)>
278
#elseact
279
mov s$红包列表 <$str(s$红包列表含已领取)>
280
&nbsp;
281 1 chenjun
&nbsp;
282 15 chenjun
[<notextile>@</notextile>红包数据]
283
#act
284
*{color:green}[[pgExtractString]]* : s$红包列表 s$红包列表分割后 n$行会红包总数
285 28 yangdefeng
%{color:lightGrey};sendMsg 6  <$str(s$红包列表)>, <$str(s$红包列表分割后)>, <$str(s$行会红包总数)>%
286 1 chenjun
&nbsp;
287 15 chenjun
%{color:lightGrey};没有可领取的红包%
288
#if
289
equal n$行会红包总数 0
290
#act
291 28 yangdefeng
mov s$itemList
292 15 chenjun
&nbsp;
293
%{color:lightGrey};红包界面第1个红包%
294
#if
295
large n$行会红包总数 0
296
#act
297
mov n$var 1
298
*{color:green}[[getListValue]]* s$红包列表分割后 <$str(n$var)> s$红包1
299
*{color:green}[[pgExtractString]]* | <$str(s$红包1)> s$红包分割后 n$红包分割数
300
mov n$var 2
301
*{color:green}[[getListValue]]* s$红包分割后 <$str(n$var)> s$红包角色名
302
mov s$item1 (<itemindex:1>
303
inc s$item1 <Img:lc_hongbao_01:25:10:1/<notextile>@</notextile>领取红包(1)>
304
inc s$item1 <Img:lc_qiang:100:250:1>
305
inc s$item1 <text:<$str(s$红包角色名)>的红包{scolor=151}:60:55>
306
inc s$item1 <text:恭喜发财,大吉大利{scolor=151}:35:175>)
307
mov s$itemList <$str(s$item1)>
308
&nbsp;
309
%{color:lightGrey};红包界面第2个红包%
310
#if
311
large n$行会红包总数 1
312
#act
313
mov n$var 2
314
*{color:green}[[getListValue]]* s$红包列表分割后 <$str(n$var)> s$红包2
315
*{color:green}[[pgExtractString]]* | <$str(s$红包2)> s$红包分割后 n$红包分割数
316
mov n$var 2
317
*{color:green}[[getListValue]]* s$红包分割后 <$str(n$var)> s$红包角色名
318
mov s$item2 (<itemindex:2>
319
inc s$item2 <Img:lc_hongbao_01:25:10:1/<notextile>@</notextile>领取红包(2)>
320
inc s$item2 <Img:lc_qiang:100:250:1>
321
inc s$item2 <text:<$str(s$红包角色名)>的红包{scolor=151}:60:55>
322
inc s$item2 <text:恭喜发财,大吉大利{scolor=151}:35:175>)
323
inc s$itemList <$str(s$item2)>
324
&nbsp;
325
%{color:lightGrey};红包界面第3个红包%
326
#if
327
large n$行会红包总数 2
328
#act
329
mov n$var 3
330
*{color:green}[[getListValue]]* s$红包列表分割后 <$str(n$var)> s$红包3
331
*{color:green}[[pgExtractString]]* | <$str(s$红包3)> s$红包分割后 n$红包分割数
332
mov n$var 2
333
*{color:green}[[getListValue]]* s$红包分割后 <$str(n$var)> s$红包角色名
334
mov s$item3 (<itemindex:3>
335
inc s$item3 <Img:lc_hongbao_01:25:10:1/<notextile>@</notextile>领取红包(3)>
336
inc s$item3 <Img:lc_qiang:100:250:1>
337
inc s$item3 <text:<$str(s$红包角色名)>的红包{scolor=151}:60:55>
338
inc s$item3 <text:恭喜发财,大吉大利{scolor=151}:35:175>)
339
inc s$itemList <$str(s$item3)>
340
&nbsp;
341
%{color:lightGrey};红包界面第4个红包%
342
#if
343
large n$行会红包总数 3
344
#act
345
mov n$var 4
346
*{color:green}[[getListValue]]* s$红包列表分割后 <$str(n$var)> s$红包4
347
*{color:green}[[pgExtractString]]* | <$str(s$红包4)> s$红包分割后 n$红包分割数
348
mov n$var 2
349
*{color:green}[[getListValue]]* s$红包分割后 <$str(n$var)> s$红包角色名
350
mov s$item4 (<itemindex:4>
351
inc s$item4 <Img:lc_hongbao_01:25:10:1/<notextile>@</notextile>领取红包(4)>
352
inc s$item4 <Img:lc_qiang:100:250:1>
353
inc s$item4 <text:<$str(s$红包角色名)>的红包{scolor=151}:60:55>
354
inc s$item4 <text:恭喜发财,大吉大利{scolor=151}:35:175>)
355
inc s$itemList <$str(s$item4)>
356
&nbsp;
357
%{color:lightGrey};红包界面第5个红包%
358
#if
359
large n$行会红包总数 4
360
#act
361
mov n$var 5
362
*{color:green}[[getListValue]]* s$红包列表分割后 <$str(n$var)> s$红包5
363
*{color:green}[[pgExtractString]]* | <$str(s$红包5)> s$红包分割后 n$红包分割数
364
mov n$var 2
365
*{color:green}[[getListValue]]* s$红包分割后 <$str(n$var)> s$红包角色名
366
mov s$item5 (<itemindex:5>
367
inc s$item5 <Img:lc_hongbao_01:25:10:1/<notextile>@</notextile>领取红包(5)>
368
inc s$item5 <Img:lc_qiang:100:250:1>
369
inc s$item5 <text:<$str(s$红包角色名)>的红包{scolor=151}:60:55>
370
inc s$item5 <text:恭喜发财,大吉大利{scolor=151}:35:175>)
371
inc s$itemList <$str(s$item5)>
372
&nbsp;
373
%{color:lightGrey};红包界面第6个红包%
374
#if
375
large n$行会红包总数 5
376
#act
377
mov n$var 6
378
*{color:green}[[getListValue]]* s$红包列表分割后 <$str(n$var)> s$红包6
379
*{color:green}[[pgExtractString]]* | <$str(s$红包6)> s$红包分割后 n$红包分割数
380
mov n$var 2
381
*{color:green}[[getListValue]]* s$红包分割后 <$str(n$var)> s$红包角色名
382
mov s$item6 (<itemindex:6>
383
inc s$item6 <Img:lc_hongbao_01:25:10:1/<notextile>@</notextile>领取红包(6)>
384
inc s$item6 <Img:lc_qiang:100:250:1>
385
inc s$item6 <text:<$str(s$红包角色名)>的红包{scolor=151}:60:55>
386
inc s$item6 <text:恭喜发财,大吉大利{scolor=151}:35:175>)
387
inc s$itemList <$str(s$item6)>
388
&nbsp;
389
%{color:lightGrey};红包界面第7个红包%
390
#if
391
large n$行会红包总数 6
392
#act
393
mov n$var 7
394
*{color:green}[[getListValue]]* s$红包列表分割后 <$str(n$var)> s$红包7
395
*{color:green}[[pgExtractString]]* | <$str(s$红包7)> s$红包分割后 n$红包分割数
396
mov n$var 2
397
*{color:green}[[getListValue]]* s$红包分割后 <$str(n$var)> s$红包角色名
398
mov s$item7 (<itemindex:7>
399
inc s$item7 <Img:lc_hongbao_01:25:10:1/<notextile>@</notextile>领取红包(7)>
400
inc s$item7 <Img:lc_qiang:100:250:1>
401
inc s$item7 <text:<$str(s$红包角色名)>的红包{scolor=151}:60:55>
402
inc s$item7 <text:恭喜发财,大吉大利{scolor=151}:35:175>)
403
inc s$itemList <$str(s$item7)>
404
&nbsp;
405
%{color:lightGrey};红包界面第8个红包%
406
#if
407
large n$行会红包总数 7
408
#act
409
mov n$var 8
410
*{color:green}[[getListValue]]* s$红包列表分割后 <$str(n$var)> s$红包8
411
*{color:green}[[pgExtractString]]* | <$str(s$红包8)> s$红包分割后 n$红包分割数
412
mov n$var 2
413
*{color:green}[[getListValue]]* s$红包分割后 <$str(n$var)> s$红包角色名
414
mov s$item8 (<itemindex:8>
415
inc s$item8 <Img:lc_hongbao_01:25:10:1/<notextile>@</notextile>领取红包(8)>
416
inc s$item8 <Img:lc_qiang:100:250:1>
417 1 chenjun
inc s$item8 <text:<$str(s$红包角色名)>的红包{scolor=151}:60:55>
418
inc s$item8 <text:恭喜发财,大吉大利{scolor=151}:35:175>)
419
inc s$itemList <$str(s$item8)>
420 15 chenjun
&nbsp;
421
&nbsp;
422 28 yangdefeng
&nbsp;
423
&nbsp;
424
&nbsp;
425 15 chenjun
[<notextile>@</notextile>领取红包]
426
#if
427
#act
428
%{color:lightGrey};取出单个红包的数据%
429
mov n$var <$scriptParam1>
430
*{color:green}[[getListValue]]* s$红包列表分割后 <$str(n$var)> s$点的红包
431
*{color:green}[[pgExtractString]]* | <$str(s$点的红包)> s$红包分割后 n$红包分割数
432
%{color:lightGrey};取出红包的金额和数量%
433
mov n$var 1
434
*{color:green}[[getListValue]]* s$红包分割后 <$str(n$var)> s$点的红包时间戳
435
mov n$var 3
436
*{color:green}[[getListValue]]* s$红包分割后 <$str(n$var)> s$点的红包金额
437
mov n$var 4
438
*{color:green}[[getListValue]]* s$红包分割后 <$str(n$var)> s$点的红包数量
439
mov n1 <$str(s$点的红包金额)>
440
mov n2 <$str(s$点的红包数量)>
441
&nbsp;
442
%{color:lightGrey};随机获得红包奖励%
443
%{color:lightGrey};如果红包数量大于1,领取后更新该红包%
444
#if
445
large n2 1
446
%{color:lightGrey};领过的红包不能再领%
447
not *{color:green}[[checkContainsText]]* t$自己领过的红包列表 s$点的红包时间戳
448
#act
449
div n$当前平均值 n1 n2
450
mul n$当前平均值的2倍 n$当前平均值 2
451
%{color:lightGrey};一个行会红包只能再领2次时,最后1个玩家至少可以领取1个货币%
452
dec n$当前平均值的2倍 1
453
movr n$随机红包领取值 1 n$当前平均值的2倍
454
dec n1 n$随机红包领取值
455
dec n2 1
456
mov s1 <$str(s$红包分割后_1)>|<$str(s$红包分割后_2)>|<$str(n1)>|<$str(n2)>|
457
mov s$红包列表 <$guild2(行会红包)>
458 1 chenjun
*{color:green}[[ansiReplaceText]]* s$红包列表 <$str(s$点的红包)> <$str(s1)>
459 15 chenjun
*{color:green}[[calcVar]]* guild2 行会红包 = <$str(s$红包列表)>
460
gameGird + n$随机红包领取值
461
sendtipsmsg 恭喜你抢到了<$str(n$随机红包领取值)>灵符的红包
462
mov s1 <$str(t$自己领过的红包列表)>
463
inc s1 <$str(s$点的红包时间戳)>|
464 28 yangdefeng
mov t$自己领过的红包列表 <$str(s1)>
465 15 chenjun
goto <notextile>@</notextile>main
466
&nbsp;
467
%{color:lightGrey};一个行会红包只能再领1次时,领取后删除该红包%
468
#if
469
equal n2 1
470
%{color:lightGrey};自己领过的红包不能再领%
471
not *{color:green}[[checkContainsText]]* t$自己领过的红包列表 s$点的红包时间戳
472
#act
473
mov s$tmp
474
mov s$红包列表 <$guild2(行会红包)>
475
*{color:green}[[ansiReplaceText]]* s$红包列表 <$str(s$点的红包)>: s$tmp
476
*{color:green}[[calcVar]]* guild2 行会红包 = <$str(s$红包列表)>
477
gameGird + n1
478
sendtipsmsg 恭喜你抢到了<$str(n1)>灵符的红包
479
goto <notextile>@</notextile>main
480
&nbsp;
481
&nbsp;
482
[<notextile>@</notextile>返还过期红包]
483
%{color:lightGrey};循环取出自己发出的红包%
484
#act
485
*{color:green}[[pgExtractString]]* | <$str(t$自己发出的红包列表)> s1 n1
486
mov n$红包计数器 1
487
&nbsp;
488
%{color:lightGrey};循环取出自己发红包列表中红包的时间戳%
489
#if loop n1
490
#act
491
%{color:lightGrey};取出时间戳%
492
mov n$var <$str(n$红包计数器)>
493
*{color:green}[[getListValue]]* s1 <$str(n$var)> s$红包的时间戳
494
goto <notextile>@</notextile>过期处理
495
inc n$红包计数器 1
496
&nbsp;
497
%{color:lightGrey};返还过期的红包%
498
#if
499
large u$过期返还的红包金额 0
500
#act
501
messageBox 您发出的行会红包超过24小时仍未领完\现将未领取的红包退还\共退还<$str(u$过期返还的红包金额)>灵符
502
gameGird + u$过期返还的红包金额
503
sendMsg 6 你获得了退还的<$str(u$过期返还的红包金额)>灵符
504
mov u$过期返还的红包金额 0
505
&nbsp;
506
&nbsp;
507
[<notextile>@</notextile>过期处理]
508
%{color:lightGrey};根据时间戳判断该红包是否过期%
509
#act
510
mov n$var1 <$timeStamp>
511
mov n$var2 <$str(s$红包的时间戳)>
512
dec n$var1 n$var2
513
div n$发出多少小时 n$var1 3600
514
&nbsp;
515
#if
516
not small n$发出多少小时 24
517
#act
518
%{color:lightGrey};从发红包数据中删除该红包%
519
mov s$tmp
520
*{color:green}[[ansiReplaceText]]* t$自己发出的红包列表 <$str(s$红包的时间戳)>| s$tmp
521
goto <notextile>@</notextile>找出仍在行会红包中的
522
&nbsp;
523
%{color:lightGrey};过期并且依然存在于行会红包中的,找出来%
524
[<notextile>@</notextile>找出仍在行会红包中的]
525
#act
526
%{color:lightGrey};获取全部的行会红包%
527
mov s$红包列表含已领取 <$guild2(行会红包)>
528
*{color:green}[[pgExtractString]]* : s$红包列表含已领取 s$红包列表含已领取分割后 n$行会红包总数
529
&nbsp;
530
#if
531
*{color:green}[[checkContainsText]]* s$红包列表含已领取 s$红包的时间戳
532
#act
533
mov n$红包计数器2号 1
534
%{color:lightGrey};循环取出列表中红包们的时间戳%
535
#if loop n$行会红包总数
536
#act
537
%{color:lightGrey};取出红包%
538
mov n$var <$str(n$红包计数器2号)>
539
*{color:green}[[getListValue]]* s$红包列表含已领取分割后 <$str(n$var)> s$红包
540
*{color:green}[[pgExtractString]]* | <$str(s$红包)> s$红包分割后 n$红包分割后
541
%{color:lightGrey};取出红包的时间戳%
542
mov n$var 1
543
*{color:green}[[getListValue]]* s$红包分割后 <$str(n$var)> s$行会红包的时间戳
544
%{color:lightGrey};取出红包的红包金额%
545
mov n$var 3
546
*{color:green}[[getListValue]]* s$红包分割后 <$str(n$var)> s$行会红包金额
547
goto <notextile>@</notextile>处理仍在行会红包中的
548
inc n$红包计数器2号 1
549
&nbsp;
550
&nbsp;
551
%{color:lightGrey};将红包余额存个人变量,再从行会红包中删除%
552
[<notextile>@</notextile>处理仍在行会红包中的]
553
#if
554
*{color:green}[[CompareText]]* s$红包的时间戳 s$行会红包的时间戳
555
#act
556
%{color:lightGrey};将红包余额存变量%
557
mov n$var <$str(s$行会红包金额)>
558
inc u$过期返还的红包金额 n$var
559
%{color:lightGrey};从行会红包中删除该红包%
560
mov s$tmp
561
mov s$红包列表 <$guild2(行会红包)>
562
*{color:green}[[ansiReplaceText]]* s$红包列表 <$str(s$红包)>: s$tmp
563
*{color:green}[[calcVar]]* guild2 行会红包 = <$str(s$红包列表)>
564
&nbsp;
565
&nbsp;
566
%{color:lightGrey};自己领红包数据中,删除时间超过24小时的红包%
567
[<notextile>@</notextile>更新领红包数据]
568
%{color:lightGrey};循环取出自己领取的红包%
569
#act
570
*{color:green}[[pgExtractString]]* | <$str(t$自己领过的红包列表)> s1 n1
571
mov n$红包计数器 1
572
&nbsp;
573
%{color:lightGrey};循环取出自己领取红包列表中红包的时间戳%
574
#if loop n1
575
#act
576
%{color:lightGrey};取出时间戳%
577
mov n$var <$str(n$红包计数器)>
578
*{color:green}[[getListValue]]* s1 <$str(n$var)> s$红包的时间戳
579
goto <notextile>@</notextile>领红包过期处理
580
inc n$红包计数器 1
581
&nbsp;
582
&nbsp;
583
[<notextile>@</notextile>领红包过期处理]
584
%{color:lightGrey};根据时间戳判断该红包是否过期%
585
#act
586
mov n$var1 <$timeStamp>
587
mov n$var2 <$str(s$红包的时间戳)>
588
dec n$var1 n$var2
589
div n$发出多少小时 n$var1 3600
590
&nbsp;
591
#if
592
not small n$发出多少小时 24
593
#act
594
%{color:lightGrey};从领红包数据中删除该红包%
595
mov s$tmp
596
*{color:green}[[ansiReplaceText]]* t$自己领过的红包列表 <$str(s$红包的时间戳)>| s$tmp
597 24 chenjun
598 25 chenjun
-
599
-
600 24 chenjun
601
bq. %{color:lightGrey};..\Mir200\Envir\MapQuest_def\QManage.txt%
602 15 chenjun
[<notextile>@</notextile>Login]
603
#if
604
%{color:lightGrey};登陆时返还过期红包%
605
#call [\行会红包\行会红包.txt] <notextile>@</notextile>返还过期红包
606
%{color:lightGrey};登陆时,自己领红包数据中,删除时间超过24小时的红包%
607
#call [\行会红包\行会红包.txt] <notextile>@</notextile>更新领红包数据
608
&nbsp;
609 1 chenjun
%{color:lightGrey};每日首次登陆时重置每日数据%
610
#if
611 20 chenjun
checkLoginCount = 1
612
#act
613 15 chenjun
mov u$今日剩余可发灵符 10000000