From b1e9c98deb64aad68692ac2e3005babdc1855385 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 22 十一月 2018 23:26:28 +0800
Subject: [PATCH] 860312 添加任务日志,观察跑环任务是否正常

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py |    6 ++++--
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestCommon.py |    1 +
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py           |    2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
index 1fa6035..8228b23 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
@@ -3939,7 +3939,7 @@
 # @remarks 自定义函数, 读数据库任务删除表, 删除任务
 def __DoLogic_DeleteMission(curPlayer, curMission):
     missionID = curMission.GetMissionID()
-    
+    GameWorld.Log("__DoLogic_DeleteMission---%s"%missionID)
     delMissionData = GameWorld.GetGameData().GetMissionDeleteByID(missionID)
     #任务删除表中无此任务
     if not delMissionData:
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestCommon.py
index 19a889f..c85bade 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestCommon.py
@@ -329,6 +329,7 @@
 # @return 返回值,新增的任务实例
 # @remarks 添加新任务
 def AddNewMission(curPlayer, curMissionID):
+    GameWorld.Log("AddNewMission----%s"%curMissionID)
     curMission = curPlayer.AddMission(curMissionID)
 
     #等级触发OSS记录
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 b17f56f..9143b94 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
@@ -4825,7 +4825,7 @@
     
     mission_1.SetProperty(Def_Around_AllCount, allCount)
     EventShell.EventRespons_RunTaskAllCnt(curPlayer, curMissionData.Type, allCount)
-    GameWorld.DebugLog("删除任务allCount %s, RUNCOUNT=%s" % (allCount, RUNCOUNT))
+    GameWorld.Log("删除任务allCount %s, RUNCOUNT=%s" % (allCount, RUNCOUNT))
 
 
     if allCount < RUNCOUNT:
@@ -4890,6 +4890,7 @@
 # @return 无
 # @remarks 跑环任务结束处理,删除或者随机下一个
 def __RunAroundMission(curPlayer, missionID, curMissionData, curActionNode):
+    GameWorld.Log("__RunAroundMission----%s"%missionID)
     #任务完成,触发随机跑环
     run_event = GameWorld.ToIntDef(curActionNode.GetAttribute("run_around"), 0)
     firstMissionID = GameWorld.ToIntDef(curActionNode.GetAttribute("id"), 0)
@@ -5433,6 +5434,8 @@
 # @return 返回值无意义
 # @remarks 设置跑环任务奖励 <set_run_around_reward multiple="指定倍数" id_name="任务ID存储key" /> 
 def DoType_Set_Run_Around_Reward(curPlayer, curMission, curActionNode):
+    curMissionID = curMission.GetMissionID()
+    GameWorld.Log("DoType_Set_Run_Around_Reward---%s"%curMissionID)
     idNameStr = curActionNode.GetAttribute("id_name")
     if curMission and idNameStr != "":
         questID = GameWorld.ToIntDef(curMission.GetProperty(idNameStr), 0)
@@ -5441,7 +5444,6 @@
             if curMission == None:
                 curMission = QuestCommon.AddNewMission(curPlayer, questID)
             
-    curMissionID = curMission.GetMissionID()
     curMissionData = FindQuestFunc(curMissionID)
     if not curMissionData:
         return

--
Gitblit v1.8.0