From e63a643c357bd2764d4f2e37954d2d3be83f0a87 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期三, 22 八月 2018 18:12:22 +0800
Subject: [PATCH] fix:等级范围杀怪任务接口

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py |   40 ++++++++++++++++++++++------------------
 1 files changed, 22 insertions(+), 18 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
index 128afe5..748dbdf 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
@@ -599,25 +599,29 @@
     Event_OnKillByID(curPlayer, npcTypeID)
     
     #触发按等级杀怪
-    #EventRespons_OnKillByLv(curPlayer, curNPC)
+    EventRespons_OnKillByLv(curPlayer, curNPC)
     return
 #---------------------------------------------------------------------
-###任务触发器_OnKillByLv 击杀指定等级的怪物
-##@param curPlayer 玩家实例
-##@param curNPC NPC实例
-##@return 返回值无意义
-##@remarks 任务触发器_OnKillByLv 击杀指定等级的怪物
-#def EventRespons_OnKillByLv(curPlayer, curNPC):
-#    #得到NPC的TypeID
-#    npcLV = curNPC.GetLV()     
-#    #运行on_kill_by_lv目录下的[NPCTypeID].xml文件
-#    QuestRunner.SetKillNPC(curNPC)
-#    
-#    RunQuestEvent(curPlayer, "on_kill_by_lv", npcLV, Def_RunQuestType_Normal)
-#    
-#    #触发每日任务杀怪
-#    RunDayEvent(curPlayer, "on_kill_by_lv", npcLV, QuestCommon.Def_Kill_Npc_LV)
-#    return
+##任务触发器_OnKillByLv 击杀指定等级的怪物
+#@param curPlayer 玩家实例
+#@param curNPC NPC实例
+#@return 返回值无意义
+#@remarks 任务触发器_OnKillByLv 击杀指定等级的怪物
+def EventRespons_OnKillByLv(curPlayer, curNPC):
+    if GameWorld.GetMap().GetMapFBType() != IPY_GameWorld.fbtNull:
+        return
+    
+    #得到NPC的TypeID
+    npcLV = curNPC.GetLV()     
+    
+    #运行on_kill_by_lv目录下的[NPCTypeID].xml文件
+    #QuestRunner.SetKillNPC(curNPC)
+    
+    RunQuestEvent(curPlayer, "on_kill_by_lv", npcLV, Def_RunQuestType_Normal)
+    
+    #触发每日任务杀怪
+    RunDayEvent(curPlayer, "on_kill_by_lv", npcLV, QuestCommon.Def_Kill_Npc_LV)
+    return
 
 #---------------------------------------------------------------------
 ##任务触发器_完成某手机任务
@@ -1521,7 +1525,7 @@
     
     #触发每日任务杀怪
     RunDayEvent(curPlayer, "on_kill_by_feel", npcTypeID, QuestCommon.Def_Kill_Npc_ID)
-    
+    EventRespons_OnKillByLv(curPlayer, curNPC)
     return
 
 ## 完成任务

--
Gitblit v1.8.0