From 11c9a3b5846401523e4dafc17f2a074a712730da Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 11 三月 2026 18:27:10 +0800
Subject: [PATCH] 526 【挑战】PVP群英榜-后端(本服群英榜;优化机器人表支持按功能加载不同的机器人;)

---
 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