| | |
| | | SetMapServerPlayerAttrValue(curPlayer, "SetVsRoomId", roomID)
|
| | | return
|
| | |
|
| | | ## 跨服状态: 0-非跨服状态,1-跨服状态
|
| | | def GetCrossRealmState(curPlayer): return curPlayer.GetExAttr5()
|
| | | def SetCrossRealmState(curPlayer, value):
|
| | | ''' 设置玩家跨服状态
|
| | | @param isExitCrossRealm: 非跨服状态时是否通知前端退出跨服服务器
|
| | | '''
|
| | | curPlayer.SetExAttr5(1 if value else 0)
|
| | | ## 跨服状态所在地图ID: 0-非跨服状态,非0-跨服状态对应的地图ID
|
| | | def GetCrossMapID(curPlayer): return curPlayer.GetExAttr5()
|
| | | def SetCrossMapID(curPlayer, value):
|
| | | curPlayer.SetExAttr5(value)
|
| | | SetMapServerPlayerAttrValue(curPlayer, "SetExAttr5", value)
|
| | | return
|
| | |
|