From 818774d25af38005782d7d46914a229e725ea8c7 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 08 十一月 2019 16:50:54 +0800
Subject: [PATCH] 8333 【主干】【后端】boss之家死亡在复活点复活,不退出副本(死亡不退出副本,支持地图内复活,支持地图内传送到其他副本)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_BossHome.py |   25 ++++++++++++++++++-------
 1 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_BossHome.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_BossHome.py
index b2353fc..c583281 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_BossHome.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_BossHome.py
@@ -113,7 +113,7 @@
 # @param tick 时间戳
 # @return 无意义
 def DoExitFB(curPlayer, tick):
- 
+    
     return
 
 ##玩家主动离开副本.
@@ -133,7 +133,17 @@
 #  @param None
 #  @return 是否副本复活
 def OnPlayerReborn():
-    return False
+    return True
+
+## 重置副本复活玩家坐标点
+# @param None
+# @return 无意义
+def OnResetFBRebornPlacePos(curPlayer, rebornPlace, tick):
+    lineID = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ReqFBFuncLine)
+    ipyEnterPosInfo = FBCommon.GetFBLineEnterPosInfo(ChConfig.Def_FBMapID_BossHome, lineID)
+    posX, posY = ipyEnterPosInfo[:2]
+    curPlayer.ResetPos(posX, posY)
+    return
 
 ## 询问玩家是否切换同个功能地图的不同场景地图
 def CanChangeSameDataMapFB(curPlayer, mapID, lineID):
@@ -171,8 +181,9 @@
 # @return 返回值无意义
 # @remarks 玩家主动离开副本.
 def DoPlayerDead(curPlayer):
-    FBCommon.Notify_FB_Over(curPlayer, {FBCommon.Over_isPass:0})
-    lineID = PlayerControl.GetFBFuncLineID(curPlayer) 
-    leaveTime = int(FBCommon.GetFBLineStepTime(ChConfig.Def_FBMapID_BossHome, lineID))
-    curPlayer.Sync_TimeTick(IPY_GameWorld.tttLeaveMap, 0, leaveTime*1000, True)
-    return
\ No newline at end of file
+    #FBCommon.Notify_FB_Over(curPlayer, {FBCommon.Over_isPass:0})
+    #lineID = PlayerControl.GetFBFuncLineID(curPlayer) 
+    #leaveTime = int(FBCommon.GetFBLineStepTime(ChConfig.Def_FBMapID_BossHome, lineID))
+    #curPlayer.Sync_TimeTick(IPY_GameWorld.tttLeaveMap, 0, leaveTime*1000, True)
+    return
+

--
Gitblit v1.8.0