From 46c9d7d80fb93f053bd64acd1fa94ee3dc181bf3 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 11 二月 2020 13:41:51 +0800
Subject: [PATCH] 8377 新增任务接口(上架橙装、购买橙装、货币变更、更新货币;活跃放置各状态接口)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py |   23 +++++++++++++++++++++++
 1 files changed, 23 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 54c80cd..e27aa3c 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
@@ -7403,6 +7403,29 @@
     value = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
     return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Activity_TotalPoint, 0) >= value
 
+##活跃放置判断可否领奖
+# @param None
+# @return None <Check_Activityplacereward />
+def ConditionType_Check_Activityplacereward(curPlayer, curMission, curActionNode):
+    return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ActivityPlaceRewardCount) > 0
+
+##设置当前货币类型对应值
+# @param curPlayer 玩家实例
+# @param curMission 任务实例
+# @param curActionNode节点信息
+# @return 返回值无意义
+# @remarks <Set_Money key="任务存值key名" moneytype="货币类型"/>
+def DoType_Set_Money(curPlayer, curMission, curActionNode):
+    key = curActionNode.GetAttribute("key")
+    moneytype = GameWorld.ToIntDef(curActionNode.GetAttribute("moneytype"), 0)
+    if not moneytype:
+        return
+    questID = GameWorld.ToIntDef(curActionNode.GetAttribute("id"), 0)
+    if questID != 0:
+        curMission = curPlayer.FindMission(questID)
+    curMission.SetProperty(key, PlayerControl.GetMoney(curPlayer, moneytype))
+    return
+
 ##设置仙宝寻主领奖进度
 # @param curPlayer 玩家实例
 # @param curMission 任务实例

--
Gitblit v1.8.0