From 868c939723928a1dc6ba1f0b89f501848b8db75a Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期五, 26 四月 2019 14:55:07 +0800 Subject: [PATCH] 6501 【后端】【2.0】仙盟任务(新增接口) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py | 19 +++++++++++++++++++ 1 files changed, 19 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 9334fd4..6638a45 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 @@ -7069,7 +7069,26 @@ totallv = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0) return PlayerHorse.GetHorseSumLV(curPlayer) >= totallv +##已选择的专精技能数量是否达到 +# @param None +# @return None <Elementskillcnt value="cnt"/> +def ConditionType_Elementskillcnt(curPlayer, curMission, curActionNode): + cnt = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0) + return SkillShell.GetElementSkillCnt(curPlayer) >= cnt +##设置已选择的专精技能数量 +# @param curPlayer 玩家实例 +# @param curMission 任务实例 +# @param curActionNode节点信息 +# @return 返回值无意义 +# @remarks <Set_Elementskillcnt key="" /> +def DoType_Set_Elementskillcnt(curPlayer, curMission, curActionNode): + key = curActionNode.GetAttribute("key") + questID = GameWorld.ToIntDef(curActionNode.GetAttribute("id"), 0) + if questID != 0: + curMission = curPlayer.FindMission(questID) + curMission.SetProperty(key, SkillShell.GetElementSkillCnt(curPlayer)) + return ##法宝激活个数 # @param None -- Gitblit v1.8.0