| | |
| | | __SetIsAlive(bossID, isAlive)
|
| | | # 全服广播世界boss变更信息
|
| | | Sync_BossInfo(None, [bossID])
|
| | | |
| | | # 仙盟归属boss的重置
|
| | | if bossID in PyGameData.g_familyOwnerBossInfo:
|
| | | PyGameData.g_familyOwnerBossInfo.pop(bossID)
|
| | | return
|
| | |
|
| | |
|
| | |
| | | return
|
| | | NetPackCommon.SendFakePack(curPlayer, packData)
|
| | | return |
| | |
|
| | | def MapServer_FamilyOwnerBossInfo(msgInfo):
|
| | | ## 地图同步仙盟归属boss信息
|
| | | |
| | | #GameWorld.DebugLog("地图同步仙盟归属boss信息: %s" % msgInfo)
|
| | | if not isinstance(msgInfo, dict):
|
| | | return
|
| | | |
| | | PyGameData.g_familyOwnerBossInfo.update(msgInfo)
|
| | | return
|
| | |
|
| | | #// AC 04 查询仙盟抢Boss所有Boss当前进度 #tagCGQueryAllFamilyBossHurt
|
| | | #
|
| | | #struct tagCGQueryAllFamilyBossHurt
|
| | | #{
|
| | | # tagHead Head;
|
| | | #};
|
| | | def OnQueryAllFamilyBossHurt(index, clientData, tick):
|
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | | |
| | | hurtPack = ChPyNetSendPack.tagGCAllFamilyBossHurtInfoList()
|
| | | hurtPack.NPCHurtInfo = []
|
| | | for npcID, hurtInfo in PyGameData.g_familyOwnerBossInfo.items():
|
| | | curHP, maxHP, firstFamilyID, firstFamilyName = hurtInfo
|
| | | hurtInfo = ChPyNetSendPack.tagGCFamilyBossHurtInfo()
|
| | | hurtInfo.NPCID = npcID
|
| | | hurtInfo.CurHP = curHP%ShareDefine.Def_PerPointValue
|
| | | hurtInfo.CurHPEx = curHP/ShareDefine.Def_PerPointValue
|
| | | hurtInfo.MaxHP = maxHP%ShareDefine.Def_PerPointValue
|
| | | hurtInfo.MaxHPEx = maxHP/ShareDefine.Def_PerPointValue
|
| | | hurtInfo.FamilyID = firstFamilyID
|
| | | hurtInfo.FamilyName = firstFamilyName
|
| | | hurtInfo.NameLen = len(hurtInfo.FamilyName)
|
| | | hurtPack.NPCHurtInfo.append(hurtInfo)
|
| | | hurtPack.NPCCount = len(hurtPack.NPCHurtInfo)
|
| | | NetPackCommon.SendFakePack(curPlayer, hurtPack)
|
| | | return
|
| | |
|