From 8fdbcd8a336364f9d31215a35f935ef40a685ebe Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 05 三月 2025 14:55:02 +0800
Subject: [PATCH] 10413 【英文】【BT】【砍树】活动开服天新方案(支持以格式:K+开服天的配置方案,如K15代表开服第15天)
---
ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_Face.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_Face.py b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_Face.py
index e41df48..8c45be3 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_Face.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_Face.py
@@ -30,6 +30,7 @@
playerFind = gmCmdDict.get(GMCommon.Def_GMKey_PlayerFind, '')
opID = GameWorld.ToIntDef(gmCmdDict.get('opID', ''), 0)
expireTime = GameWorld.ToIntDef(gmCmdDict.get('expireTime', ''), None)
+ setValue = GameWorld.ToIntDef(gmCmdDict.get('setValue', ''), 0)
faceType = gmCmdDict.get('faceType', '')
opType = gmCmdDict.get('opType', '')
@@ -53,23 +54,26 @@
return
if not tagPlayer:
- #GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_PlayerOfLine)
+ if opType == "query":
+ GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_PlayerOfLine)
+ return
# 玩家不在线,先记录,等玩家上线后处理
GMShell.AddOfflinePlayerGMTInfo(orderId, queryType, playerFind, gmCmdDict)
return
isOnlineGMT = True # 是否是在线接收的GM工具命令
- GMCommon.GMTool_MapServer_Query(queryType, orderId, playerFind, gmCmdDict, "GMTFace", [orderId, isOnlineGMT, faceType, opID, expireTime, opType], False)
+ GMCommon.GMTool_MapServer_Query(queryType, orderId, playerFind, gmCmdDict, "GMTFace", [orderId, isOnlineGMT, faceType, opID, expireTime, opType, setValue], False)
return
def OnOfflineGMTInfo(curPlayer, tagMapID, gmCmdDict):
orderId = gmCmdDict.get('orderId', '')
opID = GameWorld.ToIntDef(gmCmdDict.get('opID', ''), 0)
expireTime = GameWorld.ToIntDef(gmCmdDict.get('expireTime', ''), None)
+ setValue = GameWorld.ToIntDef(gmCmdDict.get('setValue', ''), 0)
faceType = gmCmdDict.get('faceType', '')
opType = gmCmdDict.get('opType', '')
isOnlineGMT = False # 是否是在线接收的GM工具命令
- cmdStr = str([orderId, isOnlineGMT, faceType, opID, expireTime, opType])
+ cmdStr = str([orderId, isOnlineGMT, faceType, opID, expireTime, opType, setValue])
GameWorld.GetPlayerManager().MapServer_QueryPlayer(0, 0, curPlayer.GetPlayerID(), tagMapID, 'GMTFace',
cmdStr, len(cmdStr), curPlayer.GetRouteServerIndex())
return
--
Gitblit v1.8.0