From 0c2f7c40cce8588f55ece592a1dafa22d30d9fb8 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 17 一月 2019 02:25:30 +0800
Subject: [PATCH] 5722 【后端】【1.5】跨服BOSS开发(增加PK状态下不可进入跨服及提示)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 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 76b967e..c613cd0 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
@@ -59,6 +59,7 @@
 import PlayerMagicWeapon
 import PlayerBossReborn
 import PlayerFairyCeremony
+import PlayerWeekParty
 import PlayerHorse
 import FBCommon
 import PyGameData
@@ -1221,7 +1222,7 @@
 def __RunAnswerAction(curPlayer, curMission, answersNode):
     actionsNode = __FindAnswerActionNode(curPlayer, curMission, answersNode)
     if actionsNode == None or actionsNode.IsEmpty():
-        GameWorld.Log('__RunAnswerAction找不到回答节点')
+        GameWorld.DebugLog('__RunAnswerAction找不到回答节点--%s'%curMission.GetMissionID())
         return
     
     __DoAnswerActionNode(curPlayer, curMission, actionsNode)
@@ -1276,7 +1277,7 @@
         #特殊清空处理, 如果没有任务, state为0
         curValue = 0
     elif tagMission == None:
-        GameWorld.Log("没有目标任务 %s" % conditionID , curPlayer.GetPlayerID())
+        GameWorld.DebugLog("没有目标任务 %s" % conditionID , curPlayer.GetPlayerID())
         return
     else:
         curValue = QuestRunnerValue.GetValue(curPlayer, tagMission, conditionName)
@@ -4890,7 +4891,7 @@
 # @return 无
 # @remarks 跑环任务结束处理,删除或者随机下一个
 def __RunAroundMission(curPlayer, missionID, curMissionData, curActionNode):
-    GameWorld.Log("__RunAroundMission----%s"%missionID)
+    GameWorld.Log("__RunAroundMission----%s"%missionID, curPlayer.GetID())
     #任务完成,触发随机跑环
     run_event = GameWorld.ToIntDef(curActionNode.GetAttribute("run_around"), 0)
     firstMissionID = GameWorld.ToIntDef(curActionNode.GetAttribute("id"), 0)
@@ -5234,14 +5235,18 @@
 def OnAroundMissionFinish(curPlayer, missionType, addCnt=1):
     #跑环任务id列表
     # 活跃度
+    GameWorld.Log('    跑环完成触发活跃度 missionType=%s'%missionType, curPlayer.GetPlayerID())
     if missionType == QuestCommon.Def_Mission_Type_RunDaily:
         PlayerActivity.AddDailyActionFinishCnt(curPlayer, ShareDefine.DailyActionID_DailyRunMission, addCnt)
         PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_TaskCRun, addCnt)
         PlayerBossReborn.AddBossRebornActionCnt(curPlayer, ChConfig.Def_BRAct_RunTask, addCnt)
         PlayerFairyCeremony.AddFCPartyActionCnt(curPlayer, ChConfig.Def_PPAct_RunTask, addCnt)
+        PlayerWeekParty.AddWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_RunTask, addCnt)
     elif missionType == QuestCommon.Def_Mission_Type_RunFamily:
         PlayerActivity.AddDailyActionFinishCnt(curPlayer, ShareDefine.DailyActionID_FamilyRunMission, addCnt)
         PlayerFamily.AddFamilyActivity(curPlayer, ShareDefine.FamilyActive_Task, addCnt)
+    else:
+        GameWorld.Log('    跑环完成触发活跃度异常 missionType=%s'%missionType, curPlayer.GetPlayerID())
     return
 
 
@@ -5436,7 +5441,7 @@
 # @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)
+    GameWorld.Log("DoType_Set_Run_Around_Reward---%s"%curMissionID, curPlayer.GetID())
     idNameStr = curActionNode.GetAttribute("id_name")
     if curMission and idNameStr != "":
         questID = GameWorld.ToIntDef(curMission.GetProperty(idNameStr), 0)

--
Gitblit v1.8.0