From 69f530796c728e06de914d7afee2e72a618dce2c Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 19 十一月 2024 11:10:23 +0800 Subject: [PATCH] 1111 跨服榜Name2长度改为65 --- ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossRealmMsg.py | 159 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 156 insertions(+), 3 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossRealmMsg.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossRealmMsg.py index dd90ae3..eb0409a 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossRealmMsg.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossRealmMsg.py @@ -17,21 +17,35 @@ import GameWorld import ShareDefine +import PlayerAssist import PlayerControl +import PlayerPackData +import PlayerFuncTeam import CrossLuckyCloudBuy import IPY_GameServer import CrossRealmPlayer import PlayerCompensation +import PlayerActBossTrial +import PlayerActXianXiaMJ +import PlayerActGubao +import PlayerActHorsePetTrain import CrossActionControl +import CrossActAllRecharge +import CrossFamilyFlagwar +import CrossChampionship import CrossBattlefield import CrossBillboard +import CrossYaomoBoss import GameWorldBoss import CrossRealmPK +import GameXiangong +import GameWorship import PlayerQuery import PlayerTalk import PyGameData import CrossBoss import ChConfig +import ChPlayer import PlayerFB import GMShell @@ -99,7 +113,10 @@ elif msgType == ShareDefine.ClientServerMsg_ChatCrossWorld: PlayerTalk.ClientServerMsg_ChatCrossWorld(serverGroupID, msgData, tick) - + + elif msgType == ShareDefine.ClientServerMsg_PlayerLoginout: + ChPlayer.ClientServerMsg_PlayerLoginout(serverGroupID, msgData) + elif msgType == ShareDefine.ClientServerMsg_GMCMD: GMShell.ClientServerMsg_GMCMD(msgData, tick) @@ -108,6 +125,12 @@ elif msgType == ShareDefine.ClientServerMsg_ViewPlayerCache: CrossRealmPlayer.ClientServerMsg_ViewPlayerCache(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_PullOtherPlayerPackData: + PlayerPackData.ClientServerMsg_PullOtherPlayerPackData(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_PlayerPackData: + PlayerPackData.ClientServerMsg_PlayerPackData(serverGroupID, msgData) elif msgType == ShareDefine.ClientServerMsg_QueryNPCInfo: PlayerQuery.ClientServerMsg_QueryNPCInfo(serverGroupID, msgData) @@ -121,6 +144,9 @@ elif msgType == ShareDefine.ClientServerMsg_AddBuff: MapServer_CrossAddBuff(msgData) + elif msgType == ShareDefine.ClientServerMsg_CrossAssist: + PlayerAssist.ClientServerMsg_CrossAssist(serverGroupID, msgData, tick) + elif msgType == ShareDefine.ClientServerMsg_BattlefieldBuyOpen: CrossBattlefield.ClientServerMsg_BattlefieldBuyOpen(serverGroupID, msgData) @@ -129,6 +155,63 @@ elif msgType == ShareDefine.ClientServerMsg_BattlefieldCallKick: CrossBattlefield.ClientServerMsg_BattlefieldCallKick(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_BattlefieldCallChange: + CrossBattlefield.ClientServerMsg_BattlefieldCallChange(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_ChampionshipOfficialApply: + CrossChampionship.ClientServerMsg_ChampionshipOfficialApply(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_ChampionshipOfficialApplyReply: + CrossChampionship.ClientServerMsg_ChampionshipOfficialApplyReply(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_ChampionshipOfficialKick: + CrossChampionship.ClientServerMsg_ChampionshipOfficialKick(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_ChampionshipOfficialLeave: + CrossChampionship.ClientServerMsg_ChampionshipOfficialLeave(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_ChampionshipOfficialChallenge: + CrossChampionship.ClientServerMsg_ChampionshipOfficialChallenge(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_ChampionshipGuess: + CrossChampionship.ClientServerMsg_ChampionshipGuess(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_ChampionshipWorship: + CrossChampionship.ClientServerMsg_ChampionshipWorship(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_ActAllRechargeValue: + CrossActAllRecharge.ClientServerMsg_ActAllRechargeValue(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_CrossYaomoBossHurtAward: + CrossYaomoBoss.ClientServerMsg_CrossYaomoBossHurtAward(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_BossTrialSubmit: + PlayerActBossTrial.ClientServerMsg_BossTrialSubmit(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_XianXiaMJScore: + PlayerActXianXiaMJ.ClientServerMsg_XianXiaMJScore(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_GubaoScore: + PlayerActGubao.ClientServerMsg_GubaoScore(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_HorsePetTrainScore: + PlayerActHorsePetTrain.ClientServerMsg_HorsePetTrainScore(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_CreateFuncTeam: + PlayerFuncTeam.ClientServerMsg_CreateFuncTeam(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_ChangeFuncTeam: + PlayerFuncTeam.ClientServerMsg_ChangeFuncTeam(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_FuncTeamMemOP: + PlayerFuncTeam.ClientServerMsg_FuncTeamMemOP(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_QueryFuncTeam: + PlayerFuncTeam.ClientServerMsg_QueryFuncTeam(serverGroupID, msgData) + + elif msgType == ShareDefine.ClientServerMsg_QueryXiangong: + GameXiangong.ClientServerMsg_QueryXiangong(serverGroupID, msgData) # 需要发送到地图服务器处理的 elif msgType in [ShareDefine.ClientServerMsg_Reborn, ShareDefine.ClientServerMsg_CollectNPC]: @@ -159,11 +242,15 @@ ''' CrossRealmPlayer.Sync_CrossCommInitDataToClientServer(serverGroupID) CrossRealmPK.Sync_CrossPKInitDataToClientServer(tick, serverGroupID) + CrossChampionship.Sync_CrossChampionshipDataToClientServer(serverGroupID) CrossBattlefield.Sync_CrossBattlefieldDataToClientServer(serverGroupID) CrossBoss.Sync_CrossBossInitDataToClientServer(serverGroupID) CrossActionControl.Sync_CrossActInfoToClientServer(serverGroupID) CrossLuckyCloudBuy.Sync_LuckyCloudBuyDataToClientServer(tick, serverGroupID) + CrossActAllRecharge.Sync_AllRechargeDataToClientServer(serverGroupID) + CrossYaomoBoss.Sync_CrossYaomoBossDataToClientServer(serverGroupID) PlayerCompensation.Sync_CrossMailPlayerIDToClientServer(serverGroupID) + GameWorship.Sync_CrossWorshipToClientServer(serverGroupID) return def MapServer_CrossServerReceiveMsg(msgType, msgData, serverGroupID): @@ -213,8 +300,8 @@ ''' if not GameWorld.IsCrossServer(): return - if not dataMsg: - return + #if not dataMsg: + # return if serverGroupIDList == None: serverGroupIDList = [] @@ -269,11 +356,23 @@ elif msgType == ShareDefine.CrossServerMsg_Notify: PlayerControl.CrossServerMsg_Notify(msgData) + elif msgType == ShareDefine.CrossServerMsg_PlayerLoginout: + ChPlayer.CrossServerMsg_PlayerLoginout(msgData) + elif msgType == ShareDefine.CrossServerMsg_ChatCrossWorld: PlayerTalk.CrossServerMsg_ChatCrossWorld(msgData) elif msgType == ShareDefine.CrossServerMsg_ViewPlayerCacheRet: CrossRealmPlayer.CrossServerMsg_ViewPlayerCacheRet(msgData, tick) + + elif msgType == ShareDefine.CrossServerMsg_PlayerPackDataState: + PlayerPackData.CrossServerMsg_PlayerPackDataState(msgData) + + elif msgType == ShareDefine.CrossServerMsg_PullPlayerPackData: + PlayerPackData.CrossServerMsg_PullPlayerPackData(msgData) + + elif msgType == ShareDefine.CrossServerMsg_PushPlayerPackData: + PlayerPackData.CrossServerMsg_PushPlayerPackData(msgData) elif msgType == ShareDefine.CrossServerMsg_PKMatchReqRet: CrossRealmPK.CrossServerMsg_PKMatchReqRet(msgData) @@ -311,6 +410,54 @@ elif msgType == ShareDefine.CrossServerMsg_BattlefieldOver: CrossBattlefield.CrossServerMsg_BattlefieldOver(msgData) + elif msgType == ShareDefine.CrossServerMsg_FamilyFlagwarOver: + CrossFamilyFlagwar.CrossServerMsg_FamilyFlagwarOver(msgData) + + elif msgType == ShareDefine.CrossServerMsg_CrossBossTrialFamilyAward: + PlayerActBossTrial.CrossServerMsg_CrossBossTrialFamilyAward(msgData) + + elif msgType == ShareDefine.CrossServerMsg_FuncTeamInfo: + PlayerFuncTeam.CrossServerMsg_FuncTeamInfo(msgData) + + elif msgType == ShareDefine.CrossServerMsg_FuncTeamDel: + PlayerFuncTeam.CrossServerMsg_FuncTeamDel(msgData) + + elif msgType == ShareDefine.CrossServerMsg_FuncTeamList: + PlayerFuncTeam.CrossServerMsg_FuncTeamList(msgData) + + elif msgType == ShareDefine.CrossServerMsg_Worship: + GameWorship.CrossServerMsg_Worship(msgData) + + elif msgType == ShareDefine.CrossServerMsg_Xiangong: + GameXiangong.CrossServerMsg_Xiangong(msgData) + + elif msgType == ShareDefine.CrossServerMsg_ChampionshipState: + CrossChampionship.CrossServerMsg_ChampionshipState(msgData) + + elif msgType == ShareDefine.CrossServerMsg_ChampionshipPlayer: + CrossChampionship.CrossServerMsg_ChampionshipPlayer(msgData) + + elif msgType == ShareDefine.CrossServerMsg_ChampionshipGroup: + CrossChampionship.CrossServerMsg_ChampionshipGroup(msgData) + + elif msgType == ShareDefine.CrossServerMsg_ChampionshipGuess: + CrossChampionship.CrossServerMsg_ChampionshipGuess(msgData, tick) + + elif msgType == ShareDefine.CrossServerMsg_ChampionshipOfficial: + CrossChampionship.CrossServerMsg_ChampionshipOfficial(msgData) + + elif msgType == ShareDefine.CrossServerMsg_ChampionshipDailyOfficial: + CrossChampionship.CrossServerMsg_ChampionshipDailyOfficial(msgData) + + elif msgType == ShareDefine.CrossServerMsg_ActAllRechargeInfo: + CrossActAllRecharge.CrossServerMsg_ActAllRechargeInfo(msgData) + + elif msgType == ShareDefine.CrossServerMsg_CrossDailyActionState: + CrossActionControl.CrossServerMsg_CrossDailyActionState(msgData) + + elif msgType == ShareDefine.CrossServerMsg_CrossYaomoBossHurtInfo: + CrossYaomoBoss.CrossServerMsg_CrossYaomoBossHurtInfo(msgData) + elif msgType == ShareDefine.CrossServerMsg_SyncBillboard: CrossBillboard.CrossServerMsg_SyncBillboard(msgData, tick) @@ -319,6 +466,9 @@ elif msgType == ShareDefine.CrossServerMsg_CrossBossState: CrossBoss.CrossServerMsg_CrossBossState(msgData) + + elif msgType == ShareDefine.CrossServerMsg_CrossAssist: + PlayerAssist.CrossServerMsg_CrossAssist(msgData, tick) elif msgType == ShareDefine.CrossServerMsg_CrossActInfo: CrossActionControl.CrossServerMsg_CrossActInfo(msgData) @@ -338,6 +488,9 @@ elif msgType == ShareDefine.CrossServerMsg_EnterFBRet: PlayerFB.CrossServerMsg_EnterFBRet(msgData, tick) + elif msgType == ShareDefine.CrossServerMsg_EnterVSRoomRet: + PlayerFB.CrossServerMsg_EnterVSRoomRet(msgData, tick) + elif msgType == ShareDefine.CrossServerMsg_SendMail: PlayerCompensation.CrossServerMsg_SendMail(msgData) -- Gitblit v1.8.0