From 585f6a26f7059bf0d2da81f716ae6be772ecfb0b Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 17 三月 2026 11:22:37 +0800
Subject: [PATCH] 404 新增 改名卡(非首次改名时优先消耗改名卡,不足时消耗原配置货币消耗;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py
index 5139b89..121cb33 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py
@@ -231,6 +231,11 @@
     GameWorld.Log("OnSSGMCMD cmdStr=%s,fromServerID=%s" % (cmdStr, fromServerID), playerID)
     crossPlayer = CrossPlayer.GetCrossPlayerMgr().FindCrossPlayer(playerID)
     if not crossPlayer:
+        if GameWorld.IsCrossCenter():
+            GameWorld.ErrLog("跨服中心找不到crossPlayer!直接注册", playerID)
+            crossPlayer = CrossPlayer.GetCrossPlayerMgr().RegistPlayer(playerID) # 跨服中心不存在该玩家,直接注册
+            crossPlayer.SetMainServerID(fromServerID)
+    if not crossPlayer:
         GameWorld.ErrLog("本服找不到crossPlayer!", playerID)
         return
     cmdList = eval(cmdStr)

--
Gitblit v1.8.0