From faf986a85304e980f9eb621b4e788fc942441d7f Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 15 一月 2019 22:29:40 +0800 Subject: [PATCH] 5722 【后端】【1.5】跨服BOSS开发(增加跨服地图中进入副本限制提示、组队相关操作提示、传送限制提示) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 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 5590d72..dbfe3f7 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py @@ -517,6 +517,10 @@ if GameWorld.GetMap().GetMapID() not in IpyGameDataPY.GetFuncEvalCfg('DungeonDeliver', 1): NotifyCode(curPlayer, "Carry_lhs_844170") return False + + if not GameWorld.IsCrossServer() and GetCrossMapID(curPlayer): + NotifyCode(curPlayer, "CrossMap10") + return False return True @@ -1584,9 +1588,11 @@ return if curPlayer.GetHP() <= 0: + NotifyCode(curPlayer, "CrossMap4") return if PlayerCrossRealmPK.GetIsCrossPKMatching(curPlayer): + NotifyCode(curPlayer, "CrossMap3") return GY_Query_CrossRealmReg.RegisterEnterCrossServer(curPlayer, mapID) @@ -1748,6 +1754,12 @@ NotifyCode(curPlayer, "CrossMatching8", [mapID]) return ShareDefine.EntFBAskRet_CrossPKMatching + ## 跨服地图中 + if GetCrossMapID(curPlayer) and mapID not in ChConfig.Def_CrossMapIDList: + if isNotify: + NotifyCode(curPlayer, "CrossMap5", [mapID]) + return ShareDefine.EntFBAskRet_InCrossMap + #=============================================================================================== # # 这里不做状态限制,由前端处理,因为策划要根据界面来处理,同一传送功能有可能在不同界面 # # PK状态检查 -- Gitblit v1.8.0