From 6cbc122791ae385ff04c4317113f1fe7abed7494 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 04 六月 2024 17:58:08 +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 6324890..b9a7a1d 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py @@ -774,6 +774,20 @@ ("WORD", "LVLimit", 0), ), + "ActTask":( + ("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), + ), + "ActLoginNew":( ("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_ActTask(): + + 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_ActLoginNew(): @@ -2491,6 +2524,7 @@ self.__LoadFileData("CrossPenglaiZoneMap", onlyCheck) self.__LoadFileData("CrossDemonLandZoneMap", onlyCheck) self.__LoadFileData("ActWeekParty", onlyCheck) + self.__LoadFileData("ActTask", onlyCheck) self.__LoadFileData("ActLoginNew", onlyCheck) self.__LoadFileData("ActLoginAward", onlyCheck) self.__LoadFileData("ActFeastWeekParty", onlyCheck) @@ -3212,6 +3246,13 @@ self.CheckLoadData("ActWeekParty") return self.ipyActWeekPartyCache[index] + def GetActTaskCount(self): + self.CheckLoadData("ActTask") + return self.ipyActTaskLen + def GetActTaskByIndex(self, index): + self.CheckLoadData("ActTask") + return self.ipyActTaskCache[index] + def GetActLoginNewCount(self): self.CheckLoadData("ActLoginNew") return self.ipyActLoginNewLen -- Gitblit v1.8.0