From 18d9ac4ba77abfc62b0a369e379da2016b266622 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期二, 21 八月 2018 21:14:11 +0800
Subject: [PATCH] fix:神兽副本NPC数量查询修改

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py         |    3 +++
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py                    |    2 +-
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_NPCCnt.py |    2 +-
 3 files changed, 5 insertions(+), 2 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 371ec0c..3459869 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
@@ -6033,6 +6033,9 @@
 # @remarks <Set_Horsetotallv key="" />
 def DoType_Set_Horsetotallv(curPlayer, curMission, curActionNode):
     key = curActionNode.GetAttribute("key")
+    questID = GameWorld.ToIntDef(curMission.GetProperty("id"), 0)
+    if questID != 0:
+        curMission = curPlayer.FindMission(questID)
     curMission.SetProperty(key, PlayerHorse.GetHorseSumLV(curPlayer))
     return
 #---------------------------------------------------------------------
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
index ac6ef1d..f70bbfa 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -5267,7 +5267,7 @@
         # 请求GameServer目标地图NPC信息
         sendMsg = "%s" % str([tagMapID, tagLineID, npcIDList])
         curPlayer.GameServer_QueryPlayerByID(ChConfig.queryType_NPCCnt, 0,
-                                 'NPCCntInfo', sendMsg, len(sendMsg))
+                                 'NPCCnt', sendMsg, len(sendMsg))
     return
 
 
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_NPCCnt.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_NPCCnt.py
index c0808c4..be16897 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_NPCCnt.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_NPCCnt.py
@@ -46,7 +46,7 @@
     tagLineID = packCMDList[1]  # 线路id
     queryNPCIDList = packCMDList[2]  # 查询的NPCID列表
     
-    npcInfoDict = NPCCommon.GetNPCInfo(queryNPCIDList, tick)
+    npcInfoDict = NPCCommon.GetNPCCntInfo(queryNPCIDList, tick)
 
     return [tagMapID, npcInfoDict]
 #---------------------------------------------------------------------

--
Gitblit v1.8.0