From ac92a4a348aee67cebcfa85cfaffcd5ed4a7ebc5 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期五, 07 九月 2018 11:20:34 +0800
Subject: [PATCH] add:3331 击杀BOSS流向

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 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 d18af34..c4a5642 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -4291,7 +4291,13 @@
             
         else:
             GameWorld.ErrLog("NPC归属异常:npcID=%s,hurtType=%s,hurtID=%s" % (npcID, hurtType, hurtID))
-            
+        
+        if ChConfig.IsGameBoss(curNPC):
+            dataDict = {"objID":curNPC.GetID(), "bossID":npcID, "mapID":GameWorld.GetMap().GetMapID(),
+                        "lineID":GameWorld.GetGameWorld().GetLineID(), "teamID":curTeam.GetTeamID() if curTeam else 0,
+                            "killerID":self.__AllKillerDict.keys(), "hurtType":hurtType,"hurtID":hurtID}
+            DataRecordPack.SendEventPack("KillBossRecord", dataDict)
+                
         if OnNPCDie:
             OnNPCDie(curNPC, hurtType, hurtID)
         
@@ -4767,7 +4773,6 @@
                 dataDict = {"objID":curNPC.GetID(), "bossID":npcID, "touchCnt":newCnt,
                             "AccID":curPlayer.GetAccID(), "PlayerID":curPlayer.GetPlayerID()}
                 DataRecordPack.SendEventPack("AddKillBossCnt", dataDict, curPlayer)
-                
                 if limitIndex == 0:
                     # 世界BOSS击杀成就
                     PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_KillWorldBoss, 1)
@@ -4782,6 +4787,7 @@
                     PlayerActivity.AddDailyActionFinishCnt(curPlayer, ShareDefine.DailyActionID_BOSSHome)
                     PlayerBossReborn.AddBossRebornActionCnt(curPlayer, ChConfig.Def_BRAct_BOSSHome, 1)
                     PlayerFairyCeremony.AddFCPartyActionCnt(curPlayer, ChConfig.Def_PPAct_BossHome, 1)
+            
             #击杀特定NPC成就
             PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_KillSpecificNPC, 1, [npcID])
         return

--
Gitblit v1.8.0