From 27bc9586f194150f48f914b937c5a98f73a6650e Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 09 一月 2019 19:32:20 +0800 Subject: [PATCH] 5722 【后端】【1.5】跨服BOSS开发(支持拾取物品、货币、好物品记录) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py | 8 ++------ 1 files changed, 2 insertions(+), 6 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 fe4c469..5334251 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py @@ -5947,7 +5947,7 @@ NetPackCommon.SendFakePack(curPlayer, npcInfoPack) return -def SendGameServerGoodItemRecord(mapID, npcID, playerName, playerID, itemID, equipInfo=[]): +def SendGameServerGoodItemRecord(mapID, npcID, playerName, playerID, itemID, equipInfo=[], serverGroupID=0): # @param equipInfo: [equipPlace, itemClassLV, itemColor, itemQuality, itemUserData] # GameWorld.DebugLog("检查物品是否发送GameServer: mapID=%s, npcID=%s, playerName=%s, itemID=%s" # % (mapID, npcID, playerName, itemID)) @@ -5978,13 +5978,9 @@ if not needRecord: return - dropEquipMsg = str([playerID, playerName, mapID, npcID, itemID, itemUserData, weightValue]) + dropEquipMsg = str([playerID, playerName, mapID, npcID, itemID, itemUserData, weightValue, serverGroupID]) GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, 'BossDropGoodItem', dropEquipMsg, len(dropEquipMsg)) GameWorld.DebugLog("发送GameServer记录拾取掉落好物品: %s" % dropEquipMsg, playerID) - - msgList = [playerName, playerID, mapID, npcID, itemID, itemUserData] - - PlayerControl.WorldNotify(0, 'DropRecord' , msgList) return #// A5 52 购买功能NPC采集次数 #tagCMBuyCollectionCnt -- Gitblit v1.8.0