| | |
| | | elif queryType == ChConfig.queryType_NPCInfo:
|
| | | __QueryMapNPCInfo(curPlayer, queryCallName, sendCMD)
|
| | | return
|
| | | # 查询地图NPC数量
|
| | | elif queryType == ChConfig.queryType_NPCCnt:
|
| | | __QueryMapNPCCntInfo(curPlayer, queryCallName, sendCMD)
|
| | | return
|
| | | else:
|
| | | GameWorld.ErrLog('unKnow queryType = %s' % (queryType))
|
| | |
|
| | |
| | | queryCallName, sendCMD, len(sendCMD), curPlayer.GetRouteServerIndex())
|
| | | return
|
| | |
|
| | | ## 查询目标地图NPC数量
|
| | | # @param curPlayer: 请求玩家
|
| | | # @param queryCallName: 请求回调名
|
| | | # @param sendCMD: 请求的命令 根据请求类型和请求命令来决定最终操作
|
| | | # @return None
|
| | | def __QueryMapNPCCntInfo(curPlayer, queryCallName, sendCMD):
|
| | | playerManager = GameWorld.GetPlayerManager()
|
| | | try:
|
| | | mapInfo = eval(sendCMD)
|
| | | except BaseException:
|
| | | GameWorld.ErrLog("__QueryMapNPCCntInfo() sendCMD=%s error" % sendCMD)
|
| | | return
|
| | | |
| | | if not mapInfo:
|
| | | return
|
| | | |
| | | tagMapID = mapInfo[0]
|
| | | playerManager.MapServer_QueryPlayer(curPlayer.GetPlayerID(), ChConfig.queryType_NPCCnt, 0, tagMapID,
|
| | | queryCallName, sendCMD, len(sendCMD), curPlayer.GetRouteServerIndex())
|
| | | return
|
| | |
|
| | | ## 获得家族属性(等级,人数)获得自己所在家族的属性
|
| | | # @param curPlayer 请求的玩家
|
| | |
| | | GameWorldBoss.DoGameWorldBossOnReborn(eval(resultName), tick)
|
| | | return
|
| | |
|
| | | # 仙盟归属boss信息同步
|
| | | if callName =="FamilyOwnerBossInfo":
|
| | | GameWorldBoss.MapServer_FamilyOwnerBossInfo(eval(resultName))
|
| | | return
|
| | | |
| | | # 全局掉落CD
|
| | | if callName =="GlobalDropCD":
|
| | | GameWorldProcess.UpdGlobalDropCD(eval(resultName))
|
| | |
| | | if callName =="AddBossRebornPoint":
|
| | | GameWorldBoss.AddBossRebornPoint(eval(resultName))
|
| | | return
|
| | | |
| | | #通知神兽副本NPC刷新时间
|
| | | if callName =="DogzNPCTime":
|
| | | GameWorldBoss.Sync_DogzNPCRefreshTime(eval(resultName))
|
| | | return
|
| | | #---return分割线-----------------------------------------------------------------
|
| | |
|
| | |
|