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) # 先直接写这边触发一下,自定义采集的不再处理后面的代码