From 9d5ec7599f3abe0cebb76ce1df3c3b8c4e0aa51e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 10 二月 2026 11:40:15 +0800
Subject: [PATCH] 66 【公会】基础主体-服务端(跨服聊天;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/test_OnHour.py | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/test_OnHour.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/test_OnHour.py
index edcf194..88715cb 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/test_OnHour.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/test_OnHour.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("GMOnHour")
+ return
def OnExec(curPlayer, gmList):
__DoExec(GameWorld.GetGameWorld().GetTick())
-
- # 暂时同步GameServer,之后可去除
- return True
+ return
def __DoExec(tick):
playerManager = GameWorld.GetPlayerManager()
--
Gitblit v1.8.0