From 9bdcc6b36e432272bd79d43b643e3614e73ef0f3 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 14 一月 2019 16:12:44 +0800
Subject: [PATCH] 5722 【后端】【1.5】跨服BOSS开发(本服异兽之地Boss、跨服蓬莱仙境Boss 次数共享支持)

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py
index c9fecb5..821d4e8 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py
@@ -229,6 +229,9 @@
     return 
 def GetLeaveFamilyTime(curPlayer):return curPlayer.GetExAttr12()
 
+## 玩家所属服务器组ID
+def GetPlayerServerGroupID(curPlayer): return curPlayer.GetExAttr13()
+
 ## 是否脱机挂机状态
 def GetIsTJG(curPlayer):
     if curPlayer.GetDictByKey(ChConfig.Def_OnlineType):
@@ -293,12 +296,9 @@
     SetMapServerPlayerAttrValue(curPlayer, "SetVsRoomId", roomID)
     return
 
-## 跨服状态: 0-非跨服状态,1-跨服状态
-def GetCrossRealmState(curPlayer): return curPlayer.GetExAttr5()
-def SetCrossRealmState(curPlayer, value):
-    ''' 设置玩家跨服状态
-    @param isExitCrossRealm: 非跨服状态时是否通知前端退出跨服服务器
-    '''
+## 跨服状态所在地图ID: 0-非跨服状态,非0-跨服状态对应的地图ID
+def GetCrossMapID(curPlayer): return curPlayer.GetExAttr5()
+def SetCrossMapID(curPlayer, value):
     curPlayer.SetExAttr5(value)
     SetMapServerPlayerAttrValue(curPlayer, "SetExAttr5", value)
     return

--
Gitblit v1.8.0