From 4df232daf6817c19f410e3187b7be7c33c74d9b0 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期二, 04 六月 2019 11:31:31 +0800
Subject: [PATCH] 6501 修改任务类型

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 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 876a00b..f761133 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBLogic.py
@@ -272,8 +272,8 @@
 #  @return None
 #  @remarks 函数详细说明.
 def DoFB_Player_KillNPC(curPlayer , curNPC , tick):
-    mapID = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_ClientCustomSceneMapID)
-    lineID = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_ClientCustomSceneLineID)
+    mapID = PlayerControl.GetCustomMapID(curPlayer)
+    lineID = PlayerControl.GetCustomLineID(curPlayer)
     if mapID:
         DoCustomScene_Player_KillNPC(curPlayer, curNPC, mapID, lineID)
         return
@@ -525,9 +525,8 @@
     gameMap = GameWorld.GetMap()
     gameMapID = gameMap.GetMapID()
     
-    #如果已经设置过副本功能线路属性,则进入时同步玩家,一般下线重登或者非第一个进入该副本的玩家(如队友)会收到该包
-    if FBCommon.GetHadSetFBPropertyMark() and gameMap.GetMapFBType() != IPY_GameWorld.fbtSingle:
-        PlayerControl.SetFBFuncLineID(curPlayer, FBCommon.GetFBPropertyMark())
+    reqFuncLineID = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ReqFBFuncLine)
+    PlayerControl.SetFBFuncLineID(curPlayer, reqFuncLineID)
         
     #成长NPC所需数据初始化
     InitFBNPCStrengthenData(curPlayer, gameMap)
@@ -2208,14 +2207,14 @@
         
     return
 
-## 自定义场景采集OK
+## 自定义场景采集OK,需自带是否允许采集的判断
 def OnCustomSceneCollectOK(curPlayer, mapID, lineID, npcID):
     do_FBLogic_ID = __GetFBLogic_MapID(mapID)
     
     callFunc = GameWorld.GetExecFunc(FBProcess, "GameLogic_%s.%s" % (do_FBLogic_ID, "OnCustomSceneCollectOK"))
     
     if callFunc:
-        callFunc(curPlayer, mapID, lineID, npcID)
+        return callFunc(curPlayer, mapID, lineID, npcID)
         
     return
 

--
Gitblit v1.8.0