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/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldBoss.py | 28 +++++++++++++++++++++++++++- 1 files changed, 27 insertions(+), 1 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldBoss.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldBoss.py index dd7e024..9fdc15c 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldBoss.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/GameWorldBoss.py @@ -45,6 +45,7 @@ import PyGameData import PlayerGeTui import time +import IPY_GameServer @@ -178,7 +179,7 @@ Sync_BossInfo(None, [bossID]) # 仙盟归属boss的重置 - if bossID in PyGameData.g_familyOwnerBossInfo: + if isAlive and bossID in PyGameData.g_familyOwnerBossInfo: PyGameData.g_familyOwnerBossInfo.pop(bossID) return @@ -1050,6 +1051,7 @@ return PyGameData.g_familyOwnerBossInfo.update(msgInfo) + #GameWorld.DebugLog(" PyGameData.g_familyOwnerBossInfo=%s" % PyGameData.g_familyOwnerBossInfo) return #// AC 04 查询仙盟抢Boss所有Boss当前进度 #tagCGQueryAllFamilyBossHurt @@ -1079,3 +1081,27 @@ NetPackCommon.SendFakePack(curPlayer, hurtPack) return +#// AC 05 召集仙盟成员打boss #tagCGCallupFamilyMemberToBoss +# +#struct tagCGCallupFamilyMemberToBoss +#{ +# tagHead Head; +# DWORD NPCID; +#}; +def OnCallupFamilyMemberToBoss(index, clientData, tick): + curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index) + playerID = curPlayer.GetPlayerID() + npcID = clientData.NPCID + + curFamily = curPlayer.GetFamily() + if curFamily == None: + return + curMember = curFamily.FindMember(playerID) + if curMember == None: + return + if curMember.GetFamilyLV() == IPY_GameServer.fmlMember: + GameWorld.DebugLog("普通成员无法召集!", playerID) + return + PlayerControl.FamilyNotify(curFamily.GetID(), "FairyGrabBossHelp", [npcID]) + return + -- Gitblit v1.8.0