| | |
| | | content = sendPack.GetContent()
|
| | | extraValue = sendPack.GetExtraValue()
|
| | | extras = sendPack.GetExtras()
|
| | | crossPlayerName = CrossRealmPlayer.GetCrossPlayerName(curPlayer)
|
| | |
|
| | | ## 发送到跨服服务器,直接使用跨服boss的分区配置
|
| | | dataMsg = {"PlayerID":playerID, "Content":content, "ExtraValue":extraValue, "Extras":extras}
|
| | | dataMsg = {"PlayerID":playerID, "Name":crossPlayerName, "Content":content, "ExtraValue":extraValue, "Extras":extras}
|
| | | CrossRealmMsg.SendMsgToCrossServer(ShareDefine.ClientServerMsg_ChatCrossWorld, dataMsg)
|
| | | return
|
| | |
|
| | |
| | | ## 收到跨服世界频道聊天
|
| | |
|
| | | playerID = msgData["PlayerID"]
|
| | | crossPlayerName = msgData["Name"]
|
| | | content = msgData["Content"]
|
| | | extraValue = msgData["ExtraValue"]
|
| | | extras = msgData["Extras"]
|
| | |
|
| | | curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(playerID)
|
| | | if curPlayer:
|
| | | PlayerChatCountry(curPlayer, content, extraValue, extras)
|
| | | #curPlayer.ChatCountry(content, extraValue, extras)
|
| | | return
|
| | |
|
| | | def PlayerChatCountry(curPlayer, content, extraValue, extras):
|
| | | sendPack = ChNetSendPack.tagTalkCountry()
|
| | | sendPack.Clear()
|
| | | sendPack.Name = CrossRealmPlayer.GetCrossPlayerName(curPlayer)
|
| | | sendPack.Name = crossPlayerName
|
| | | sendPack.NameLen = len(sendPack.Name)
|
| | | sendPack.PlayerID = curPlayer.GetPlayerID()
|
| | | sendPack.PlayerID = playerID
|
| | | sendPack.Content = content
|
| | | sendPack.Len = len(sendPack.Content)
|
| | | sendPack.ExtraValue = extraValue
|
| | |
| | | if PlayerControl.GetIsTJG(player):
|
| | | continue
|
| | | NetPackCommon.SendFakePack(player, sendPack)
|
| | | |
| | | #curPlayer.ChatCountry(content, extraValue, extras)
|
| | | return
|
| | |
|
| | | ## 公频(封包参数)
|