Parcourir la source

新增首充活动

huangyuhao80 il y a 2 mois
Parent
commit
0f3c8f6e41

+ 3 - 0
csv/cfg_Activity_firstRecharge.csv

@@ -0,0 +1,3 @@
1
+int#c#s,int#c#s,intListList#c#s,string#c#s
2
+id,mainTaskId,reward,text
3
+1,10,50030002#3|50030004#1|21400002#1|21500002#1,Ê׳䳯ºô¼Ó³É

+ 112 - 0
meta/userapi/lua/ActFirstRecharge.lua

@@ -0,0 +1,112 @@
1
+-- 活动 - 首充
2
+ActFirstRecharge = {}
3
+ActFirstRecharge.__index = ActFirstRecharge
4
+
5
+local function _rechargeType()
6
+    return "0"
7
+end
8
+
9
+local function _playerDbKey()
10
+    return "T$act_recharge_first_data"
11
+end
12
+
13
+function ActFirstRecharge.getData(actor)
14
+    local var = getplaydef(actor, _playerDbKey())
15
+    local data = setmetatable(var or {}, ActFirstRecharge)
16
+    -- 充值事件
17
+    if not data.payTime then
18
+        data.payTime = 0
19
+    end
20
+    -- 领奖状态
21
+    if not data.rewardStatus then
22
+        data.rewardStatus = 0
23
+    end
24
+    return data
25
+end
26
+
27
+function ActFirstRecharge:saveData(actor)
28
+    setplaydef(actor, _playerDbKey(), self)
29
+end
30
+
31
+---充值回调触发事件
32
+function ActFirstRecharge.rechargeEvent(actor, cfg_recharge, count, amount, ext, outRewards)
33
+    local data = ActFirstRecharge.getData(actor)
34
+    -- 已充值
35
+    if data.payTime > 0 then
36
+        return
37
+    end
38
+    data.payTime = getbaseinfo("nowsec")
39
+    data.rewardStatus = 1
40
+    ActFirstRecharge.saveData(data, actor)
41
+    ActFirstRecharge.sendPanel(actor, data)
42
+    -- jprint("更新豪礼数据",data,config)
43
+    sendluamsg(
44
+        actor,
45
+        LuaMessageIdToClient.RES_ACT_FIRST_CHARGE_INFO,
46
+        {payTime = data.payTime, rewardStatus = data.rewardStatus}
47
+    )
48
+end
49
+
50
+---统一的请求消息处理
51
+function ActFirstRecharge.reqAction(actor, type, action, reqParameter)
52
+    if action == "panel" then
53
+        local data = ActFirstRecharge.getData(actor)
54
+        ActFirstRecharge.sendPanel(actor, data)
55
+    elseif action == "reward" then
56
+        ActFirstRecharge.gainReward(actor, reqParameter)
57
+    end
58
+end
59
+
60
+function ActFirstRecharge.gainReward(actor, reqParameter)
61
+    local data = ActFirstRecharge.getData(actor)
62
+    -- 未充值
63
+    if data.payTime == 0 then
64
+        tipinfo(actor, "未充值")
65
+        return
66
+    end
67
+    -- 已领取
68
+    if data.rewardStatus > 0 then
69
+        tipinfo(actor, "已领取")
70
+        return
71
+    end
72
+    -- 发放奖励
73
+    local reward = ConfigDataManager.getTableValue("cfg_Activity_firstRecharge", "reward", "id", 1)
74
+    local tmp = string.toIntIntMap(reward, "#", "|")
75
+    if table.notNullOrEmpty(tmp) then
76
+        --奖励进入背包
77
+        Bag.sendRewards(actor, tmp, "充值奖励")
78
+    end
79
+
80
+    -- 改变状态
81
+    data.rewardStatus = 2
82
+    ActFirstRecharge.saveData(data, actor)
83
+    -- 发送奖励
84
+    ActFirstRecharge.sendPanel(actor, data)
85
+    -- jprint("领奖豪礼数据",data)
86
+    sendluamsg(
87
+        actor,
88
+        LuaMessageIdToClient.RES_ACT_FIRST_CHARGE_INFO,
89
+        {payTime = data.payTime, rewardStatus = data.rewardStatus}
90
+    )
91
+end
92
+
93
+function ActFirstRecharge.sendPanel(actor, data)
94
+    Recharge.resAction(actor, _rechargeType(), "panel", data)
95
+end
96
+
97
+-- 获取活动信息
98
+function ActFirstRecharge.getInfo(actor, msgData)
99
+    local data = ActFirstRecharge.getData(actor)
100
+    sendluamsg(
101
+        actor,
102
+        LuaMessageIdToClient.RES_ACT_FIRST_CHARGE_INFO,
103
+        {payTime = data.payTime, rewardStatus = data.rewardStatus}
104
+    )
105
+end
106
+
107
+--TODO 一定要放到文件最后
108
+EventListerTable.registerType("首充活动", _rechargeType(), _playerDbKey())
109
+--注册充值事件
110
+RechargeEventListerTable:eventLister(_rechargeType(), "首充活动", ActFirstRecharge.rechargeEvent)
111
+-- 注册请求消息监听
112
+RechargeMessageEventListerTable:eventLister(_rechargeType(), "首充活动", ActFirstRecharge.reqAction)

+ 76 - 64
meta/userapi/lua/ActivityManager.lua

@@ -6,9 +6,10 @@ local this = {}
6 6
 
7 7
 -- 活动类型
8 8
 local ACTIVITY_TYPE = {
9
-    WORLD_BOSS = 1,    -- 世界BOSS争夺战
10
-    SIEGE_WAR = 2,     -- 攻城战
11
-    MONSTER_LEGION = 3 -- 怪物军团
9
+    WORLD_BOSS = 1, -- 世界BOSS争夺战
10
+    SIEGE_WAR = 2, -- 攻城战
11
+    MONSTER_LEGION = 3, -- 怪物军团
12
+    FIRST_RECHARGE = 4 -- 首充活动
12 13
 }
13 14
 
14 15
 -- 活动配置
@@ -30,13 +31,19 @@ local ACTIVITY_CONFIG = {
30 31
         description = "每周三、周五晚上7点开启,抵御怪物入侵",
31 32
         module = MonsterLegion,
32 33
         enabled = true
34
+    },
35
+    [ACTIVITY_TYPE.FIRST_RECHARGE] = {
36
+        name = "首充活动",
37
+        description = "完成主线特定任务开启",
38
+        module = ActFirstRecharge,
39
+        enabled = true
33 40
     }
34 41
 }
35 42
 
36 43
 -- 初始化所有活动系统
37 44
 function this.Init()
38 45
     info("活动管理器初始化开始")
39
-    
46
+
40 47
     -- 初始化各个活动系统
41 48
     for activityType, config in pairs(ACTIVITY_CONFIG) do
42 49
         if config.enabled and config.module and config.module.Init then
@@ -48,27 +55,30 @@ function this.Init()
48 55
             end
49 56
         end
50 57
     end
51
-    
58
+
52 59
     -- 启动活动检查定时器
53 60
     this.StartActivityCheckTimer()
54
-    
61
+
55 62
     info("活动管理器初始化完成")
56 63
 end
57 64
 
