hch
2019-01-11 b1bb52bb7c6e5c36471140bf383be02d35fe92d4
2857 【BUG】【1.5】采集被打断问题
2个文件已修改
8 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMissionCollect.py 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
@@ -1277,7 +1277,7 @@
        #特殊清空处理, 如果没有任务, state为0
        curValue = 0
    elif tagMission == None:
        GameWorld.Log("没有目标任务 %s" % conditionID , curPlayer.GetPlayerID())
        GameWorld.DebugLog("没有目标任务 %s" % conditionID , curPlayer.GetPlayerID())
        return
    else:
        curValue = QuestRunnerValue.GetValue(curPlayer, tagMission, conditionName)
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMissionCollect.py
@@ -51,18 +51,18 @@
    tagObj = curPlayer.GetActionObj()
    if tagObj == None:
        #没有目标
        GameWorld.Log("FuncCall -> 没有目标" , curPlayer.GetPlayerID())
        GameWorld.Log("GetActionNPCbyType -> 没有目标" , curPlayer.GetPlayerID())
        return
    
    if tagObj.GetGameObjType() != IPY_GameWorld.gotNPC:
        #谈话对象不对
        GameWorld.Log("FuncCall -> 谈话对象不对" , curPlayer.GetPlayerID())
        GameWorld.Log("GetActionNPCbyType -> 谈话对象不对" , curPlayer.GetPlayerID())
        return
    
    curNPC = GameWorld.GetNPCManager().GetNPCByIndex(tagObj.GetIndex())
    if curNPC == None:
        #没有这个NPC
        GameWorld.Log("FuncCall ->没有这个NPC" , curPlayer.GetPlayerID())
        GameWorld.Log("GetActionNPCbyType ->没有这个NPC" , curPlayer.GetPlayerID())
        return
    
    if curNPC.GetType() != npcType: