From 2048eaf865d835648b5108bbc46820f2da343bc8 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 05 六月 2024 11:38:37 +0800 Subject: [PATCH] 10173 【主干】【香港】【越南】BOSS凭证(新增购买次数礼包活动) --- ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py | 41 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py b/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py index d1e23b0..1165b01 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py @@ -773,6 +773,20 @@ ("WORD", "LVLimit", 0), ), + "ActBuyCountGift":( + ("DWORD", "CfgID", 1), + ("list", "PlatformList", 0), + ("list", "ServerGroupIDList", 0), + ("BYTE", "ActNum", 0), + ("char", "StartDate", 0), + ("char", "EndDate", 0), + ("dict", "NotifyInfoStart", 0), + ("dict", "NotifyInfoEnd", 0), + ("list", "NotifyInfoLoop", 0), + ("BYTE", "IsDayReset", 0), + ("BYTE", "ResetType", 0), + ), + "ActTask":( ("DWORD", "CfgID", 1), ("list", "PlatformList", 0), @@ -2071,6 +2085,25 @@ def GetNotifyInfoEnd(self): return self.attrTuple[10] # 全服提示信息 - 相对结束时间 dict def GetLVLimit(self): return self.attrTuple[11] # 限制等级 WORD +# 购买次数礼包活动时间表 +class IPY_ActBuyCountGift(): + + def __init__(self): + self.attrTuple = None + return + + def GetCfgID(self): return self.attrTuple[0] # 配置ID DWORD + def GetPlatformList(self): return self.attrTuple[1] # 活动平台列表["平台A", "平台A", ...],配[]代表所有 list + def GetServerGroupIDList(self): return self.attrTuple[2] # 服务器ID列表 list + def GetActNum(self): return self.attrTuple[3] # 活动分组编号, 活动类型 * 10 + 不同界面编号 BYTE + def GetStartDate(self): return self.attrTuple[4] # 开启日期 char + def GetEndDate(self): return self.attrTuple[5] # 结束日期 char + def GetNotifyInfoStart(self): return self.attrTuple[6] # 全服提示信息 - 相对开始时间 dict + def GetNotifyInfoEnd(self): return self.attrTuple[7] # 全服提示信息 - 相对结束时间 dict + def GetNotifyInfoLoop(self): return self.attrTuple[8] # 全服提示信息 - 循环广播[间隔分钟, 广播key] list + def GetIsDayReset(self): return self.attrTuple[9] # 是否每天重置 BYTE + def GetResetType(self): return self.attrTuple[10] # 重置类型,0-0点重置;1-5点重置 BYTE + # 任务活动时间表 class IPY_ActTask(): @@ -2493,6 +2526,7 @@ self.__LoadFileData("CrossDemonLandZoneMap", onlyCheck) self.__LoadFileData("CrossFamilyFlagwarZoneMap", onlyCheck) self.__LoadFileData("ActWeekParty", onlyCheck) + self.__LoadFileData("ActBuyCountGift", onlyCheck) self.__LoadFileData("ActTask", onlyCheck) self.__LoadFileData("ActLoginNew", onlyCheck) self.__LoadFileData("ActLoginAward", onlyCheck) @@ -3214,6 +3248,13 @@ self.CheckLoadData("ActWeekParty") return self.ipyActWeekPartyCache[index] + def GetActBuyCountGiftCount(self): + self.CheckLoadData("ActBuyCountGift") + return self.ipyActBuyCountGiftLen + def GetActBuyCountGiftByIndex(self, index): + self.CheckLoadData("ActBuyCountGift") + return self.ipyActBuyCountGiftCache[index] + def GetActTaskCount(self): self.CheckLoadData("ActTask") return self.ipyActTaskLen -- Gitblit v1.8.0