From e22ca247b7ec972e7647c827dc023c8e89e8c389 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期二, 11 九月 2018 19:31:47 +0800 Subject: [PATCH] fix:3459 【后端】【1.0.15】【主干】符印新增仙玉开启新符印孔位 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py | 59 ++++++++++++++++++++++++++++++++++++----------------------- 1 files changed, 36 insertions(+), 23 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 69e12cf..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 ## 完成任务 @@ -1809,14 +1813,14 @@ RunQuestEvent(curPlayer, "mwsoulactive", soulid, Def_RunQuestType_RunAll) return -def EventRespons_PassQueenRelecs(curPlayer, lineID): - #S级通关X层娲皇遗迹 - RunQuestEvent(curPlayer, "passqueenrelecs", lineID, Def_RunQuestType_Normal) +def EventRespons_PassQueenRelecs(curPlayer, lineID, grade): + #X级通关X层娲皇遗迹 + RunQuestEvent(curPlayer, "passqueenrelecs", '%s_%s'%(lineID, grade), Def_RunQuestType_Normal) return -def EventRespons_HorseUp(curPlayer, alllv): +def EventRespons_HorseUp(curPlayer): #坐骑升级 - RunQuestEvent(curPlayer, "horseup", alllv, Def_RunQuestType_Normal) + RunQuestEvent(curPlayer, "horseup", "horseup", Def_RunQuestType_Normal) return def EventRespons_SuitPlus(curPlayer, cnt): @@ -1824,6 +1828,15 @@ 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