From b4ba68e227370e3dc9dfca06ce5b9c8225bf4faa Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期六, 24 十一月 2018 00:13:49 +0800
Subject: [PATCH] 4997 【后端】【1.3】冰晶矿脉AI--技能指定NPCID使用

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 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 b17f56f..a07015b 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)
@@ -4926,8 +4927,9 @@
     
     
     #总跑环次数已满,不可再做
-    if run_event == Def_Run_Around_Over_1 and allCount >= RUNCOUNT:
-        return
+    if run_event == Def_Run_Around_Over_1:
+        if allCount >= RUNCOUNT or aroundCount >= AROUNDCOUNT:
+            return
     
     nextMissionID = 0
     nextMission = None
@@ -4975,9 +4977,9 @@
         
         if curMissionData.Type == QuestCommon.Def_Mission_Type_RunFamily:
             PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_TaskFRun, 1)
-        if allCount < RUNCOUNT:
-            nextMissionID = __OverRandRunAround(curPlayer, curMissionData)
-            PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_RunTaskNextMissionID % curMissionData.Type, nextMissionID)
+#        if allCount < RUNCOUNT:
+#            nextMissionID = __OverRandRunAround(curPlayer, curMissionData)
+#            PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_RunTaskNextMissionID % curMissionData.Type, nextMissionID)
         
                 
             
@@ -5433,6 +5435,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 +5445,6 @@
             if curMission == None:
                 curMission = QuestCommon.AddNewMission(curPlayer, questID)
             
-    curMissionID = curMission.GetMissionID()
     curMissionData = FindQuestFunc(curMissionID)
     if not curMissionData:
         return

--
Gitblit v1.8.0