58 65
 -- 启动活动检查定时器
59 66
 function this.StartActivityCheckTimer()
60 67
     -- 每30秒检查一次活动状态
61
-    setTimer(30000, function()
62
-        this.CheckAllActivities()
63
-    end)
68
+    setTimer(
69
+        30000,
70
+        function()
71
+            this.CheckAllActivities()
72
+        end
73
+    )
64 74
 end
65 75
 
66 76
 -- 检查所有活动状态
67 77
 function this.CheckAllActivities()
68 78
     for activityType, config in pairs(ACTIVITY_CONFIG) do
69 79
         if config.enabled and config.module then
70
-            -- 这里可以添加活动状态检查逻辑
71
-            -- 例如:检查活动是否异常、是否需要重启等
80
+        -- 这里可以添加活动状态检查逻辑
81
+        -- 例如:检查活动是否异常、是否需要重启等
72 82
         end
73 83
     end
74 84
 end
@@ -79,7 +89,7 @@ function this.GetActivityInfo(activityType)
79 89
     if not config or not config.enabled then
80 90
         return nil
81 91
     end
82
-    
92
+
83 93
     local module = config.module
84 94
     local info = {
85 95
         type = activityType,
@@ -90,34 +100,34 @@ function this.GetActivityInfo(activityType)
90 100
         timeRemaining = 0,
91 101
         participants = 0
92 102
     }
93
-    
103
+
94 104
     -- 获取活动状态
95 105
     if module.GetActivityStatus then
96 106
         info.status = module.GetActivityStatus()
97 107
     end
98
-    
108
+
99 109
     -- 获取当前阶段
100 110
     if module.GetCurrentPhase then
101 111
         info.phase = module.GetCurrentPhase()
102 112
     end
103
-    
113
+
104 114
     -- 获取剩余时间
105 115
     if module.GetActivityRemainingTime then
106 116
         info.timeRemaining = module.GetActivityRemainingTime()
107 117
     end
108
-    
118
+
109 119
     -- 获取参与人数
110 120
     if module.GetParticipantCount then
111 121
         info.participants = module.GetParticipantCount()
112 122
     end
113
-    
123
+
114 124
     return info
115 125
 end
116 126
 
117 127
 -- 获取所有活动信息
118 128
 function this.GetAllActivitiesInfo()
119 129
     local activities = {}
120
-    
130
+
121 131
     for activityType, config in pairs(ACTIVITY_CONFIG) do
122 132
         if config.enabled then
123 133
             local info = this.GetActivityInfo(activityType)
@@ -126,7 +136,7 @@ function this.GetAllActivitiesInfo()
126 136
             end
127 137
         end
128 138
     end
129
-    
139
+
130 140
     return activities
131 141
 end
132 142
 
@@ -136,7 +146,7 @@ function this.StartActivity(activityType)
136 146
     if not config or not config.enabled then
137 147
         return false, "活动不存在或已禁用"
138 148
     end
139
-    
149
+
140 150
     local module = config.module
141 151
     if module.StartActivity then
142 152
         local success, err = pcall(module.StartActivity)
@@ -158,7 +168,7 @@ function this.StopActivity(activityType)
158 168
     if not config or not config.enabled then
159 169
         return false, "活动不存在或已禁用"
160 170
     end
161
-    
171
+
162 172
     local module = config.module
163 173
     if module.EndActivity then
164 174
         local success, err = pcall(module.EndActivity)
@@ -180,9 +190,9 @@ function this.PlayerJoinActivity(actor, activityType)
180 190
     if not config or not config.enabled then
181 191
         return false, "活动不存在或已禁用"
182 192
     end
183
-    
193
+
184 194
     local module = config.module
185
-    
195
+
186 196
     -- 根据活动类型调用相应的报名函数
187 197
     if activityType == ACTIVITY_TYPE.WORLD_BOSS then
188 198
         if module.PlayerRegister then
@@ -197,7 +207,7 @@ function this.PlayerJoinActivity(actor, activityType)
197 207
             return module.PlayerRegister(actor)
198 208
         end
199 209
     end
200
-    
210
+
201 211
     return false, "活动不支持报名功能"
202 212
 end
203 213
 
@@ -207,13 +217,13 @@ function this.CanPlayerJoinActivity(actor, activityType)
207 217
     if not config or not config.enabled then
208 218
         return false, "活动不存在或已禁用"
209 219
     end
210
-    
220
+
211 221
     local module = config.module
212
-    
222
+
213 223
     if module.CanPlayerParticipate then
214 224
         return module.CanPlayerParticipate(actor)
215 225
     end
216
-    
226
+
217 227
     return false, "活动不支持参与检查"
218 228
 end
219 229
 
@@ -223,9 +233,9 @@ function this.GetActivityRanking(activityType, rankingType)
223 233
     if not config or not config.enabled then
224 234
         return {}
225 235
     end
226
-    
236
+
227 237
     local module = config.module
228
-    
238
+
229 239
     if rankingType == "player" then
230 240
         if module.GetPlayerScoreRanking then
231 241
             return module.GetPlayerScoreRanking()
@@ -239,7 +249,7 @@ function this.GetActivityRanking(activityType, rankingType)
239 249
             return module.GetAllianceDamageRanking()
240 250
         end
241 251
     end
242
-    
252
+
243 253
     return {}
244 254
 end
245 255
 
@@ -249,34 +259,34 @@ function this.GetActivityDetailedStatus(activityType)
249 259
     if not config or not config.enabled then
250 260
         return nil
251 261
     end
252
-    
262
+
253 263
     local module = config.module
254 264
     local status = {
255 265
         type = activityType,
256 266
         name = config.name,
257 267
         enabled = config.enabled
258 268
     }
259
-    
269
+
260 270
     -- 获取活动状态
261 271
     if module.GetActivityStatus then
262 272
         status.status = module.GetActivityStatus()
263 273
     end
264
-    
274
+
265 275
     -- 获取当前阶段
266 276
     if module.GetCurrentPhase then
267 277
         status.phase = module.GetCurrentPhase()
268 278
     end
269
-    
279
+
270 280
     -- 获取剩余时间
271 281
     if module.GetActivityRemainingTime then
272 282
         status.timeRemaining = module.GetActivityRemainingTime()
273 283
     end
274
-    
284
+
275 285
     -- 获取参与人数
276 286
     if module.GetParticipantCount then
277 287
         status.participants = module.GetParticipantCount()
278 288
     end
279
-    
289
+
280 290
     -- 根据活动类型获取特定信息
281 291
     if activityType == ACTIVITY_TYPE.WORLD_BOSS then
282 292
         if module.GetBossHPInfo then
@@ -297,7 +307,7 @@ function this.GetActivityDetailedStatus(activityType)
297 307
             status.stats = module.GetActivityStats()
298 308
         end
299 309
     end
300
-    
310
+
301 311
     return status
302 312
 end
303 313
 
@@ -307,13 +317,13 @@ function this.SendActivityNotice(activityType, message)
307 317
     if not config or not config.enabled then
308 318
         return false
309 319
     end
310
-    
320
+
311 321
     local module = config.module
312 322
     if module.SendWorldNotice then
313 323
         module.SendWorldNotice(message)
314 324
         return true
315 325
     end
316
-    
326
+
317 327
     return false
