|  |  |  | 
|---|
|  |  |  | import CrossPlayerData | 
|---|
|  |  |  | import NetPackCommon | 
|---|
|  |  |  | import ChConfig | 
|---|
|  |  |  | import FBCommon | 
|---|
|  |  |  | import FBLogic | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #------------------------------------------------------------------------------ | 
|---|
|  |  |  | 
|---|
|  |  |  | if not mapID: | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if not posX and not posY: | 
|---|
|  |  |  | fbLineIpyData = FBCommon.GetFBLineIpyData(mapID, lineID) | 
|---|
|  |  |  | if fbLineIpyData: | 
|---|
|  |  |  | tick = GameWorld.GetGameWorld().GetTick() | 
|---|
|  |  |  | ipyEnterPosInfo = FBCommon.GetFBLineEnterPosInfo(mapID, lineID, fbLineIpyData) | 
|---|
|  |  |  | retPos = FBLogic.OnGetFBEnterPos(curPlayer, mapID, lineID, ipyEnterPosInfo, tick) | 
|---|
|  |  |  | if not retPos: | 
|---|
|  |  |  | GameWorld.ErrLog("未找到进入副本坐标!mapID=%s,lineID=%s" % (mapID, lineID)) | 
|---|
|  |  |  | return | 
|---|
|  |  |  | posX, posY = retPos | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if not FBLogic.OnRegEnterCrossFB(curPlayer, mapID, lineID): | 
|---|
|  |  |  | GameWorld.ErrLog("OnRegEnterCrossFB 进入跨服副本注册失败,进入条件不足!无法注册! mapID=%s,lineID=%s" % (mapID, lineID), playerID) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #跨服前更新自己所属服务器组ID | 
|---|
|  |  |  | PlayerControl.UpdPlayerServerGroupID(curPlayer) | 
|---|
|  |  |  |  | 
|---|