From 6c9e5f47e1d65e9f66b84fa995305ca96891914c Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 30 八月 2024 18:32:57 +0800 Subject: [PATCH] 10256 【越南】【砍树】排行榜名次加入积分限制(优化本服榜单、跨服榜单查询返回的OrderIndex为实际名次-1; boss历练、仙匣秘境、古宝养成、骑宠养成相关活动榜单支持根据具体名次规则更新实际排名;) --- ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_QueryBillboard.py | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_QueryBillboard.py b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_QueryBillboard.py index 8c6485e..00c1eb6 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_QueryBillboard.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_QueryBillboard.py @@ -21,6 +21,7 @@ #导入 +import PlayerBillboard import ShareDefine import GMCommon import GameWorld @@ -55,6 +56,10 @@ GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_TypeNumErr) return False + billboardMgr = PlayerBillboard.GetBillboardMgr() + billboardObj = billboardMgr.GetBillboardObj(billBoardType) + idOrderDict = billboardObj.GetIDOrderDict() + dataTotal = billBoard.GetCount() fromIndex = startRank - 1 toIndex = fromIndex + queryCount @@ -67,8 +72,9 @@ if not billBoardData: continue - rank = index + 1 + rank = idOrderDict.get(billBoardData.GetID(), index + 1) billBoardDict = { + "Index":index, "Rank":rank, "ID":billBoardData.GetID(), "ID2":billBoardData.GetID2(), -- Gitblit v1.8.0