From d0e8b607414cb9bb017beab4394e1d3da82a59cd Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期三, 20 三月 2019 11:33:43 +0800
Subject: [PATCH] 6381 【后端】【2.0】任务接口开发

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py |   12 ++++++++++++
 1 files changed, 12 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 3e1416d..40838f2 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
@@ -6525,6 +6525,18 @@
     conditionValue = GameWorld.ToIntDef(curConditionNode.GetAttribute("value"), 0)
     return PlayerMagicWeapon.GetIsActiveMagicWeapon(curPlayer, mwid, conditionValue)
 
+##判断魔族法宝通关关卡
+# @param curPlayer 玩家实例
+# @param curMission 任务实例
+# @param curConditionNode节点信息 
+# @return 返回值, 是否通过检查
+# @remarks  <Check_Magicweapon_Passfblv" mwid="法宝ID" value="期望值" /> 
+def ConditionType_Check_Magicweapon_Passfblv(curPlayer, curMission, curConditionNode):
+    mwid = GameWorld.ToIntDef(curConditionNode.GetAttribute("mwid"), 0)
+    conditionValue = GameWorld.ToIntDef(curConditionNode.GetAttribute("value"), 0)
+    fbpasslv = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MWFBPassLevel % mwid)
+    return fbpasslv >= conditionValue
+
 #---------------------------------------------------------------------
 ##是否拥有足够的竞技点
 # @param curPlayer 玩家实例

--
Gitblit v1.8.0