From 22d7ede3021a347570fc04149e3d31d0a13283bc Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期六, 25 五月 2019 16:53:11 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/SnxxServerCode

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunnerValue.py |   35 +++++++++++++++++++++--------------
 1 files changed, 21 insertions(+), 14 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 569e45a..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
@@ -27,7 +27,6 @@
 import GameWorld
 import PlayerControl
 import QuestCommon
-import PyMapTable
 #---------------------------------------------------------------------
 ##获取服务器任务状态, State
 # @param curPlayer 玩家实例
@@ -205,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 玩家实例
@@ -268,18 +287,6 @@
         return globals()[conditionName](curPlayer, id)
     
     return
-
-#---------------------------------------------------------------------
-##获取玩家等级
-# @param curPlayer 玩家实例
-# @return 返回值, 玩家等级, 转生按161算
-# @remarks 获取玩家等级
-def __GetReincarnationLV(curPlayer):
-    curReinLV = curPlayer.GetReincarnationLv()
-    if curReinLV > 0:
-        return 161
-    
-    return curPlayer.GetLV()
 
 #---------------------------------------------------------------------
 ##每周工资在线时间替换

--
Gitblit v1.8.0