From b60fd3b8a91432c1491f0c017fc90735dd28ebcf Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 11 一月 2019 20:34:44 +0800 Subject: [PATCH] 5722 【后端】【1.5】跨服BOSS开发(宝箱怪物刷新、跨服地图NPC个数查询支持) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMissionCollect.py | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMissionCollect.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMissionCollect.py index c005eb0..a7b24d9 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMissionCollect.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMissionCollect.py @@ -18,7 +18,7 @@ # @change: "2010-11-22 12:15" Alee 采集限制 # @change: "2014-04-14 12:00" hxp 增加自定义采集NPC #--------------------------------------------------------------------- -"""Version = 2014-04-14 12:00""" +#"""Version = 2014-04-14 12:00""" #--------------------------------------------------------------------- #导入 import GameWorld @@ -31,6 +31,8 @@ import NPCCommon import FBLogic import AttackCommon +import ReadChConfig +import PlayerState import GameObj #--------------------------------------------------------------------- '''Version = 2010-09-16 09:55''' @@ -94,6 +96,8 @@ #先设置对象,任务可采集得到对象NPC curPlayer.SetActionObj(curNPC) + if curNPC.GetNPCID() in ReadChConfig.GetEvalChConfig("CollectNPCLostHP"): + curPlayer.SetDict(ChConfig.Def_PlayerKey_CollectLostHPTick, tick) # 自定义的采集NPC if NPCCommon.DoCollectNPCBegin(curPlayer, curNPC): @@ -130,7 +134,7 @@ # @param curPlayer # @return None # @remarks 函数详细说明. -def EndMissionCollect(curPlayer): +def EndMissionCollect(curPlayer, tick): #任务采集类NPC curNPC = GetActionNPCbyType(curPlayer, IPY_GameWorld.ntMissionCollect) if not curNPC: @@ -142,6 +146,8 @@ if not ChNPC.OnCollectEnd(curPlayer, curNPC): return + PlayerState.DoCollectingLostHP(curPlayer, npcID, tick, True) + # 自定义的采集NPC if NPCCommon.DoCollectNPCOK(curPlayer, npcID): EventShell.EventRespons_MisCollectSuccess(curPlayer, curNPC) # 先直接写这边触发一下,自定义采集的不再处理后面的代码 -- Gitblit v1.8.0