| | |
| | | # 通知子服更新玩家总伤害
|
| | | if syncPlayerHurtInfo:
|
| | | serverGroupIDList = []
|
| | | sendMsg = {"syncPlayerHurtInfo":syncPlayerHurtInfo}
|
| | | sendMsg = {"syncPlayerHurtInfo":syncPlayerHurtInfo, "killBoss":1}
|
| | | CrossRealmMsg.SendMsgToClientServer(ShareDefine.CrossServerMsg_CrossYaomoBossHurtInfo, sendMsg, serverGroupIDList)
|
| | |
|
| | | return
|
| | |
| | | #zoneID = msgData["zoneID"]
|
| | | #npcID = msgData["npcID"]
|
| | | syncPlayerHurtInfo = msgData["syncPlayerHurtInfo"]
|
| | | isKillBoss = msgData.get("killBoss") == 1
|
| | |
|
| | | for playerID, hurtInfo in syncPlayerHurtInfo.items():
|
| | | if not PlayerControl.GetDBPlayerAccIDByID(playerID):
|
| | |
| | | continue
|
| | | Sync_CrossYaomoBossPlayerHurtInfo(curPlayer)
|
| | |
|
| | | if awardIndex == None:
|
| | | continue
|
| | | |
| | | # 通知地图发放奖励
|
| | | msgInfo = ["HurtValueAward", [awardIndex, awardItemList]]
|
| | | CrossRealmPlayer.MapServer_QueryCrossPlayerResult(playerID, "CrossYaomoBoss", msgInfo)
|
| | | if awardIndex != None:
|
| | | # 通知地图发放奖励
|
| | | msgInfo = ["HurtValueAward", [awardIndex, awardItemList]]
|
| | | CrossRealmPlayer.MapServer_QueryCrossPlayerResult(playerID, "CrossYaomoBoss", msgInfo)
|
| | | |
| | | if isKillBoss:
|
| | | # 通知地图击杀妖魔boss
|
| | | msgInfo = ["KillYaomoBoss", hurtInfo]
|
| | | CrossRealmPlayer.MapServer_QueryCrossPlayerResult(playerID, "CrossYaomoBoss", msgInfo)
|
| | | |
| | | return
|
| | |
|
| | | def OnPlayerLogin(curPlayer):
|