ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -5457,10 +5457,17 @@ return ## 地图NPC数量查询封包 A2 27 查询地图NPC数量信息 #tagCMQueryNPCCntInfo # @param curPlayer # @return None #// A2 27 查询地图NPC数量信息 #tagCMQueryNPCCntInfo # #struct tagCMQueryNPCCntInfo #{ # tagHead Head; # DWORD MapID; // 目标地图ID # WORD LineID; // 线路ID # BYTE IsNoTimeLimit;//是否没有查询时间限制,默认有限制 # BYTE NPCIDListLen; # char NPCIDList[NPCIDListLen]; // 需要查询的NPCID列表 #}; def OnQueryMapNPCCntInfo(index, clientData, tick): curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index) if not curPlayer: