From 103b3e459dccf87e3985911a36882d07b8f63efa Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 30 八月 2018 18:04:33 +0800 Subject: [PATCH] Add: 增加仙盟召集功能; Fix:修复击杀进度同步错误问题; --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FamilyRobBoss.py | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FamilyRobBoss.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FamilyRobBoss.py index 5113087..d6f129b 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FamilyRobBoss.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FamilyRobBoss.py @@ -244,9 +244,11 @@ npcFamilyHisHurtDict = hurtMgr.familyHisHurtDict.get(key, {}) npcFamilyPlayerIDDict = hurtMgr.familyPlayerIDDict.get(key, {}) + ownerFamilyName = "" if ownerFamilyID in npcFamilyHisHurtDict: ownerFamilyHisHurt = npcFamilyHisHurtDict[ownerFamilyID] - PlayerControl.WorldNotify(0, "FairyGrabBossDead", [ownerFamilyHisHurt.name, bossID]) + ownerFamilyName = ownerFamilyHisHurt.name + PlayerControl.WorldNotify(0, "FairyGrabBossDead", [ownerFamilyName, bossID]) # 击杀结算前强制排序历史玩家伤血 npcHisHurtPlayerList = npcPlayerHisHurtDict.values() @@ -304,6 +306,10 @@ if curPlayer: NetPackCommon.SendFakePack(curPlayer, hurtPack) + # 击杀时主动同步进度 + syncMsg = str({bossID:[0, maxHP, ownerFamilyID, ownerFamilyName]}) + GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, "FamilyOwnerBossInfo", syncMsg, len(syncMsg)) + # 伤血在NPCCommon统一清 return -- Gitblit v1.8.0