318 328
 end
319 329
 
@@ -323,7 +333,7 @@ function this.GetActivityConfig(activityType)
323 333
     if not config then
324 334
         return nil
325 335
     end
326
-    
336
+
327 337
     return {
328 338
         type = activityType,
329 339
         name = config.name,
@@ -335,11 +345,11 @@ end
335 345
 -- 获取所有活动配置
336 346
 function this.GetAllActivityConfigs()
337 347
     local configs = {}
338
-    
348
+
339 349
     for activityType, config in pairs(ACTIVITY_CONFIG) do
340 350
         table.insert(configs, this.GetActivityConfig(activityType))
341 351
     end
342
-    
352
+
343 353
     return configs
344 354
 end
345 355
 
@@ -349,15 +359,15 @@ function this.SetActivityEnabled(activityType, enabled)
349 359
     if not config then
350 360
         return false, "活动不存在"
351 361
     end
352
-    
362
+
353 363
     config.enabled = enabled
354
-    
364
+
355 365
     if enabled then
356 366
         info("活动已启用:", config.name)
357 367
     else
358 368
         info("活动已禁用:", config.name)
359 369
     end
360
-    
370
+
361 371
     return true
362 372
 end
363 373
 
@@ -367,14 +377,14 @@ function this.RestartActivitySystem(activityType)
367 377
     if not config or not config.enabled then
368 378
         return false, "活动不存在或已禁用"
369 379
     end
370
-    
380
+
371 381
     local module = config.module
372
-    
382
+
373 383
     -- 停止当前活动
374 384
     if module.EndActivity then
375 385
         pcall(module.EndActivity)
376 386
     end
377
-    
387
+
378 388
     -- 重新初始化
379 389
     if module.Init then
380 390
         local success, err = pcall(module.Init)
@@ -386,7 +396,7 @@ function this.RestartActivitySystem(activityType)
386 396
             return false, "活动系统重启失败:" .. err
387 397
         end
388 398
     end
389
-    
399
+
390 400
     return false, "活动模块不支持重启功能"
391 401
 end
392 402
 
@@ -398,26 +408,29 @@ function this.GetActivityStatistics()
398 408
         activeActivities = 0,
399 409
         activities = {}
400 410
     }
401
-    
411
+
402 412
     for activityType, config in pairs(ACTIVITY_CONFIG) do
403 413
         stats.totalActivities = stats.totalActivities + 1
404
-        
414
+
405 415
         if config.enabled then
406 416
             stats.enabledActivities = stats.enabledActivities + 1
407
-            
417
+
408 418
             local status = this.GetActivityDetailedStatus(activityType)
409 419
             if status and status.status and status.status > 0 then
410 420
                 stats.activeActivities = stats.activeActivities + 1
411 421
             end
412
-            
413
-            table.insert(stats.activities, {
414
-                type = activityType,
415
-                name = config.name,
416
-                status = status
417
-            })
422
+
423
+            table.insert(
424
+                stats.activities,
425
+                {
426
+                    type = activityType,
427
+                    name = config.name,
428
+                    status = status
429
+                }
430
+            )
418 431
         end
419 432
     end
420
-    
433
+
421 434
     return stats
422 435
 end
423 436
 
@@ -427,7 +440,7 @@ function this.CleanupActivityData(activityType)
427 440
     if not config or not config.enabled then
428 441
         return false, "活动不存在或已禁用"
429 442
     end
430
-    
443
+
431 444
     local module = config.module
432 445
     if module.CleanupActivityData then
433 446
         local success, err = pcall(module.CleanupActivityData)
@@ -439,14 +452,14 @@ function this.CleanupActivityData(activityType)
439 452
             return false, "活动数据清理失败:" .. err
440 453
         end
441 454
     end
442
-    
455
+
443 456
     return false, "活动模块不支持数据清理功能"
444 457
 end
445 458
 
446 459
 -- 清理所有活动数据
447 460
 function this.CleanupAllActivityData()
448 461
     local results = {}
449
-    
462
+
450 463
     for activityType, config in pairs(ACTIVITY_CONFIG) do
451 464
         if config.enabled then
452 465
             local success, message = this.CleanupActivityData(activityType)
@@ -456,10 +469,9 @@ function this.CleanupAllActivityData()
456 469
             }
457 470
         end
458 471
     end
459
-    
472
+
460 473
     return results
461 474
 end
462 475
 
463 476
 -- 导出模块
464 477
 return this
465
-

Fichier diff supprimé car celui-ci est trop grand
+ 563 - 665
meta/userapi/lua/LuaMessageIdConst.lua


+ 105 - 106
meta/userapi/lua/QFunction-0.lua

@@ -7,8 +7,8 @@ function handlerequest(actor, uid, msgID, msgData)
7 7
     envDebug = envDebug or getenv("debug")
8 8
     if envDebug then
9 9
         local last_lua_message = {
10
-            ["uid"]     = uid,
11
-            ["msgID"]   = msgID,
10
+            ["uid"] = uid,
11
+            ["msgID"] = msgID,
12 12
             ["msgData"] = msgData
13 13
         }
14 14
         setplaydef(actor, "J$gm_last_lua", last_lua_message)
@@ -25,62 +25,62 @@ function handlerequest(actor, uid, msgID, msgData)
25 25
         -- print(result)
26 26
         -- 装备相关
27 27
     elseif msgID == LuaMessageIdToSever.SETTING_EQUIP_APPEAR then
28
-        EquipAndAppear.settingequipappear(actor, msgData)        -- 保存装备外观|幻化
28
+        EquipAndAppear.settingequipappear(actor, msgData) -- 保存装备外观|幻化
29 29
     elseif msgID == LuaMessageIdToSever.GET_EQUIP_APPEAR then
30
-        EquipAndAppear.getequipappear(actor, msgID)              -- 获取装备外观
30
+        EquipAndAppear.getequipappear(actor, msgID) -- 获取装备外观
31 31
     elseif msgID == LuaMessageIdToSever.EQUIP_FASHION then
32
-        EquipAndAppear.equipfashion(actor, msgData)              -- 装备幻化
32
+        EquipAndAppear.equipfashion(actor, msgData) -- 装备幻化
33 33
     elseif msgID == LuaMessageIdToSever.ACT_EQUIP_COLOR then
34
-        EquipAndAppear.actquipcolor(actor, msgData)              -- 装备染色
34
+        EquipAndAppear.actquipcolor(actor, msgData) -- 装备染色
35 35
     elseif msgID == LuaMessageIdToSever.GET_EQUIP_COLOR then
36
-        EquipAndAppear.getequipcolor(actor, msgID)               -- 获取装备染色信息
36
+        EquipAndAppear.getequipcolor(actor, msgID) -- 获取装备染色信息
37 37
     elseif msgID == LuaMessageIdToSever.SETTING_EQUIP_COLOR then
38
-        EquipAndAppear.settingequipcolor(actor, msgData)         -- 保存装备染色
38
+        EquipAndAppear.settingequipcolor(actor, msgData) -- 保存装备染色
39 39
     elseif msgID == LuaMessageIdToSever.REQ_ITEM_DECOMPOSITION then
40
-        ItemRecycling.decompositionlua(actor, msgID, msgData)    -- 装备分解
40
+        ItemRecycling.decompositionlua(actor, msgID, msgData) -- 装备分解
41 41
     elseif msgID == LuaMessageIdToSever.GET_TITLE then
42
-        EquipAndAppear.gettitleinfo(actor, msgID)                -- 获取称号信息
42
+        EquipAndAppear.gettitleinfo(actor, msgID) -- 获取称号信息
43 43
     elseif msgID == LuaMessageIdToSever.SET_TITLE then
44 44
         EquipAndAppear.settingtitleappear(actor, msgID, msgData) -- 设置当前称号
45 45
     elseif msgID == LuaMessageIdToSever.GET_SHAPE_RING then
46
-        EquipAndAppear.getshapering(actor, msgID)                -- 获取变身戒指信息
46
+        EquipAndAppear.getshapering(actor, msgID) -- 获取变身戒指信息
47 47
     elseif msgID == LuaMessageIdToSever.GET_GUARD_APPEAR then
48
-        EquipAndAppear.getguardappear(actor, msgID)              -- 获取守护皮肤信息
48
+        EquipAndAppear.getguardappear(actor, msgID) -- 获取守护皮肤信息
49 49
     elseif msgID == LuaMessageIdToSever.SET_SHAPE_RING then
50
-        EquipAndAppear.wearshapering(actor, msgData)             -- 穿戴变身戒指
50
+        EquipAndAppear.wearshapering(actor, msgData) -- 穿戴变身戒指
51 51
     elseif msgID == LuaMessageIdToSever.REQ_STRENGTH_EQUIP then
52
-        EquipAndAppear.luastrengthequip(actor, msgData)          -- 请求装备强化
52
+        EquipAndAppear.luastrengthequip(actor, msgData) -- 请求装备强化
53 53
     elseif msgID == LuaMessageIdToSever.REQ_APPEND_EQUIP then
54
-        EquipAndAppear.luaappendequip(actor, msgData)            -- 请求装备追加
54
+        EquipAndAppear.luaappendequip(actor, msgData) -- 请求装备追加
55 55
     elseif msgID == LuaMessageIdToSever.REQ_EQUIP_FASHION then
56
-        EquipAndAppear.getallequipfashion(actor)                 -- 请求已激活幻化外观
56
+        EquipAndAppear.getallequipfashion(actor) -- 请求已激活幻化外观
57 57
     elseif msgID == LuaMessageIdToSever.REQ_UPDATE_EQUIP_ORNAMENTS then
58
-        EquipAndAppear.ssupdate(actor, msgData)                  -- 请求首饰升级
58
+        EquipAndAppear.ssupdate(actor, msgData) -- 请求首饰升级
59 59
     elseif msgID == LuaMessageIdToSever.REQ_EQUIP_REGENERATION then
60
-        EquipAndAppear.regeneration(actor, msgData)              -- 请求装备再生
60
+        EquipAndAppear.regeneration(actor, msgData) -- 请求装备再生
61 61
     elseif msgID == LuaMessageIdToSever.REQ_UP_EQUIP_REGENERATION then
62
-        EquipAndAppear.getupregenerationattr(actor, msgData)     -- 请求装备上次洗练数据
62
+        EquipAndAppear.getupregenerationattr(actor, msgData) -- 请求装备上次洗练数据
63 63
     elseif msgID == LuaMessageIdToSever.REQ_REPLACE_REGENERATION_ATTR then
64
-        EquipAndAppear.confirmreplaceentry(actor, msgData)       -- 请求替换装备再生属性
64
+        EquipAndAppear.confirmreplaceentry(actor, msgData) -- 请求替换装备再生属性
65 65
     elseif msgID == LuaMessageIdToSever.REQ_STRENGTH_REGENERATION_ATTR then
66
-        EquipAndAppear.strengthregenerationattr(actor, msgData)  -- 请求强化装备再生属性
66
+        EquipAndAppear.strengthregenerationattr(actor, msgData) -- 请求强化装备再生属性
67 67
     elseif msgID == LuaMessageIdToSever.REQ_ACT_EQUIP_ORNAMENTS then
68
-        EquipAndAppear.actssattr(actor, msgData)                 -- 请求首饰属性激活
68
+        EquipAndAppear.actssattr(actor, msgData) -- 请求首饰属性激活
69 69
     elseif msgID == LuaMessageIdToSever.REQ_TRANSFER_EQUIP then
70 70
         -- 装备相关结束
71
-        EquipAndAppear.luatransferequip(actor, msgData)      -- 请求装备属性转移
71
+        EquipAndAppear.luatransferequip(actor, msgData) -- 请求装备属性转移
72 72
     elseif msgID == LuaMessageIdToSever.GET_TEAM_RECRUIT then
73
-        Team.getteamrecruitlua(actor, msgID)                 -- 获取组队喊话信息
73
+        Team.getteamrecruitlua(actor, msgID) -- 获取组队喊话信息
74 74
     elseif msgID == LuaMessageIdToSever.LEADER_AGREE_APPLY then
75
-        Team.leaderAgreeApply(actor, msgID)                  -- 队长一键同意申请记录
75
+        Team.leaderAgreeApply(actor, msgID) -- 队长一键同意申请记录
76 76
     elseif msgID == LuaMessageIdToSever.GET_RESET_FRUIT_COUNT then
77
-        FruitScript.toGetResetCount(actor)                   -- 获取重置果实次数
77
+        FruitScript.toGetResetCount(actor) -- 获取重置果实次数
78 78
     elseif msgID == LuaMessageIdToSever.S_RESET_FRUIT then
79
-        FruitScript.resetFruit(actor, msgData)               -- 重置果实
79
+        FruitScript.resetFruit(actor, msgData) -- 重置果实
80 80
     elseif msgID == LuaMessageIdToSever.GET_MOUNSTER_COUNT_BY_MAP then
81 81
         DuplicateCommon.getmonstercountbymap(actor, msgData) -- 根据地图信息获取怪物数量
82 82
     elseif msgID == LuaMessageIdToSever.SET_FRIEND_DEGREE then
83
-        Friend.sendflower(actor, msgID, msgData)             -- 好友送花
83
+        Friend.sendflower(actor, msgID, msgData) -- 好友送花
84 84
     elseif msgID == LuaMessageIdToSever.GET_DEVIL_SQUARE_PANEL then
85 85
         DevilSquare.ReqGetPanelInfo(actor, msgData)
86 86
     elseif msgID == LuaMessageIdToSever.REQ_RECIVE_DEVIL_SQUARE_REWARD then
@@ -100,15 +100,15 @@ function handlerequest(actor, uid, msgID, msgData)
100 100
     elseif msgID == LuaMessageIdToSever.OPEN_OR_CLOSE_AUTO_BUY_POTION then
101 101
         AutoBuyPotionScript.openOrCloseAutoBuyPotion(actor) -- 开启或关闭自动购买药水
102 102
     elseif msgID == LuaMessageIdToSever.GET_CURRENT_AUTO_BUY_POTION then
103
-        AutoBuyPotionScript.getCurrentOpenState(actor)      -- 当前自动购买药水状态
103
+        AutoBuyPotionScript.getCurrentOpenState(actor) -- 当前自动购买药水状态
104 104
     elseif msgID == LuaMessageIdToSever.LOAD_RANK_DATA then
