From 1c1914f26b2ec722fb53318af8319299f13c0e23 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 16 四月 2025 15:00:24 +0800 Subject: [PATCH] 10367 【越南】【英语】【BT】【砍树】仙盟攻城战-服务端(奖励增加支持仙官;优化称号、仙官、膜拜关联逻辑及配置;支持物品激活仙盟徽章;C026C028增加Job信息;) --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerQuery.py | 268 +++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 237 insertions(+), 31 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerQuery.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerQuery.py index 450a64d..0d5af85 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerQuery.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerQuery.py @@ -34,6 +34,7 @@ import ChConfig import GMCommon import DirtyList +import CrossBillboard import PlayerBillboard import PlayerExam import PlayerControl @@ -43,6 +44,7 @@ import GameWorldOpenServerCampaign import ShareDefine import GameDataRecord +import PlayerPackData import PlayerCompensation import PlayerFB import UpdatePlayerName @@ -50,7 +52,10 @@ import GameWorldBoss import GameWorldFamilyWar #import PlayerFamilyTech +import PlayerFamilyEmblem +import PlayerFamilyZhenfa import PlayerFamilyRedPacket +import PlayerFamilyZhenbaoge import PlayerFBHelpBattle import PlayerHorsePetBoss #import PlayerFamilyStore @@ -66,15 +71,33 @@ import PyGameData import PlayerTalk import PlayerStore +import CrossYaomoBoss import CrossRealmPlayer import CrossRealmMsg import CrossRealmPK +import CrossChampionship +import CrossBattlefield +import CrossFamilyFlagwar +import CrossActAllRecharge +import CrossFamilyGCZ +import PlayerActGubao +import PlayerActHorsePetTrain +import PlayerActLianqi +import PlayerActXianXiaMJ +import PlayerActBossTrial +import PlayerActFamilyCTGAssist import ChPyNetSendPack import NetPackCommon import AuctionHouse import PlayerFairyDomain +import GameWorldSkyTower +import GameWorldMineArea +import PlayerTurnFight +import GameWorldArena import GameWorldItem +import PlayerRecData import PlayerAssist +import PlayerLove import time import datetime @@ -244,6 +267,13 @@ elif queryType == ChConfig.queryType_FamilyImpeach: #玩家使用弹劾符 PlayerFamily.PlayerExecLeaderImpeach(curPlayer, tick) + return + + elif queryType == ChConfig.queryType_FamilyEmblem: + #玩家激活仙盟徽章 + familyID = curPlayer.GetFamilyID() + emblemID = GameWorld.ToIntDef(sendCMD) + PlayerFamilyEmblem.AddFamilyEmblem(familyID, emblemID) return #角色改名 @@ -495,15 +525,28 @@ callName = pack.GetCallName() resultName = pack.GetResultName() #[queryid, 人气值, 物品ID] + if callName == "PlayerRealLoginOK": + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + loginMsg = eval(resultName) + ChPlayer.DoPlayerRealLoginOK(curPlayer, loginMsg, tick) + return + if callName == "SendMail": - title, content, getDays, playerIDList, addItemList, gold, goldPaper, silver, detail, moneySource = eval(resultName) + title, content, getDays, playerIDList, addItemList, gold, goldPaper, silver, detail, moneySource, crossMail = eval(resultName) limitTime = str(GameWorld.GetDatetimeByDiffDays(getDays)) limitTime = limitTime.split(".")[0] - PlayerCompensation.SendPersonalItemMail(title, content, limitTime, playerIDList, addItemList, gold, goldPaper, silver, detail=detail, moneySource=moneySource) + PlayerCompensation.SendPersonalItemMail(title, content, limitTime, playerIDList, addItemList, gold, goldPaper, silver, detail=detail, moneySource=moneySource, crossMail=crossMail) return if callName == "SendMailBatch": PlayerCompensation.SendPersonalItemMailBatch(eval(resultName)) + return + + if callName == "SendEntireMail": + mailTypeKey, getDays, limitLV, limitLVType, addItemList, paramList, gold, goldPaper, silver, detail, moneySource = eval(resultName) + PlayerCompensation.SendEntireMail(mailTypeKey, getDays, limitLV, limitLVType, addItemList, paramList, gold, goldPaper, silver, detail, moneySource) return if callName == "SendMsgToCrossServer": @@ -542,6 +585,10 @@ if callName == "UpdateBillboard": #地图服务器更新排行榜 PlayerBillboard.MapServer_UpdateBillboard(eval(resultName), tick) return + + if callName == "UpdateCrossBillboard": #地图服务器更新跨服排行榜 + CrossBillboard.MapServer_UpdateCrossBillboard(eval(resultName)) + return if callName == 'PyAddFamilyInfoValue': #地图服务器增加战盟信息值 curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) @@ -556,6 +603,13 @@ if callName == 'ExitExam': #地图服务器玩家退出答题 PlayerExam.MapServer_ExitAction(srcPlayerID) + return + + if callName == 'FuncOpen': + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + PlayerControl.DoFuncOpenLogic(curPlayer, eval(resultName)) return if callName == 'TeamNotify': @@ -597,22 +651,9 @@ GameDataRecord.ChangeCoinCnt(eval(resultName)) return - #跨服匹配PK战斗结算 - if callName == "CrossPKOver": - CrossRealmPK.MapServer_CrossPKOver(eval(resultName), tick) - return - - #跨服匹配房间开启 - if callName == "CrossPKRoomOpen": - CrossRealmPK.MapServer_CrossPKRoomOpen(eval(resultName), tick) - return - - #跨服匹配PK取消匹配 - if callName == "CrossRealmPKCancel": - curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) - if not curPlayer: - return - CrossRealmPK.SendCancelCrossRealmPKMatch(curPlayer, resultName) + #请求玩家的打包数据 + if callName == "ReuestPlayerPackData": + PlayerPackData.OnMGReuestPlayerPackData(eval(resultName)) return #跨服PK请求玩家当前排名 @@ -626,6 +667,69 @@ #跨服注册结果 if callName == "CrossRealmReg": CrossRealmPlayer.OnCrossRealmRegOK(srcPlayerID, eval(resultName), tick) + return + + # 跨服战场结算 + if callName =="CrossBattlefieldOver": + CrossBattlefield.MapServer_CrossBattlefieldOver(eval(resultName)) + return + + # 跨服仙盟夺旗战/逐鹿万界 结算 + if callName =="CrossFamilyFlagwarOver": + CrossFamilyFlagwar.MapServer_CrossFamilyFlagwarOver(eval(resultName)) + return + + # 跨服妖魔boss伤害结算 + if callName =="CrossYaomoBossHurtInfo": + CrossYaomoBoss.MapServer_CrossYaomoBossHurtInfo(eval(resultName)) + return + + # 跨服全民充值 + if callName == "CrossActAllRecharge": + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + CrossActAllRecharge.MapServer_CrossActAllRecharge(curPlayer, eval(resultName)) + return + + # Boss历练 + if callName == "BossTrial": + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + PlayerActBossTrial.MapServer_BossTrial(curPlayer, eval(resultName)) + return + + # 仙匣秘境 + if callName == "XianXiaMJ": + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + PlayerActXianXiaMJ.MapServer_XianXiaMJ(curPlayer, eval(resultName)) + return + + # 古宝养成 + if callName == "ActGubao": + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + PlayerActGubao.MapServer_Gubao(curPlayer, eval(resultName)) + return + + # 骑宠养成 + if callName == "ActHorsePetTrain": + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + PlayerActHorsePetTrain.MapServer_HorsePetTrain(curPlayer, eval(resultName)) + return + + # 炼器 + if callName == "ActLianqi": + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + PlayerActLianqi.MapServer_Lianqi(curPlayer, eval(resultName)) return #py喇叭聊天 @@ -647,6 +751,13 @@ # 战盟联赛 if callName =="FamilyWarOver": GameWorldFamilyWar.MapServer_FamilyWarOver(eval(resultName)) + return + + # 增加玩家Rec数据 + if callName == "AddPlayerRec": + curPlayer = None if not srcPlayerID else GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + recType, valueList, userData, notifyType = eval(resultName) + PlayerRecData.MapServer_AddPlayerRec(curPlayer, recType, valueList, userData, notifyType) return # 删除通用玩家Rec数据 @@ -672,12 +783,6 @@ return - # 战盟副本boss开始、被击杀 - if callName =="FamilyBossFBState": - PlayerFamilyBoss.FamilyBossOnKilled(eval(resultName), tick) - return - - # 击杀boss掉落好物品 if callName =="BossDropGoodItem": GameWorldBoss.OnKillBossDropGoodItem(eval(resultName), tick) @@ -794,11 +899,11 @@ PlayerTeam.MapServer_TeamMemFuncData(srcPlayerID, eval(resultName)) return - #封魔坛结束 - if callName == "SealDemonOver": - playerID, lineID, rank = eval(resultName) - PyDataManager.GetSealDemonRecordManager().UpdateSealDemonRecord(playerID,lineID,rank) - return +# #封魔坛结束 +# if callName == "SealDemonOver": +# playerID, lineID, rank = eval(resultName) +# PyDataManager.GetSealDemonRecordManager().UpdateSealDemonRecord(playerID,lineID,rank) +# return #查询副本功能线路人数 if callName == "FBLinePlayerCnt": @@ -853,6 +958,22 @@ #多仙盟BOSS结束 if callName =="AllFamilyBossOver": PlayerFamilyBoss.AllFamilyBossKilled() + return + #仙盟阵法 + if callName =="FamilyZhenfa": + curPlayer = None + if srcPlayerID: + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + PlayerFamilyZhenfa.MapServer_FamilyZhenfa(curPlayer, eval(resultName)) + return + #仙盟传功 + if callName =="FamilyChuangong": + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + PlayerFamily.MapServer_FamilyChuangong(curPlayer, eval(resultName)) return #骑宠BOSS结束 if callName =="HorsePetBossOver": @@ -919,11 +1040,93 @@ # 副本助战 - if callName =="FBHelpBattle": + if callName == "FBHelpBattle": curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) if not curPlayer: return ret = PlayerFBHelpBattle.MapServer_FBHelpBattle(curPlayer, eval(resultName)) + if ret == None: + return + resultName = '%s' % ret + + # 竞技场 + if callName == "Arena": + ret = GameWorldArena.MapServer_Arena(srcPlayerID, eval(resultName)) + resultName = '%s' % ret if ret != None else '' # 需要重置间隔,每次都回复 + + # 仙盟充值互助 + if callName == "FamilyCTGAssist": + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + ret = PlayerActFamilyCTGAssist.MapServer_FamilyCTGAssist(curPlayer, eval(resultName)) + if ret == None: + return + resultName = '%s' % ret + + # 仙盟攻城战 + if callName == "FamilyGCZ": + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + ret = CrossFamilyGCZ.MapServer_FamilyGCZ(curPlayer, eval(resultName)) + if ret == None: + return + resultName = '%s' % ret + + # 仙盟珍宝阁 + if callName =="FamilyZhenbaoge": + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + ret = PlayerFamilyZhenbaoge.MapServer_ZhenbaogeOP(curPlayer, eval(resultName)) + if ret == None: + return + resultName = '%s' % ret + + # 仙盟boss + if callName == "FamilyBoss": + ret = PlayerFamilyBoss.MapServer_FamilyBoss(eval(resultName), tick) + if ret == None: + return + resultName = '%s' % ret + + # 情缘 + if callName == "Love": + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + ret = PlayerLove.MapServer_Love(curPlayer, eval(resultName)) + if ret == None: + return + resultName = '%s' % ret + + # 回合制 + if callName == "TurnFight": + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + ret = PlayerTurnFight.MapServer_TurnFight(curPlayer, eval(resultName)) + if ret == None: + return + resultName = '%s' % ret + + # 福地 + if callName == "MineArea": + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + ret = GameWorldMineArea.MapServer_MineArea(curPlayer, eval(resultName)) + if ret == None: + return + resultName = '%s' % ret + + # 天星塔 + if callName == "SkyTower": + curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) + if not curPlayer: + return + ret = GameWorldSkyTower.MapServer_SkyTowerInfo(curPlayer, eval(resultName)) if ret == None: return resultName = '%s' % ret @@ -934,7 +1137,10 @@ # if not curPlayer: # return # resultName = '%s' % PlayerFamilyStore.DoMapServerFamilyStore(curPlayer, eval(resultName), tick) - + + if not srcPlayerID: + return + srcPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID) if not srcPlayer: -- Gitblit v1.8.0