From 1388ea949201a3fedc71f39c671cacb7389df8a3 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 18 六月 2019 21:58:09 +0800
Subject: [PATCH] 7338 子 【开发】【2.0】称号,灵宠,技能附带效果 / 【后端】【2.0】新增技能

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index c7a3e33..822ccdc 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -5019,10 +5019,12 @@
         
         #if self.__GetIsLog():
         #    GameWorld.Log("玩家增加个人经验,npcID=%s,addExp=%s" % (curNPC.GetNPCID(), add_Exp), curPlayer.GetPlayerID())
-            
+        addSkillID = 0
+        if curNPC.GetDictByKey(ChConfig.Def_NPCDead_KillerID) == curPlayer.GetID():
+            addSkillID = curNPC.GetDictByKey(ChConfig.Def_NPCDead_Reason)
         #设定人物获得经验
         playerControl = PlayerControl.PlayerControl(curPlayer)
-        playerControl.AddExp(add_Exp, ShareDefine.Def_ViewExpType_KillNPC)
+        playerControl.AddExp(add_Exp, ShareDefine.Def_ViewExpType_KillNPC, addSkillID)
         
         
         self.__KillNPCFuncEx(curPlayer, curNPC, curPlayer.GetPlayerID(), False)
@@ -5233,8 +5235,11 @@
             return
         #GameWorld.Log("普通队伍杀死怪物,队伍分享人数 = %s,个人经验增加 玩家 = %s, 增加 = %s"%(playerCount, curPlayer.GetPlayerID(), add_Exp))
         #设定人物获得经验
+        addSkillID = 0
+        if curNPC.GetDictByKey(ChConfig.Def_NPCDead_KillerID) == curPlayer.GetID():
+            addSkillID = curNPC.GetDictByKey(ChConfig.Def_NPCDead_Reason)
         playerControl = PlayerControl.PlayerControl(curPlayer)
-        playerControl.AddExp(add_Exp, ShareDefine.Def_ViewExpType_KillNPC)
+        playerControl.AddExp(add_Exp, ShareDefine.Def_ViewExpType_KillNPC, addSkillID)
         return
     
     #---------------------------------------------------------------------

--
Gitblit v1.8.0