From 71639a932d820939f39feee51711e0bf04f19498 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 30 八月 2018 17:06:49 +0800
Subject: [PATCH] Add: 3089 【后端】新增全服首杀掉落规则

---
 ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldProcess.py |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldProcess.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldProcess.py
index 61338f5..8e1857b 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldProcess.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldProcess.py
@@ -1662,7 +1662,8 @@
 
 def SendAllMapGlobalDropInfo():
     # 同步所有地图所有全服掉落控制信息
-    globalDropCDDict = IpyGameDataPY.GetFuncEvalCfg("GlobalDropCD") # {物品ID:分钟, ...}
+    globalDropCDDict = IpyGameDataPY.GetFuncEvalCfg("GlobalDropCD", 1) # {物品ID:分钟, ...}
+    globalKilledCountDropDict = IpyGameDataPY.GetFuncEvalCfg("GlobalDropCD", 2) # 全服击杀次数必掉
     globalDropRateDict = IpyGameDataPY.GetFuncEvalCfg("NPCGlobalDropRate") # {物品ID:[[npcID列表], "概率公式"], ...}
     
     for itemID in globalDropCDDict.keys():
@@ -1675,6 +1676,10 @@
         killedCnt = PlayerDBGSEvent.GetDBGSTrig_ByKey(key)
         GameWorld.SendMapServerMsgEx(key, killedCnt)
         
+    for npcID in globalKilledCountDropDict.keys():
+        key = ShareDefine.Def_Notify_WorldKey_NPCKilledCount % npcID
+        killedCnt = PlayerDBGSEvent.GetDBGSTrig_ByKey(key)
+        GameWorld.SendMapServerMsgEx(key, killedCnt)
     return
 
 def UpdGlobalDropCD(msgList):
@@ -1693,6 +1698,14 @@
     GameWorld.SendMapServerMsgEx(key, updKilledCnt)
     return
 
+def UpdGlobalKillCount(msgList):
+    ## 更新全局击杀次数
+    npcID, updKilledCnt = msgList
+    key = ShareDefine.Def_Notify_WorldKey_NPCKilledCount % npcID
+    PlayerDBGSEvent.SetDBGSTrig_ByKey(key, updKilledCnt)
+    GameWorld.SendMapServerMsgEx(key, updKilledCnt)
+    return
+
 #---------------------------------------------------------------------
 #//////////////////////////////////////////////////////////////
 #//01 05 注册副本信息#tagGRegisterFBInfo

--
Gitblit v1.8.0