| | |
| | | # @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
|
| | | #---------------------------------------------------------------------
|
| | |
| | | # 请求GameServer目标地图NPC信息
|
| | | sendMsg = "%s" % str([tagMapID, tagLineID, npcIDList])
|
| | | curPlayer.GameServer_QueryPlayerByID(ChConfig.queryType_NPCCnt, 0,
|
| | | 'NPCCntInfo', sendMsg, len(sendMsg))
|
| | | 'NPCCnt', sendMsg, len(sendMsg))
|
| | | return
|
| | |
|
| | |
|
| | |
| | | tagLineID = packCMDList[1] # 线路id
|
| | | queryNPCIDList = packCMDList[2] # 查询的NPCID列表
|
| | |
|
| | | npcInfoDict = NPCCommon.GetNPCInfo(queryNPCIDList, tick)
|
| | | npcInfoDict = NPCCommon.GetNPCCntInfo(queryNPCIDList, tick)
|
| | |
|
| | | return [tagMapID, npcInfoDict]
|
| | | #---------------------------------------------------------------------
|