105
-        RankScript.loadRankData(actor, msgData)             -- 请求排行榜数据
105
+        RankScript.loadRankData(actor, msgData) -- 请求排行榜数据
106 106
     elseif msgID == LuaMessageIdToSever.STOP_REFRESH_RANK_DATA then
107
-        RankScript.stopRefreshData(actor)                   -- 停止自动刷新排行榜数据
107
+        RankScript.stopRefreshData(actor) -- 停止自动刷新排行榜数据
108 108
     elseif msgID == LuaMessageIdToSever.PLAYER_IS_ON_LINE_REQ then
109
-        Chat.playerIsOnLineReq(actor, msgData)              -- 玩家是否在线
109
+        Chat.playerIsOnLineReq(actor, msgData) -- 玩家是否在线
110 110
     elseif msgID == LuaMessageIdToSever.RECRUIT_INFO_REQ then
111
-        Chat.reqRecruitInfo(actor, msgData)                 -- 发送招募信息
111
+        Chat.reqRecruitInfo(actor, msgData) -- 发送招募信息
112 112
     elseif msgID == LuaMessageIdToSever.GET_GOLD_TASK_INFO then
113 113
         GoldTask.SendTaskInfo(actor)
114 114
     elseif msgID == LuaMessageIdToSever.FLUSH_GOLD_TASK_POOL then
@@ -134,15 +134,15 @@ function handlerequest(actor, uid, msgID, msgData)
134 134
     elseif msgID == LuaMessageIdToSever.REQ_ENTER_SECRET_REALM then
135 135
         SecretRealm.reqEnterSecretRealm(actor, msgData) -- 请求进入秘境副本
136 136
     elseif msgID == LuaMessageIdToSever.REQ_EXIT_SECRET_REALM then
137
-        SecretRealm.reqExitSecretRealm(actor)           -- 请求退出秘境副本
137
+        SecretRealm.reqExitSecretRealm(actor) -- 请求退出秘境副本
138 138
     elseif msgID == LuaMessageIdToSever.REQ_GET_SECRET_REALM_COUNT then
139
-        SecretRealm.sendRemainingChallenges(actor)      -- 发送秘境副本挑战次数
139
+        SecretRealm.sendRemainingChallenges(actor) -- 发送秘境副本挑战次数
140 140
     elseif msgID == LuaMessageIdToSever.GET_SECRET_REALM_MONSTER_COUNT then
141
-        SecretRealm.getMonsterCount(actor, msgData)     -- 获取秘境副本怪物数量
141
+        SecretRealm.getMonsterCount(actor, msgData) -- 获取秘境副本怪物数量
142 142
     elseif msgID == LuaMessageIdToSever.GET_ALREADY_USE_POINTS then
143
-        FruitScript.toGetAlreadyUsePoints(actor)        -- 获取已经使用的点数
143
+        FruitScript.toGetAlreadyUsePoints(actor) -- 获取已经使用的点数
144 144
     elseif msgID == LuaMessageIdToSever.REQ_BLOODY_CASTLE_GIVE_NPC then
145
-        BloodyCastle.ReqGive2NPC(actor)                 -- 给武器给NPC
145
+        BloodyCastle.ReqGive2NPC(actor) -- 给武器给NPC
146 146
     elseif msgID == LuaMessageIdToSever.REQ_GET_UNION_INFO then
147 147
         UnionChangeLeader.sendUnionInfo(actor)
148 148
     elseif msgID == LuaMessageIdToSever.REQ_UNION_ACTIVITY_DATA then
@@ -160,51 +160,51 @@ function handlerequest(actor, uid, msgID, msgData)
160 160
     elseif msgID == LuaMessageIdToSever.REQ_PLAYER_RUN_FOR_LEADER_VOTE then
161 161
         UnionChangeLeader.RunForLeader.actorVoteRunForLeader(actor, msgData)
162 162
     elseif msgID == LuaMessageIdToSever.REQ_DUPLICATE_TEAM_ENTER then
163
-        DuplicateCommon.DoTeamEnterDup(actor)     -- 组队进入副本
163
+        DuplicateCommon.DoTeamEnterDup(actor) -- 组队进入副本
164 164
     elseif msgID == LuaMessageIdToSever.REQ_SET_ROLE_ATT_ADD_WAY then
165 165
         RoleAttr.setRoleAttAddWay(actor, msgData) -- 设置角色属性加成方式
166 166
     elseif msgID == LuaMessageIdToSever.REQ_GET_ROLE_ATT_ADD_WAY then
167
-        RoleAttr.getRoleAttAddWay(actor)          -- 获取角色属性加成方式
167
+        RoleAttr.getRoleAttAddWay(actor) -- 获取角色属性加成方式
168 168
     elseif msgID == LuaMessageIdToSever.BRAVE_TEST_STAGE_REWARD then
169 169
         BraveTest.ReqBraveTestStageReward(actor)
170 170
     elseif msgID == LuaMessageIdToSever.GET_SECRET_REALM_MONSTER_LIST then
171
-        SecretRealm.ReqBossList(actor, msgData)                    -- 请求秘境副本中boss列表信息
171
+        SecretRealm.ReqBossList(actor, msgData) -- 请求秘境副本中boss列表信息
172 172
     elseif msgID == LuaMessageIdToSever.REQ_ITEM_SYNTHESIS then
173
-        ItemSynthesis.synthesis(actor, msgData)                    -- 装备合成
173
+        ItemSynthesis.synthesis(actor, msgData) -- 装备合成
174 174
     elseif msgID == LuaMessageIdToSever.REQ_SECRET_REALM_HURT_TOP1 then
175
-        SecretRealm.getTop1HurtInfo(actor, msgData)                -- 装备合成
175
+        SecretRealm.getTop1HurtInfo(actor, msgData) -- 装备合成
176 176
     elseif msgID == LuaMessageIdToSever.REQ_GET_UNION_ARMBAND_INFO then
177
-        UnionArmbands.sendArmbandInfo(actor)                       -- 获取ArmBand信息
177
+        UnionArmbands.sendArmbandInfo(actor) -- 获取ArmBand信息
178 178
     elseif msgID == LuaMessageIdToSever.REQ_UNION_ARMBAND_LEVEL_UP then
179
-        UnionArmbands.levelupUnionArmband(actor)                   -- 升级ArmBand
179
+        UnionArmbands.levelupUnionArmband(actor) -- 升级ArmBand
180 180
     elseif msgID == LuaMessageIdToSever.REQ_UNION_ARMBAND_STRONG then
181
-        UnionArmbands.strongArmband(actor)                         -- 强化ArmBand
181
+        UnionArmbands.strongArmband(actor) -- 强化ArmBand
182 182
     elseif msgID == LuaMessageIdToSever.REQ_TRADE_LISTING_GOODS then
183
-        Trade.worldTradeListing(actor, msgData)                    -- 交易行上架商品
183
+        Trade.worldTradeListing(actor, msgData) -- 交易行上架商品
184 184
     elseif msgID == LuaMessageIdToSever.REQ_TRADE_OFF_GOODS then
