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/GameWorldLogic/FBLogic.py | 29 ++++++++++++++++++++++++++--- 1 files changed, 26 insertions(+), 3 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py index 1689677..8706cdf 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py @@ -1555,9 +1555,10 @@ callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "OnGetFBEnterPos")) if callFunc == None: - return - - posInfo = callFunc(curPlayer, mapID, lineId, ipyEnterPosInfo, tick) + posInfo = ipyEnterPosInfo + else: + posInfo = callFunc(curPlayer, mapID, lineId, ipyEnterPosInfo, tick) + if not posInfo: return enterX, enterY = posInfo[:2] @@ -2177,6 +2178,17 @@ return callFunc(curPlayer, mapID, lineID) +## 进入跨服副本注册数据前逻辑 +## @return: 是否可以注册前往跨服副本,次函数中可以写一些扣除消耗逻辑等 +def OnRegEnterCrossFB(curPlayer, mapID, lineID): + do_FBLogic_ID = __GetFBLogic_MapID(mapID) + + callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "OnRegEnterCrossFB")) + + if callFunc == None: + return True + + return callFunc(curPlayer, mapID, lineID) ## 结束跨服副本 def OnEndCrossFB(curPlayer, mapID, lineID, exData): @@ -2197,6 +2209,17 @@ return return callFunc() +## 是否需要做进入副本通用检查条件逻辑,默认需要检查 +def OnNeedCheckCanEnterFBComm(curPlayer, mapID, lineID): + do_FBLogic_ID = __GetFBLogic_MapID(mapID) + + callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "OnNeedCheckCanEnterFBComm")) + + if callFunc == None: + return True + + return callFunc(curPlayer, mapID, lineID) + def OnPlayerLVUp(curPlayer): ## 玩家升级 do_FBLogic_ID = __GetFBLogic_MapID(GameWorld.GetMap().GetMapID()) -- Gitblit v1.8.0