From 3689771a156b44781aa3904e7ad95580f7e561c7 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期六, 20 四月 2019 14:19:38 +0800 Subject: [PATCH] 6459 【后端】【2.0】缥缈仙域开发单(进入跨服副本判断及坐标逻辑优化,仙草园进入支持扣除门票) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_CrossRealmReg.py | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_CrossRealmReg.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_CrossRealmReg.py index 5565fdd..3797090 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_CrossRealmReg.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_CrossRealmReg.py @@ -23,6 +23,8 @@ import CrossPlayerData import NetPackCommon import ChConfig +import FBCommon +import FBLogic #------------------------------------------------------------------------------ @@ -80,6 +82,21 @@ 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) -- Gitblit v1.8.0