185
-        Trade.worldOffShelfGoods(actor, msgData)                   -- 交易行下架商品
185
+        Trade.worldOffShelfGoods(actor, msgData) -- 交易行下架商品
186 186
     elseif msgID == LuaMessageIdToSever.REQ_GET_TRADE_GOODS then
187
-        Trade.getTradeWorldGoods(actor, msgData)                   -- 交易行搜索商品信息
187
+        Trade.getTradeWorldGoods(actor, msgData) -- 交易行搜索商品信息
188 188
     elseif msgID == LuaMessageIdToSever.REQ_TRADE_PUBLICITY_GOODS then
189
-        Trade.getPublicityGoods(actor, msgData)                    -- 交易行获取公示区域商品
189
+        Trade.getPublicityGoods(actor, msgData) -- 交易行获取公示区域商品
190 190
     elseif msgID == LuaMessageIdToSever.REQ_TRADE_MY_PRE_GOODS then
191
-        Trade.getPreBuyGoods(actor, msgData)                       -- 交易行获取预购
191
+        Trade.getPreBuyGoods(actor, msgData) -- 交易行获取预购
192 192
     elseif msgID == LuaMessageIdToSever.REQ_TRADE_BUY_GOODS then
193
-        Trade.bugWorldGoods(actor, msgData)                        -- 交易行购买商品
193
+        Trade.bugWorldGoods(actor, msgData) -- 交易行购买商品
194 194
     elseif msgID == LuaMessageIdToSever.REQ_TRADE_RECORD then
195
-        Trade.getWorldTradeRecord(actor)                           -- 交易行交易记录
195
+        Trade.getWorldTradeRecord(actor) -- 交易行交易记录
196 196
     elseif msgID == LuaMessageIdToSever.REQ_TRADE_MY_SHELVES then
197
-        Trade.getWorldMyListing(actor)                             -- 交易行上架商品信息
197
+        Trade.getWorldMyListing(actor) -- 交易行上架商品信息
198 198
     elseif msgID == LuaMessageIdToSever.REQ_TRADE_PRE_ORDER then
199
-        Trade.preWorldGoods(actor, msgData)                        -- 交易行预购商品
199
+        Trade.preWorldGoods(actor, msgData) -- 交易行预购商品
200 200
     elseif msgID == LuaMessageIdToSever.REQ_GET_UNION_IMPEACH_INFO then
201
-        UnionChangeLeader.Impeach.sendImpeachInfo(actor)           -- 获取弹劾信息
201
+        UnionChangeLeader.Impeach.sendImpeachInfo(actor) -- 获取弹劾信息
202 202
     elseif msgID == LuaMessageIdToSever.REQ_UNION_IMPEACH_LEADER then
203
-        UnionChangeLeader.Impeach.actorImpeach(actor)              -- 弹劾盟主
203
+        UnionChangeLeader.Impeach.actorImpeach(actor) -- 弹劾盟主
204 204
     elseif msgID == LuaMessageIdToSever.REQ_UNION_IMPEACH_VOTE then
205 205
         UnionChangeLeader.Impeach.actorVoteImpeach(actor, msgData) -- 弹劾投票
206 206
     elseif msgID == LuaMessageIdToSever.TRIPLE_INCOME_PANEL then
207
-        TripleIncome.PanelInfo(actor)                              --三倍收益时间信息
207
+        TripleIncome.PanelInfo(actor) --三倍收益时间信息
208 208
     elseif msgID == LuaMessageIdToSever.TRIPLE_INCOME_RECEIVE then
209 209
         TripleIncome.ReceiveTime(actor, msgData)
210 210
     elseif msgID == LuaMessageIdToSever.TRIPLE_INCOME_RETURN then
@@ -247,33 +247,33 @@ function handlerequest(actor, uid, msgID, msgData)
247 247
         -- 请求特权BOSS信息
248 248
         PrivilegeBoss.ReqPrivilegeBossPanel(actor, msgData)
249 249
     elseif msgID == LuaMessageIdToSever.REQ_MOUNT_PUT_ON_ITEM then
250
-        Mount.putOnItem(actor, msgData)                 -- 坐骑穿戴装备
250
+        Mount.putOnItem(actor, msgData) -- 坐骑穿戴装备
251 251
     elseif msgID == LuaMessageIdToSever.REQ_MOUNT_TAKE_OFF_ITEM then
252
-        Mount.takeOffItem(actor, msgData)               -- 坐骑脱下装备
252
+        Mount.takeOffItem(actor, msgData) -- 坐骑脱下装备
253 253
     elseif msgID == LuaMessageIdToSever.REQ_MOUNT_DETAIL_INFO then
254
-        Mount.mountDetail(actor, msgData)               -- 获取坐骑详细信息
254
+        Mount.mountDetail(actor, msgData) -- 获取坐骑详细信息
255 255
     elseif msgID == LuaMessageIdToSever.REQ_OFFLINE_ON_HOOK_INFO then
256
-        onHook.getOffLineOnHookInfo(actor)              -- 请求获取离线挂机信息
256
+        onHook.getOffLineOnHookInfo(actor) -- 请求获取离线挂机信息
257 257
     elseif msgID == LuaMessageIdToSever.REQ_RECEIVE_OFFLINE_ON_HOOK_EXP then
258
-        onHook.reqReceiveOfflineOnHookExp(actor)        -- 请求领取离线挂机经验
258
+        onHook.reqReceiveOfflineOnHookExp(actor) -- 请求领取离线挂机经验
259 259
     elseif msgID == LuaMessageIdToSever.REQ_MASTER_INFO then
260
-        Master.reqMasterInfo(actor, msgData)            -- 请求:大师信息
260
+        Master.reqMasterInfo(actor, msgData) -- 请求:大师信息
261 261
     elseif msgID == LuaMessageIdToSever.REQ_OPEN_MASTER_TYPE then
262
-        Master.reqOpenMasterType(actor, msgData)        -- -- 请求:启用大师系列
262
+        Master.reqOpenMasterType(actor, msgData) -- -- 请求:启用大师系列
263 263
     elseif msgID == LuaMessageIdToSever.REQ_EXCHANGE_MASTER_EXP then
264
-        Master.reqExchangeMasterExp(actor, msgData)     -- 请求:兑换大师经验
264
+        Master.reqExchangeMasterExp(actor, msgData) -- 请求:兑换大师经验
265 265
     elseif msgID == LuaMessageIdToSever.REQ_RESET_MASTER then
266
-        Master.reqResetMaster(actor, msgData)           -- 请求:重置大师天赋
266
+        Master.reqResetMaster(actor, msgData) -- 请求:重置大师天赋
267 267
     elseif msgID == LuaMessageIdToSever.REQ_UPGRADE_MASTER_TALENT then
268
-        Master.reqUpgradeMasterTalent(actor, msgData)   -- 请求:升级大师天赋
268
+        Master.reqUpgradeMasterTalent(actor, msgData) -- 请求:升级大师天赋
269 269
     elseif msgID == LuaMessageIdToSever.REQ_ENTER_WAR_ALLIANCE then
270 270
         WarAlliance.ReqEnterWarAlliance(actor, msgData) -- 请求进入战盟boss副本
271 271
     elseif msgID == LuaMessageIdToSever.REQ_GET_MONTHCARD_INFO then
