From 0901407e7f5e4fedb781ef4ea416dfca4fc8ef53 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 10 十二月 2020 11:02:53 +0800
Subject: [PATCH] 8643 【BT】【主干】新增任务接口增加个人BOSS次数

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
index f263d1c..e769e71 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
@@ -5720,6 +5720,21 @@
     return
 
 #---------------------------------------------------------------------
+##增加进入副本次数
+# @param curPlayer 玩家实例
+# @param curMission 任务实例
+# @param curActionNode节点信息
+# @return 返回值无意义
+# @remarks <Add_Fbcnt mapid = "地图ID"  count = "次数" />
+def DoType_Add_Fbcnt(curPlayer, curMission, curActionNode):
+    ## 这边是任务直接赠送的,相当于给赠送道具,这里默认直接转化为道具使用后增加的次数
+    mapID = int(curActionNode.GetAttribute("mapid"))
+    count = GameWorld.ToIntDef(curActionNode.GetAttribute("count"), 1)
+    itemAddCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ItemAddFbCnt % mapID)
+    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_ItemAddFbCnt % mapID, itemAddCnt + count)
+    FBCommon.Sync_FBPlayerFBInfoData(curPlayer, mapID)
+    return
+
 ##进入单人副本
 # @param curPlayer 玩家实例
 # @param curMission 任务实例

--
Gitblit v1.8.0