From 5fbb5f807ca75fa69fba14ad2563892f08b4588d Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 10 二月 2026 18:28:22 +0800
Subject: [PATCH] 66 【公会】基础主体-服务端(修复改名没有同步更新名字映射关系bug;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/test_OnWeek.py | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/test_OnWeek.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/test_OnWeek.py
index c37ae06..fe51eba 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/test_OnWeek.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/test_OnWeek.py
@@ -18,12 +18,20 @@
import GameWorld
import PlayerEventCounter
import GameWorldEvent
+import CrossMgr
+
+def GetGMServerIDList(curPlayer):
+ ## 获取命令额外发送到其他服务器,如跨服
+ centerID = CrossMgr.GetSSServerMgr().GetCrossCenterID()
+ return [centerID] if centerID else []
+
+def OnExecCross(crossPlayer, gmList):
+ GameWorldEvent.OnGM_CrossCenterEvent("GMOnWeek")
+ return
def OnExec(curPlayer, gmList):
__DoExec(GameWorld.GetGameWorld().GetTick())
-
- # 暂时同步GameServer,之后可去除
- return True
+ return
def __DoExec(tick):
playerManager = GameWorld.GetPlayerManager()
--
Gitblit v1.8.0