From e641855eb308bba24a5584511b92341731b18915 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期六, 25 五月 2019 17:02:23 +0800
Subject: [PATCH] 6779 【后端】【2.0】BOSS之家多图合一 批(掉落广播修改)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 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 6df6ba0..0a1dac5 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -660,8 +660,7 @@
             mailItemList.append(mailItem)
             
         if npcID:
-            serverGroupID = PlayerControl.GetPlayerServerGroupID(curPlayer)
-            SendGameServerGoodItemRecord(mapID, lineID, npcID, curPlayer.GetName(), playerID, itemID, equipInfo, serverGroupID)
+            SendGameServerGoodItemRecord(curPlayer, mapID, lineID, npcID, itemID, equipInfo)
          
     # 放不下的发邮件   
     if mailItemList:
@@ -6171,7 +6170,7 @@
     NetPackCommon.SendFakePack(curPlayer, npcInfoPack)
     return
 
-def SendGameServerGoodItemRecord(mapID, lineID, npcID, playerName, playerID, itemID, equipInfo=[], serverGroupID=0):
+def SendGameServerGoodItemRecord(curPlayer, mapID, lineID, npcID, itemID, equipInfo=[]):
     # @param equipInfo: [equipPlace, itemClassLV, itemColor, itemQuality, itemUserData]
 #    GameWorld.DebugLog("检查物品是否发送GameServer: mapID=%s, npcID=%s, playerName=%s, itemID=%s" 
 #                       % (mapID, npcID, playerName, itemID))
@@ -6201,8 +6200,10 @@
                 needRecord = True
     if not needRecord:
         return
-    
-    dropEquipMsg = str([playerID, playerName, mapID, lineID, npcID, itemID, itemUserData, weightValue, serverGroupID])
+    playerID = curPlayer.GetID()
+    playerName = curPlayer.GetName()
+    serverGroupID = PlayerControl.GetPlayerServerGroupID(curPlayer)
+    dropEquipMsg = str([playerID, playerName, mapID, lineID, npcID, itemID, itemUserData, weightValue, serverGroupID, curPlayer.GetLV()])
     GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, 'BossDropGoodItem', dropEquipMsg, len(dropEquipMsg))
     GameWorld.DebugLog("发送GameServer记录拾取掉落好物品: %s" % dropEquipMsg, playerID)
     return

--
Gitblit v1.8.0