From 10bec382ebc98f6fcd20fd6ab2806b05a2560299 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 25 十一月 2024 14:42:59 +0800 Subject: [PATCH] 1111 【越南】【砍树】【英文】【tqxbqy】【btgotq】背包相关初始格子数改为读配置 --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerQuery.py | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerQuery.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerQuery.py index f458c71..a48d8cc 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerQuery.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerQuery.py @@ -44,6 +44,7 @@ import GameWorldOpenServerCampaign import ShareDefine import GameDataRecord +import PlayerPackData import PlayerCompensation import PlayerFB import UpdatePlayerName @@ -53,6 +54,7 @@ #import PlayerFamilyTech import PlayerFamilyZhenfa import PlayerFamilyRedPacket +import PlayerFamilyZhenbaoge import PlayerFBHelpBattle import PlayerHorsePetBoss #import PlayerFamilyStore @@ -281,10 +283,6 @@ # 查询地图NPC数量 elif queryType == ChConfig.queryType_NPCCnt: __QueryMapNPCCntInfo(curPlayer, queryCallName, sendCMD, tick) - return - elif queryType == ChConfig.queryType_MirrorPlayer: - data = str({"id" : curPlayer.GetPlayerID(), "mapid" : GameWorld.GetQueryPlayerMapID(curPlayer)}) - GameWorld.GetGameWorld().SendDBLogic(0, queryID, data, len(data)) return else: GameWorld.ErrLog('unKnow queryType = %s' % (queryType)) @@ -643,6 +641,11 @@ GameDataRecord.ChangeCoinCnt(eval(resultName)) return + #请求玩家的打包数据 + if callName == "ReuestPlayerPackData": + PlayerPackData.OnMGReuestPlayerPackData(eval(resultName)) + return + #跨服排位PK战斗结算 if callName == "CrossChampionshipPKOver": CrossChampionship.MapServer_CrossChampionshipPKOver(eval(resultName), tick) @@ -1069,6 +1072,16 @@ 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) -- Gitblit v1.8.0