From dfc8b201c29a56e3754f917d0519051ab7deed72 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 05 六月 2024 11:41:02 +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 b9a7a1d..b033c44 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py
@@ -774,6 +774,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),
@@ -2085,6 +2099,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():
     
@@ -2524,6 +2557,7 @@
         self.__LoadFileData("CrossPenglaiZoneMap", onlyCheck)
         self.__LoadFileData("CrossDemonLandZoneMap", onlyCheck)
         self.__LoadFileData("ActWeekParty", onlyCheck)
+        self.__LoadFileData("ActBuyCountGift", onlyCheck)
         self.__LoadFileData("ActTask", onlyCheck)
         self.__LoadFileData("ActLoginNew", onlyCheck)
         self.__LoadFileData("ActLoginAward", onlyCheck)
@@ -3246,6 +3280,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