项目

一般

简介

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

chenjun, 2022-06-02 17:07

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