From 54531eb1ab1a76b508129e21ec5b7c32a1c7d0dc Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 10 一月 2019 17:43:10 +0800
Subject: [PATCH] 5722 【后端】【1.5】跨服BOSS开发(跨服boss地图支持挂机经验)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
index c5312cf..5590d72 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -1575,7 +1575,7 @@
         GameWorld.DebugLog("跨服服务器不允许该操作!")
         return
     
-    if GetCrossRealmState(curPlayer):
+    if GetCrossMapID(curPlayer):
         GameWorld.ErrLog("玩家当前为跨服状态,不允许再次请求进入跨服!", curPlayer.GetPlayerID())
         return
     
@@ -5717,11 +5717,10 @@
 def SetFBFuncLineID(curPlayer, funcLineID): return curPlayer.SetExAttr3(funcLineID, False, False)
 def GetFBFuncLineID(curPlayer): return curPlayer.GetExAttr3()
 
-## 跨服状态: 0-非跨服状态,1-跨服状态
-def GetCrossRealmState(curPlayer): return curPlayer.GetExAttr5()
-def SetCrossRealmState(curPlayer, value):
-    NomalDictSetProperty(curPlayer, ChConfig.Def_PlayerKey_CrossMapID, value)
-    curPlayer.SetExAttr5(1 if value else 0, False, True)
+## 跨服状态所在地图ID: 0-非跨服状态,非0-跨服状态对应的地图ID
+def GetCrossMapID(curPlayer): return curPlayer.GetExAttr5()
+def SetCrossMapID(curPlayer, value):
+    curPlayer.SetExAttr5(value, False, True)
     return
 
 ## 铜钱点, 支持铜钱超20亿

--
Gitblit v1.8.0