From 070a0dfddf2d5f85ac348a8d37a606bdbcd0ea0a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 05 十一月 2025 16:45:46 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(完善技能目标选择逻辑;支持软控魅惑、混乱、嘲讽,及反击复仇目标,buff状态细分目标,属性细分目标等优先级处理;修复反击逻辑bug;)
---
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