From fce52c87f2c1ea7b87372c2b0e6be72781007cb7 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 11 九月 2018 16:08:32 +0800
Subject: [PATCH] 3455 【后端】【1.0.15】【主干】优化GM命令CTG及GM工具CTG;

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py |   78 ++++++++++++++++++++++++++-------------
 1 files changed, 52 insertions(+), 26 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 c1735d3..67c8b4f 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
 
 ## 完成任务
@@ -1617,14 +1621,6 @@
     RunQuestEvent(curPlayer, "on_buy_mission_sum", buyNum, Def_RunQuestType_RunAll)
     return
 
-## 坐骑升阶
-#  @param curPlayer 玩家实例
-#  @param  eventName
-#  @return None
-def EventRespons_OnHorseUp(curPlayer, updClassLV, updStarLV):
-    #星级*100+阶级
-    RunQuestEvent(curPlayer, "on_horseup", updStarLV*100+updClassLV, Def_RunQuestType_Normal)
-    return
 
 ## 穿装备触发判断所穿橙装数量
 #  @param curPlayer 玩家实例
@@ -1811,6 +1807,36 @@
     #境界升级
     RunQuestEvent(curPlayer, "realmup", realmlv, Def_RunQuestType_RunAll)
     return
+
+def EventRespons_MWSoulActive(curPlayer, soulid):
+    #法宝之魂激活
+    RunQuestEvent(curPlayer, "mwsoulactive", soulid, Def_RunQuestType_RunAll)
+    return
+
+def EventRespons_PassQueenRelecs(curPlayer, lineID, grade):
+    #X级通关X层娲皇遗迹
+    RunQuestEvent(curPlayer, "passqueenrelecs", '%s_%s'%(lineID, grade), Def_RunQuestType_Normal)
+    return
+
+def EventRespons_HorseUp(curPlayer):
+    #坐骑升级
+    RunQuestEvent(curPlayer, "horseup", "horseup", Def_RunQuestType_Normal)
+    return
+
+def EventRespons_SuitPlus(curPlayer, cnt):
+    #2阶强化防具套装X件
+    RunQuestEvent(curPlayer, "suitplus", cnt, Def_RunQuestType_Normal)
+    return
+
+def EventRespons_TrialExchange(curPlayer, costItemID):
+    #宗门试炼兑换装备
+    RunQuestEvent(curPlayer, "trialexange", costItemID, Def_RunQuestType_Normal)
+    return
+
+def EventRespons_EquipByPlace(curPlayer, equipplace):
+    #穿戴某部位装备(非时效)
+    RunQuestEvent(curPlayer, "equipbyplace", equipplace, Def_RunQuestType_Normal)
+    return
 #---------------------------------------------------------------------
 
 #================================================================================

--
Gitblit v1.8.0