From f1c2ac9588321aad9e075c1440b52eb155b8ba18 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 29 十一月 2024 11:37:24 +0800
Subject: [PATCH] 10263 【越南】【英文】后端支持NPC仿真实玩家战斗和快速战斗

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py
index 4fe7b1f..00473ab 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py
@@ -2403,6 +2403,27 @@
             return dataMapID
     return mapID
 
+def GetGeneralTrainMapIDList():
+    ## 获取通用养成副本
+    GeneralTrainMapIDList = IpyGameDataPY.GetConfigEx("GeneralTrainMapIDList")
+    if not GeneralTrainMapIDList:
+        GeneralTrainMapIDList = []
+        ipyDataMgr = IpyGameDataPY.IPY_Data()
+        for i in xrange(ipyDataMgr.GetFBGeneralTrainCount()):
+            ipyData = ipyDataMgr.GetFBGeneralTrainByIndex(i)
+            dMapID = ipyData.GetDataMapID()
+            if dMapID not in GeneralTrainMapIDList:
+                GeneralTrainMapIDList.append(dMapID)
+        GeneralTrainMapIDList = IpyGameDataPY.SetConfigEx("GeneralTrainMapIDList", GeneralTrainMapIDList)
+        #GameWorld.Log("加载GeneralTrainMapIDList=%s" % GeneralTrainMapIDList)
+        
+    return GeneralTrainMapIDList
+
+def GetClientCustomScene():
+    ## 获取前端自定义副本场景
+    mapIDList = GetGeneralTrainMapIDList()
+    return mapIDList + ChConfig.ClientCustomSceneList
+
 ## 同步进入副本时间
 #  @param curPlayer 玩家
 #  @param syncMapID 同步的地图,默认0为全部

--
Gitblit v1.8.0