From 718f530accc19969f39d1a8ce199fe947508e29a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 16 十月 2025 19:19:09 +0800
Subject: [PATCH] 237 【福利内容】每日任务/每周任务/章节奖励-服务端(每日任务、每周奖励;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddActivity.py |   26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddActivity.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddActivity.py
index a95d716..58c8d05 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddActivity.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddActivity.py
@@ -17,20 +17,24 @@
 
 import GameWorld
 import PlayerActivity
+import ChConfig
 
-#逻辑实现
-## GM命令执行入口
-#  @param curPlayer 当前玩家
-#  @param msgList 参数列表 [npcID]
-#  @return None
-#  @remarks 函数详细说明.
 def OnExec(curPlayer, msgList):
-    
     if not msgList:
-        GameWorld.DebugAnswer(curPlayer, "AddActivity 增加活跃度 是否可溢出")
+        GameWorld.DebugAnswer(curPlayer, "增加活跃: AddActivity 活跃度")
+        GameWorld.DebugAnswer(curPlayer, "每日任务: AddActivity t 任务类型 进度 [条件 ...]")
         return
     addValue = msgList[0]
-    isLVUp = msgList[1] if len(msgList) > 1 else 0
-    PlayerActivity.DoAddActivity(curPlayer, addValue, isLVUp=isLVUp)
+    if addValue == "t":
+        taskType = msgList[1] if len(msgList) > 1 else 0
+        taskValue = msgList[2] if len(msgList) > 2 else 0
+        conds = msgList[3:]
+        if taskType not in ChConfig.DailyTaskList:
+            return
+        PlayerActivity.SetDailyTaskValue(curPlayer, taskType, conds, taskValue)
+        PlayerActivity.SyncDailyTaskInfo(curPlayer, taskType, conds)
+        GameWorld.DebugAnswer(curPlayer, "设置每日任务进度:%s, TypeC=%s,%s" % (taskValue, taskType, conds))
+        return
+    updValue = PlayerActivity.DoAddActivity(curPlayer, addValue)
+    GameWorld.DebugAnswer(curPlayer, "增加活跃:%s, 当前活跃:%s" % (addValue, updValue))
     return
-

--
Gitblit v1.8.0