From 2259cdb960ad0ca8b3f70c08c79267b033858719 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期五, 28 六月 2019 20:57:19 +0800 Subject: [PATCH] 7667 【后端】【2.0.200】跑环任务功能NPC随机修改 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py index f69c2cc..a1e879c 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py @@ -3585,9 +3585,11 @@ if not npcData: continue NPCLV = npcData.GetLV() - if NPCLV > heroLV or NPCLV < heroLV-30: - if NPCLV < heroLV-30: - secondNPC = killNPC + if NPCLV > heroLV: + continue + + if recordKey != ChConfig.Def_Player_Dict_TaskLastVisitNPCID and NPCLV < heroLV-30: + secondNPC = killNPC continue #不和上次的NPCID相同 if killNPC.ID == curPlayer.NomalDictGetProperty(recordKey): -- Gitblit v1.8.0