From b3d649ec7f08594b16adddb6f310b81328118b89 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 23 八月 2018 19:49:39 +0800
Subject: [PATCH] fix:娲皇任务接口修改

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_QueenRelics.py |    2 +-
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py                     |    8 ++++----
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py                               |    6 +++---
 3 files changed, 8 insertions(+), 8 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 748dbdf..5203907 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
@@ -1813,9 +1813,9 @@
     RunQuestEvent(curPlayer, "mwsoulactive", soulid, Def_RunQuestType_RunAll)
     return
 
-def EventRespons_PassQueenRelecs(curPlayer, lineID):
-    #S级通关X层娲皇遗迹
-    RunQuestEvent(curPlayer, "passqueenrelecs", lineID, Def_RunQuestType_Normal)
+def EventRespons_PassQueenRelecs(curPlayer, lineID, grade):
+    #X级通关X层娲皇遗迹
+    RunQuestEvent(curPlayer, "passqueenrelecs", '%s_%s'%(lineID, grade), Def_RunQuestType_Normal)
     return
 
 def EventRespons_HorseUp(curPlayer):
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 0c3ecdd..aa17c45 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
@@ -7142,14 +7142,14 @@
     soulID = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
     return bool(PlayerMagicWeapon.GetIsActiveMWSoul(curPlayer, soulID))
 
-##S级通关X层娲皇遗迹
+##X级通关X层娲皇遗迹
 # @param None
-# @return None <Passqueenrelecs value="lineID"/>
+# @return None <Passqueenrelecs value="lineID" grade="grade"/>
 def ConditionType_Passqueenrelecs(curPlayer, curMission, curActionNode):
     lineID = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
     grade = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, False, [ChConfig.Def_FBMapID_QueenRelics])
-    maxGrade = len(FBCommon.GetFBLineGrade(ChConfig.Def_FBMapID_QueenRelics, lineID))
-    return grade >=maxGrade
+    needGrade = GameWorld.ToIntDef(curActionNode.GetAttribute("grade"), 0)
+    return grade >=needGrade
 
 ##坐骑总等级
 # @param None
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_QueenRelics.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_QueenRelics.py
index add73a0..212a26d 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_QueenRelics.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_QueenRelics.py
@@ -501,7 +501,7 @@
             #成就
             if grade >= maxGrade:
                 PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_QueenRelics, 1, [lineID+1])
-                EventShell.EventRespons_PassQueenRelecs(curPlayer, lineID)
+            EventShell.EventRespons_PassQueenRelecs(curPlayer, lineID, grade)
             #任务
             EventShell.EventRespons_FBEvent(curPlayer, "queenrelics_pass")
         FBCommon.NotifyFBOver(curPlayer, dataMapID, lineID, isPass, overDict)

--
Gitblit v1.8.0