272
-        MonthCard.getmonthcardinfo(actor)               -- 请求获取月卡信息
272
+        MonthCard.getmonthcardinfo(actor) -- 请求获取月卡信息
273 273
     elseif msgID == LuaMessageIdToSever.REQ_RECEIVE_MONTHCARD_THREETIME then
274
-        MonthCard.receivemonthcardthreetime(actor)      -- 请求领取月卡三倍收益时间
274
+        MonthCard.receivemonthcardthreetime(actor) -- 请求领取月卡三倍收益时间
275 275
     elseif msgID == LuaMessageIdToSever.REQ_UP_SHELF_MONTHCARD then
276
-        MonthCard.upshelfmonthcard(actor, msgData)      -- 请求上架月卡
276
+        MonthCard.upshelfmonthcard(actor, msgData) -- 请求上架月卡
277 277
     elseif msgID == LuaMessageIdToSever.REQ_GET_MONTH_PRIVILEGE_DATA then
278 278
         PrivilegeMonth.sendPrivilegeData(actor)
279 279
     elseif msgID == LuaMessageIdToSever.REQ_CHECK_MONTH_PRIVILEGE_IS_OPEN then
@@ -337,35 +337,35 @@ function handlerequest(actor, uid, msgID, msgData)
337 337
     elseif msgID == LuaMessageIdToSever.REQ_WOLF_SOUL_SUMMON then
338 338
         WolfSoul.ReqSummonWarder(actor, msgData)
339 339
     elseif msgID == LuaMessageIdToSever.REQ_STALL_POSITION then
340
-        Stall.stallPosition(actor, msgData)                    -- 获取摆摊信息
340
+        Stall.stallPosition(actor, msgData) -- 获取摆摊信息
341 341
     elseif msgID == LuaMessageIdToSever.REQ_START_STALL then
342
-        Stall.startStall(actor, msgData)                       -- 开始摆摊
342
+        Stall.startStall(actor, msgData) -- 开始摆摊
343 343
     elseif msgID == LuaMessageIdToSever.REQ_END_STALL then
344
-        Stall.endStall(actor, msgData)                         -- 结束摆摊
344
+        Stall.endStall(actor, msgData) -- 结束摆摊
345 345
     elseif msgID == LuaMessageIdToSever.REQ_STALL_GOODS then
346
-        Stall.getStallGoods(actor, msgData)                    -- 获取摊位商品信息
346
+        Stall.getStallGoods(actor, msgData) -- 获取摊位商品信息
347 347
     elseif msgID == LuaMessageIdToSever.REQ_DELETE_BAG_ITEM then
348
-        Stall.deleteItem(actor, msgData)                       -- 减少背包内道具的数量
348
+        Stall.deleteItem(actor, msgData) -- 减少背包内道具的数量
349 349
     elseif msgID == LuaMessageIdToSever.REQ_SET_PATROL then
350
-        onHook.setOfflineState(actor, msgData)                 -- 设置离线挂机状态
350
+        onHook.setOfflineState(actor, msgData) -- 设置离线挂机状态
351 351
     elseif msgID == LuaMessageIdToSever.REQ_ITEM_RECOVERY then
352
-        ItemRecycling.recovery(actor, msgData)                 -- 装备回收
352
+        ItemRecycling.recovery(actor, msgData) -- 装备回收
353 353
     elseif msgID == LuaMessageIdToSever.REQ_CANCEL_FSPREVIEW then
354 354
         FaceShootPreview.ReqCancelTodayPreview(actor, msgData) -- 拍照预告取消今日提醒
355 355
     elseif msgID == LuaMessageIdToSever.REQ_RECHARGE then
356
-        Recharge.request(actor, msgData)                       -- 充值请求
356
+        Recharge.request(actor, msgData) -- 充值请求
357 357
     elseif msgID == LuaMessageIdToSever.REQ_CHANGE_ROLE_NAME then
358
-        Player.changeRoleName(actor, msgData)                  -- 修改角色名字
358
+        Player.changeRoleName(actor, msgData) -- 修改角色名字
359 359
     elseif msgID == LuaMessageIdToSever.REQ_CHANGE_UNION_NAME then
360
-        Union.changeUnionName(actor, msgData)                  -- 修改战盟名字
360
+        Union.changeUnionName(actor, msgData) -- 修改战盟名字
361 361
     elseif msgID == LuaMessageIdToSever.REQ_ROLE_IS_FIRST_CHANGE_NAME then
362
-        Player.getRoleChangeNameInfo(actor)                    -- 获取角色是否为首次改名
362
+        Player.getRoleChangeNameInfo(actor) -- 获取角色是否为首次改名
363 363
     elseif msgID == LuaMessageIdToSever.REQ_RECHARGE_TRADE_INFO then
364
-        Trade.sendRecharge(actor)                              -- 发送月卡充值信息
364
+        Trade.sendRecharge(actor) -- 发送月卡充值信息
365 365
     elseif msgID == LuaMessageIdToSever.REQ_COMBO_SKILL_UP then
366
-        Skill.ComboSkillUp(actor)                              -- 升级连击技能
366
+        Skill.ComboSkillUp(actor) -- 升级连击技能
367 367
     elseif msgID == LuaMessageIdToSever.REQ_TRANSFER_CARD_PART_INFO then
368
-        TransferCard.ReqGetHoleInfo(actor, msgData)            --变身卡牌请求部位信息
368
+        TransferCard.ReqGetHoleInfo(actor, msgData) --变身卡牌请求部位信息
369 369
     elseif msgID == LuaMessageIdToSever.REQ_TRANSFER_CARD_UNLOCK then
370 370
         local part = msgData[1]
371 371
         local idx = msgData[2]
@@ -569,6 +569,10 @@ function handlerequest(actor, uid, msgID, msgData)
569 569
         PlayerCareerTransfer.careerTransfer(actor, msgData)
570 570
     elseif msgID == LuaMessageIdToSever.REQ_WEEKEN_ACTIVE_INFO then
571 571
         WeekActives.openSubActive(actor, msgData)
572
+    elseif msgID == LuaMessageIdToSever.REQ_ACT_FIRST_RECHARGE_INFO then
573
+        ActFirstRecharge.getInfo(actor, msgData)
574
+    elseif msgID == LuaMessageIdToSever.REQ_ACT_FIRST_RECHARGE_REWARD then
575
+        ActFirstRecharge.gainReward(actor, msgData)
572 576
     else
573 577
         --请放到最后,其余消息在上面追加
574 578
         error(actor, "收到无法处理的消息", "玩家", actor, "消息ID", msgID, "params", msgData)
@@ -640,18 +644,15 @@ function logout(actor)
640 644
 end
641 645
 
642 646
 function run(actor)
643
-
644 647
 end
645 648
 
646 649
 function walk(actor)
647 650
 end
648 651
 
649 652
 function jump(actor)
650
-
651 653
 end
652 654
 
653 655
 function removeskillevent(actor, removeSkillList)
654
-
655 656
 end
656 657
 
657 658
 function releaseskill(actor, skillid, skilllevel, targetlist)
@@ -663,7 +664,7 @@ function releaseskill(actor, skillid, skilllevel, targetlist)
663 664
     --    -- finalTargetList: 伤害目标结果列表,包含了未产生伤害的对象,也就是被powersource=0过滤掉的目标
