From 586febfe813233aa833385095d2ac003ee6818dc Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 23 五月 2022 17:00:15 +0800 Subject: [PATCH] 9415 【BT】【后端】古神战场(战场帮助信息同步优化;个人buff支持触碰采集;去除复活后无法出战宠物多余提示) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py | 17 +++++++---------- 1 files changed, 7 insertions(+), 10 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py index 3193394..a262245 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py @@ -254,7 +254,6 @@ return def __OnFBRobotReborn(curNPC, npcLV): - tick = GameWorld.GetGameWorld().GetTick() lineID = GameWorld.GetGameWorld().GetLineID() objID = curNPC.GetID() jobSkillDict = IpyGameDataPY.GetFuncEvalCfg("FBRobotCfg", 1) @@ -275,12 +274,7 @@ skillManager = curNPC.GetSkillManager() for skillID in skillIDList: skillManager.LearnSkillByID(skillID) - playerManager = GameWorld.GetMapCopyPlayerManager() - for index in xrange(playerManager.GetPlayerCount()): - curPlayer = playerManager.GetPlayerByIndex(index) - if not curPlayer: - continue - FBLogic.DoFBHelp(curPlayer, tick) + FBLogic.OnRandomRobotJob(curNPC, lineRobotJobDict) return @@ -2154,7 +2148,6 @@ tick = GameWorld.GetGameWorld().GetTick() #---初始化NPC相关 设NPCID 最大仇恨数 AI类型 出生点 出生时间--- curSummon.SetNPCTypeID(npcId) - curSummon.Reborn(rebornX, rebornY) curSummon.SetBornTime(tick) if aiType > 0: curSummon.SetAIType(aiType) @@ -2168,9 +2161,10 @@ if curSummon.GetType() == ChConfig.ntRobot: __OnFBRobotReborn(curSummon, curSummon.GetLV()) - + curSummon.Reborn(rebornX, rebornY) + FBLogic.DoFBRebornSummonNPC(curSummon, tick) - __NotifyMapPlayerSummonMapNPC(npcId, rebornX, rebornY) + #__NotifyMapPlayerSummonMapNPC(npcId, rebornX, rebornY) return curSummon ## 通知地图内玩家,地图出现召唤NPC @@ -5652,6 +5646,7 @@ if not canCollTogether and not SetCollectNPC(curPlayer, curNPC): GameWorld.ErrLog("SetCollectNPC fail!") return + curPlayer.SetDict(ChConfig.Def_PlayerKey_CollectNPCObjID, curNPC.GetID()) # 采集耗时 prepareTime = collectNPCIpyData.GetPrepareTime() * 1000 @@ -5720,6 +5715,8 @@ curPlayer.SetDict(ChConfig.Def_PlayerKey_CollectNPCObjID, 0) #GameWorld.DebugLog(" set collectNPCObjID 0") + + FBLogic.OnExitCollect(curPlayer, curNPC) return def DoCollectNPCOK(curPlayer, npcID, tick): -- Gitblit v1.8.0