From 0d95c26257bf4ab291356b1adb6ad2064e6b2969 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期六, 13 四月 2019 10:51:05 +0800
Subject: [PATCH] 3278 【BUG】【2.0】宗门试炼,点击扫荡没反应
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunnerValue.py | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunnerValue.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunnerValue.py
index c924849..1edb726 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunnerValue.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunnerValue.py
@@ -204,7 +204,27 @@
value = max(GameWorld.ToIntDef(value, 0), 1)
curMission.AddProperty(conditionName,value)
-
+#---------------------------------------------------------------------
+##删除任务值
+# @param curPlayer 玩家实例
+# @param curMission 任务实例
+# @param conditionName 节点名
+# @param value 值
+# @return 返回值无意义
+# @remarks 添加任务值
+def Var_Del(curPlayer, curMission, conditionName, value):
+ curMission.DelProperty(conditionName)
+#---------------------------------------------------------------------
+##减少任务值
+# @param curPlayer 玩家实例
+# @param curMission 任务实例
+# @param conditionName 节点名
+# @param value 值
+# @return 返回值无意义
+# @remarks 添加任务值
+def Var_Sub(curPlayer, curMission, conditionName, value):
+ value = max(GameWorld.ToIntDef(value, 0), 1)
+ curMission.SubProperty(conditionName, value)
#---------------------------------------------------------------------
##随机设置任务值
# @param curPlayer 玩家实例
--
Gitblit v1.8.0