664 665
     --    -- targetHurt: 总伤害值
665 666
     --    -- targetTotal: 受到伤害目标的数量,等于size(targetlist)
666
-    Skill.releaseSkill(actor,skillid)
667
+    Skill.releaseSkill(actor, skillid)
667 668
 end
668 669
 
669 670
 function triggertaskrefresh(actor, type, param)
@@ -771,7 +772,7 @@ end
771 772
 ---@param activityId number 活动id
772 773
 ---@param monsterLevel number 怪物等级
773 774
 function killmon(actor, monsterId, monsterCfgId, monsterName, pointX, pointY, activityId, monsterLevel, mongenCfgId)
774
-    gameDebug.debug(LogManager.KillMonster,actor,monsterCfgId)
775
+    gameDebug.debug(LogManager.KillMonster, actor, monsterCfgId)
775 776
     pk.killmonsterpkvaluehandle(actor, monsterCfgId, monsterLevel) -- 击杀怪物PK值处理
776 777
     UnionTask.killMonsterEvent(actor, monsterCfgId)
777 778
 end
@@ -782,13 +783,13 @@ end
782 783
 ---@param count number 使用数量
783 784
 function useitemtrigger(actor, itemConfigId, count)
784 785
     gameDebug.debug(CareerChange.useItemChangeCareer, actor, itemConfigId)
785
-    pk.exonerationcharmpkvaluehnadle(actor, itemConfigId, count)           -- 免罪符使用减少PK值处理
786
+    pk.exonerationcharmpkvaluehnadle(actor, itemConfigId, count) -- 免罪符使用减少PK值处理
786 787
     --PrivilegeCardScript.setPrivilegeCardInfos(actor, itemConfigId, count) -- 特权卡使用后处理
787
-    FruitScript.handleUseFruit(actor, itemConfigId, count)                 -- 果实使用后处理
788
-    MonthCard.usemonthcard(actor, itemConfigId, count)                     -- 使用月卡后处理
789
-    RandomChest.generateChestItem(actor, itemConfigId, count)              -- 随机宝箱生成道具
790
-    ExpBoost.useExperienceBoostItem(actor, itemConfigId, count)            -- 经验加成道具处理
791
-    PrivilegeMonth.usePrivilegeCard(actor, itemConfigId, count)            -- 特权卡使用处理
788
+    FruitScript.handleUseFruit(actor, itemConfigId, count) -- 果实使用后处理
789
+    MonthCard.usemonthcard(actor, itemConfigId, count) -- 使用月卡后处理
790
+    RandomChest.generateChestItem(actor, itemConfigId, count) -- 随机宝箱生成道具
791
+    ExpBoost.useExperienceBoostItem(actor, itemConfigId, count) -- 经验加成道具处理
792
+    PrivilegeMonth.usePrivilegeCard(actor, itemConfigId, count) -- 特权卡使用处理
792 793
     AngelMajorEquipment.useExperienceBoostItem(actor, itemConfigId, count) -- 大天使经验药水使用处理
793 794
 end
794 795
 
@@ -808,7 +809,7 @@ end
808 809
 ---@param actor any 玩家对象
809 810
 ---@param targetPlayer any 进入视野的玩家对象
810 811
 function playerenterview(actor, targetPlayer)
811
-    pk.sendenterviewpkvalue(actor, targetPlayer)         -- 进入视野发送PK值
812
+    pk.sendenterviewpkvalue(actor, targetPlayer) -- 进入视野发送PK值
812 813
     DuplicateCommon.PlayerEnterView(actor, targetPlayer) -- 副本中玩家进入视野
813 814
     EquipAndAppear.playerequipview(actor, targetPlayer)
814 815
     CrossMap.EnterView(actor, targetPlayer)
@@ -834,7 +835,7 @@ function takeonequip(actor, pos, oldItemId, itemId, itemCfgId)
834 835
     EquipAndAppear.checkCanTransfer(actor, oldItemId, itemId)
835 836
     EquipMaster.triggerEquipMaster(actor)
836 837
     EquipAndAppear.updateluaextattr(actor)
837
-    EquipGem.schemeEffectByBoolean(actor, { pos }, true)
838
+    EquipGem.schemeEffectByBoolean(actor, {pos}, true)
838 839
     -- EquipAndAppear.playerequipstrength(actor, 0) --发送玩家装备强化信息
839 840
 
840 841
     -- 刷新装备任务进度
@@ -851,7 +852,7 @@ function takeoffequip(actor, pos, itemId, itemCfgId)
851 852
     EquipGuard.takeOffGuardEquip(actor, itemCfgId)
852 853
     EquipMaster.triggerEquipMaster(actor)
853 854
     EquipAndAppear.updateluaextattr(actor)
854
-    EquipGem.schemeEffectByBoolean(actor, { pos }, false)
855
+    EquipGem.schemeEffectByBoolean(actor, {pos}, false)
855 856
     -- EquipAndAppear.playerequipstrength(actor, 0) --发送玩家装备强化信息
856 857
 
857 858
     -- 刷新装备任务进度
@@ -863,7 +864,7 @@ function takeoffequip(actor, pos, itemId, itemCfgId)
863 864
 end
864 865
 
865 866
 function weaponchange(actor, oldIndex, newIndex, itemId)
866
-    local res = { oldIndex = oldIndex, newIndex = newIndex, itemId = itemId }
867
+    local res = {oldIndex = oldIndex, newIndex = newIndex, itemId = itemId}
867 868
     sendluamsg(actor, LuaMessageIdToClient.RES_WEAPON_CHANGE_AUTO, res)
868 869
 end
869 870
 
@@ -898,7 +899,7 @@ function itemchange(actor, ids, cfgId, oldCount, newCount, change)
898 899
     -- 任务进度刷新
899 900
     if tonumber(oldCount) < tonumber(newCount) then
900 901
         local count = tonumber(newCount) - tonumber(oldCount)
901
-        TaskHandler.TriggerTaskGoal(actor, TaskTargetType.RE_GET_ITEM, { cfgId, count })
902
+        TaskHandler.TriggerTaskGoal(actor, TaskTargetType.RE_GET_ITEM, {cfgId, count})
902 903
     end
903 904
     AutoBuyPotionScript.coinChange(actor, cfgId)
904 905
 end
@@ -1281,7 +1282,7 @@ end
1281 1282
 function revival(actor, type)
1282 1283
     RedFortress.PlayerRelive(actor)
1283 1284
     PrivilegeBoss.playerRelive(actor)
1284
-    WarAlliance.playerRelive(actor,type)
1285
+    WarAlliance.playerRelive(actor, type)
1285 1286
     RolandSeige.PlayerRelive(actor)
1286 1287
 end
1287 1288
 
@@ -1667,9 +1668,7 @@ function outversionchatevent(actor, param)
1667 1668
 end
1668 1669
 
1669 1670
 --- 技能升级事件
1670
-function levelupskillevent(actor,skillInfo)
1671
+function levelupskillevent(actor, skillInfo)
1671 1672
     info(skillInfo)
1672
-    Skill.levelUp(actor,skillInfo)
1673
+    Skill.levelUp(actor, skillInfo)
1673 1674
 end
1674
-
1675
-