| | |
| | |
|
| | | curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(playerID)
|
| | | if curPlayer:
|
| | | curPlayer.ChatCountry(content, extraValue, extras)
|
| | | 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.NameLen = len(sendPack.Name)
|
| | | sendPack.PlayerID = curPlayer.GetPlayerID()
|
| | | sendPack.Content = content
|
| | | sendPack.Len = len(sendPack.Content)
|
| | | sendPack.ExtraValue = extraValue
|
| | | sendPack.Extras = extras
|
| | | |
| | | # 全服广播在线玩家
|
| | | playerManager = GameWorld.GetPlayerManager()
|
| | | for i in xrange(playerManager.GetActivePlayerCount()):
|
| | | player = playerManager.GetActivePlayerAt(i)
|
| | | if player == None:
|
| | | continue
|
| | | if PlayerControl.GetIsTJG(player):
|
| | | continue
|
| | | NetPackCommon.SendFakePack(player, sendPack)
|
| | | |
| | | return
|
| | |
|
| | | ## 公频(封包参数)
|