From e5a52d63b822c0c8624ef45a05a3656fae22d303 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 08 十二月 2020 18:54:10 +0800 Subject: [PATCH] 8605 【港台】【BT】【长尾】【后端】新增限时集字活动 --- ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py | 82 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 82 insertions(+), 0 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py b/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py index 0878b73..ddae138 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py @@ -347,6 +347,30 @@ ("BYTE", "IsDayReset", 0), ), + "ActCollectWords":( + ("DWORD", "CfgID", 1), + ("char", "ActMark", 0), + ("list", "PlatformList", 0), + ("list", "ServerGroupIDList", 0), + ("char", "StartDate", 0), + ("char", "EndDate", 0), + ("dict", "NotifyInfoStart", 0), + ("dict", "NotifyInfoEnd", 0), + ("list", "NotifyInfoLoop", 0), + ), + + "ActCollectWords2":( + ("DWORD", "CfgID", 1), + ("char", "ActMark", 0), + ("list", "PlatformList", 0), + ("list", "ServerGroupIDList", 0), + ("char", "StartDate", 0), + ("char", "EndDate", 0), + ("dict", "NotifyInfoStart", 0), + ("dict", "NotifyInfoEnd", 0), + ("list", "NotifyInfoLoop", 0), + ), + "ActBossReborn":( ("DWORD", "CfgID", 1), ("list", "ServerGroupIDList", 0), @@ -1265,6 +1289,56 @@ def GetNotifyInfoLoop(self): return self.NotifyInfoLoop # 全服提示信息 - 循环广播[间隔分钟, 广播key] def GetIsDayReset(self): return self.IsDayReset # 是否每天重置 +# 集字活动时间表 +class IPY_ActCollectWords(): + + def __init__(self): + self.CfgID = 0 + self.ActMark = "" + self.PlatformList = [] + self.ServerGroupIDList = [] + self.StartDate = "" + self.EndDate = "" + self.NotifyInfoStart = {} + self.NotifyInfoEnd = {} + self.NotifyInfoLoop = [] + return + + def GetCfgID(self): return self.CfgID # 配置ID + def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 + def GetServerGroupIDList(self): return self.ServerGroupIDList # 服务器ID列表 + def GetStartDate(self): return self.StartDate # 开启日期 + def GetEndDate(self): return self.EndDate # 结束日期 + def GetNotifyInfoStart(self): return self.NotifyInfoStart # 全服提示信息 - 相对开始时间 + def GetNotifyInfoEnd(self): return self.NotifyInfoEnd # 全服提示信息 - 相对结束时间 + def GetNotifyInfoLoop(self): return self.NotifyInfoLoop # 全服提示信息 - 循环广播[间隔分钟, 广播key] + +# 集字活动时间表2 +class IPY_ActCollectWords2(): + + def __init__(self): + self.CfgID = 0 + self.ActMark = "" + self.PlatformList = [] + self.ServerGroupIDList = [] + self.StartDate = "" + self.EndDate = "" + self.NotifyInfoStart = {} + self.NotifyInfoEnd = {} + self.NotifyInfoLoop = [] + return + + def GetCfgID(self): return self.CfgID # 配置ID + def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 + def GetServerGroupIDList(self): return self.ServerGroupIDList # 服务器ID列表 + def GetStartDate(self): return self.StartDate # 开启日期 + def GetEndDate(self): return self.EndDate # 结束日期 + def GetNotifyInfoStart(self): return self.NotifyInfoStart # 全服提示信息 - 相对开始时间 + def GetNotifyInfoEnd(self): return self.NotifyInfoEnd # 全服提示信息 - 相对结束时间 + def GetNotifyInfoLoop(self): return self.NotifyInfoLoop # 全服提示信息 - 循环广播[间隔分钟, 广播key] + # BOSS复活活动时间表 class IPY_ActBossReborn(): @@ -1885,6 +1959,10 @@ self.ipyActExpRateLen = len(self.ipyActExpRateCache) self.ipyActCostRebateCache = self.__LoadFileData("ActCostRebate", IPY_ActCostRebate) self.ipyActCostRebateLen = len(self.ipyActCostRebateCache) + self.ipyActCollectWordsCache = self.__LoadFileData("ActCollectWords", IPY_ActCollectWords) + self.ipyActCollectWordsLen = len(self.ipyActCollectWordsCache) + self.ipyActCollectWords2Cache = self.__LoadFileData("ActCollectWords2", IPY_ActCollectWords2) + self.ipyActCollectWords2Len = len(self.ipyActCollectWords2Cache) self.ipyActBossRebornCache = self.__LoadFileData("ActBossReborn", IPY_ActBossReborn) self.ipyActBossRebornLen = len(self.ipyActBossRebornCache) self.ipyActFairyCeremonyCache = self.__LoadFileData("ActFairyCeremony", IPY_ActFairyCeremony) @@ -2161,6 +2239,10 @@ def GetActExpRateByIndex(self, index): return self.ipyActExpRateCache[index] def GetActCostRebateCount(self): return self.ipyActCostRebateLen def GetActCostRebateByIndex(self, index): return self.ipyActCostRebateCache[index] + def GetActCollectWordsCount(self): return self.ipyActCollectWordsLen + def GetActCollectWordsByIndex(self, index): return self.ipyActCollectWordsCache[index] + def GetActCollectWords2Count(self): return self.ipyActCollectWords2Len + def GetActCollectWords2ByIndex(self, index): return self.ipyActCollectWords2Cache[index] def GetActBossRebornCount(self): return self.ipyActBossRebornLen def GetActBossRebornByIndex(self, index): return self.ipyActBossRebornCache[index] def GetActFairyCeremonyCount(self): return self.ipyActFairyCeremonyLen -- Gitblit v1.8.0