From a075f7841fb2d0a3b32bf10c8bc2df5bf02d6acb Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期日, 14 十二月 2025 14:24:28 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(贾诩所有技能;5022效果支持配置buff额外属性计算方式;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Billboard.py | 39 ++++++++++++++++++++++++---------------
1 files changed, 24 insertions(+), 15 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Billboard.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Billboard.py
index eda747d..309a4f3 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Billboard.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Billboard.py
@@ -26,16 +26,15 @@
GameWorld.DebugAnswer(curPlayer, errInfo)
GameWorld.DebugAnswer(curPlayer, "新增榜单假数据: Billboard 类型 分组值1 分组值2 条数 比较值1可选参数(比较值2 常规值1~5)")
GameWorld.DebugAnswer(curPlayer, "删除榜单假数据: Billboard 类型 分组值1 分组值2")
- GameWorld.DebugAnswer(curPlayer, "榜单类型:0-战力,1-龙魂,2-灵瑶,4-等级,5-坐骑,6-灵宠,7-符印,8-脱机,9-境界,19-助战")
- GameWorld.DebugAnswer(curPlayer, "开服活动榜类型:11-强化,12-坐骑,13-宝石,14-冲级,15-境界,16-战力,18-符印,20-神兵,21-充值,22-灵宠,24-灵根,25-升星,26-洗练")
- GameWorld.DebugAnswer(curPlayer, "运营活动榜类型:17-仙界盛典,23-仙界盛典2,33-boss凭证,36-boss凭证仙盟,38-仙匣,39-古宝,40-骑宠")
- GameWorld.DebugAnswer(curPlayer, "魅力榜单类型:30-总榜,31-周榜,32-日榜")
- GameWorld.DebugAnswer(curPlayer, "运营活动榜类型:150-充值(分组值1配置ID)")
- GameWorld.DebugAnswer(curPlayer, "运营活动榜类型:158-boss凭证,160-凭证仙盟,162-仙匣,163-古宝,164-骑宠")
- GameWorld.DebugAnswer(curPlayer, "古神战场榜类型:151-参与榜,152-召集榜,153-积分榜")
- GameWorld.DebugAnswer(curPlayer, "逐鹿万界榜类型:156-单场榜,157-周榜")
- GameWorld.DebugAnswer(curPlayer, "跨服竞技场榜单:165,分组值1-分区,分组值2-赛季,value2-段位")
+ GameWorld.DebugAnswer(curPlayer, "输出排行榜数据: Billboard p 类型 [分组值1 值2 从x名 到x名]")
GameWorld.DebugAnswer(curPlayer, "注:如果没有特殊说明,本服榜单分组值均为0,跨服榜单分组值1为分区ID,分组2为0")
+
+ nameTypeList = ShareDefine.BillboardNameDict.keys()
+ nameTypeList.sort()
+ for billboardType in nameTypeList:
+ bName = ShareDefine.BillboardNameDict[billboardType]
+ GameWorld.DebugAnswer(curPlayer, "(%s) %s" % (billboardType, bName))
+
return
## 执行逻辑
@@ -55,7 +54,7 @@
return
billboardIndex = value
- if billboardIndex >= ShareDefine.BillboardTypeAllList:
+ if billboardIndex not in ShareDefine.BillboardTypeAllList:
__Help(curPlayer, "榜单类型不存在!")
return
@@ -94,7 +93,7 @@
maxDataCount = billboardObj.GetMaxCount()
count = min(count, maxDataCount - curDataCount)
- FakeName = GameWorld.GbkToCode("假名字")
+ FakeName = GameWorld.GbkToCode("主公")
for i in xrange(count):
dataPlayerID = curDataCount + 1 + i
@@ -146,7 +145,7 @@
return billTypeSign
def __logFackData(curPlayer, gmList):
- ## 输出排行榜数据: Billboard p 类型 分组值1 分组值2
+ ## 输出排行榜数据: Billboard p 类型 分组值1 分组值2 名次A 到B
if len(gmList) <= 1:
GameWorld.DebugAnswer(curPlayer, "榜单数据条数总览")
billboardMgr = DBDataMgr.GetBillboardMgr()
@@ -165,6 +164,8 @@
billboardType = gmList[1]
groupValue1 = gmList[2] if len(gmList) > 2 else 0
groupValue2 = gmList[3] if len(gmList) > 3 else 0
+ fromRank = gmList[4] if len(gmList) > 4 else 0
+ toRank = gmList[5] if len(gmList) > 5 else 0
billboardMgr = DBDataMgr.GetBillboardMgr()
billboardObj = billboardMgr.GetBillboard(billboardType, groupValue1, groupValue2)
billboardObj.SortDelayDo()
@@ -172,16 +173,24 @@
maxDataCount = billboardObj.GetMaxCount()
idOrderDict = billboardObj.GetIDOrderDict()
+ printDebugCnt = 0
billTypeSign = __GetBillTypeSign(billboardType, groupValue1, groupValue2)
- GameWorld.DebugAnswer(curPlayer, "榜单数据(%s)条数: %s/%s 详见日志" % (billTypeSign, curDataCount, maxDataCount))
+ bName = ShareDefine.BillboardNameDict[billboardType]
+ GameWorld.DebugAnswer(curPlayer, "%s(%s)条数: %s/%s 详见日志" % (bName, billTypeSign, curDataCount, maxDataCount))
for index in range(curDataCount):
bbData = billboardObj.At(index)
dataID = bbData.GetID()
rank = idOrderDict.get(dataID, 0)
+ if (fromRank and rank < fromRank) or (toRank and rank > toRank):
+ continue
+ cmpValues = [bbData.GetCmpValue(), bbData.GetCmpValue2(), bbData.GetCmpValue3()]
valueList = [getattr(bbData, "GetValue%s" % num)() for num in range(1, 9)]
- GameWorld.DebugLog("%s,rank=%s,ID=%s,CmpValue=%s,CmpValue2=%s,Value=%s"
- % (index, rank, dataID, bbData.GetCmpValue(), bbData.GetCmpValue2(), valueList), curPlayer.GetPlayerID())
+ if printDebugCnt < 20:
+ printDebugCnt += 1
+ GameWorld.DebugAnswer(curPlayer, "%s,ID:%s,榜值:%s" % (rank, dataID, cmpValues))
+ GameWorld.DebugLog("%s,rank=%s,ID=%s,CmpValues=%s,Value=%s"
+ % (index, rank, dataID, cmpValues, valueList), curPlayer.GetPlayerID())
return
--
Gitblit v1.8.0