|  |  |  | 
|---|
|  |  |  | import CrossRealmMsg | 
|---|
|  |  |  | import ChNetSendPack | 
|---|
|  |  |  | import NetPackCommon | 
|---|
|  |  |  | import json | 
|---|
|  |  |  | import PlayerGeTui | 
|---|
|  |  |  | import re | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | curCache = None | 
|---|
|  |  |  | tagPlayerName = "" | 
|---|
|  |  |  | if tagPlayer == None: | 
|---|
|  |  |  | curCache = PlayerViewCache.ViewCacheMgr.FindCache(tagPlayerID) | 
|---|
|  |  |  | curCache = PlayerViewCache.FindViewCache(tagPlayerID) | 
|---|
|  |  |  | if not curCache: | 
|---|
|  |  |  | PlayerControl.NotifyCode(curPlayer, "CanootTalk10") | 
|---|
|  |  |  | return | 
|---|
|  |  |  | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if curCache: | 
|---|
|  |  |  | cacheDict = json.loads(curCache.GetPropData()) | 
|---|
|  |  |  | cacheDict = PlayerViewCache.GetCachePropDataDict(curCache) | 
|---|
|  |  |  | tagPlayerName = cacheDict["Name"] | 
|---|
|  |  |  |  | 
|---|
|  |  |  | talkType = sendPack.GetTalkType() | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def ClientServerMsg_ChatCrossWorld(serverGroupID, msgData, tick): | 
|---|
|  |  |  | ## 收到子服跨服世界频道聊天 | 
|---|
|  |  |  | zoneIpyData = CrossRealmPlayer.GetCrossCommZoneIpyDataByServerGroupID(serverGroupID) | 
|---|
|  |  |  | zoneIpyData = CrossRealmPlayer.GetCrossZoneIpyDataByServerGroupID(0, serverGroupID) | 
|---|
|  |  |  | if not zoneIpyData: | 
|---|
|  |  |  | return | 
|---|
|  |  |  | serverGroupIDList = zoneIpyData.GetServerGroupIDList() | 
|---|