From 27bc9586f194150f48f914b937c5a98f73a6650e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 09 一月 2019 19:32:20 +0800
Subject: [PATCH] 5722 【后端】【1.5】跨服BOSS开发(支持拾取物品、货币、好物品记录)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
index 118bec5..902e680 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -3786,6 +3786,10 @@
         GameWorld.ErrLog("ChangeLine -> 封包错误, 无此线路 = %s" % (changLineID), curPlayer.GetID())
         return
     
+    if GameWorld.IsCrossServer():
+        # 跨服服务器无法切线
+        return
+    
     mapID = curPlayer.GetMapID()
     
     activityLineID = 0 # 活动线, 默认1线
@@ -4688,6 +4692,11 @@
     GameWorld.DebugLog("WorldTransPort packTransportType=%s,mapID=%s,lineID=%s,exData1=%s" 
                        % (packTransportType, mapID, lineID, exData1), playerID)
     lineID = -1 if lineID == 255 else lineID
+    if GameWorld.IsCrossServer():
+        if curPlayer.GetMapID() != mapID:
+            return
+        lineID = -1 # 跨服默认只能本线
+        
     #世界传送封包允许类型(世界,大地图,任务)
     if packTransportType not in ChConfig.Def_PackType_TransportType.keys():
         GameWorld.ErrLog('WorldTransPort packTransportType = %s, NoFind' % (packTransportType), playerID)

--
Gitblit v1.8.0