|  |  |  | 
|---|
|  |  |  | ("list", "LoginAwardItemList", 0), | 
|---|
|  |  |  | ), | 
|---|
|  |  |  |  | 
|---|
|  |  |  | "ActFeastWish":( | 
|---|
|  |  |  | ("DWORD", "CfgID", 1), | 
|---|
|  |  |  | ("char", "StartDate", 0), | 
|---|
|  |  |  | ("char", "EndDate", 0), | 
|---|
|  |  |  | ("dict", "TemplateIDInfo", 0), | 
|---|
|  |  |  | ), | 
|---|
|  |  |  |  | 
|---|
|  |  |  | "ActFeastWishBottle":( | 
|---|
|  |  |  | ("BYTE", "TemplateID", 1), | 
|---|
|  |  |  | ("BYTE", "WishBottleNum", 0), | 
|---|
|  |  |  | ("WORD", "NeedWishValue", 0), | 
|---|
|  |  |  | ("BYTE", "ChooseTimeMax", 0), | 
|---|
|  |  |  | ("dict", "ChoosePrizeItem", 0), | 
|---|
|  |  |  | ("list", "GoodItemIDList", 0), | 
|---|
|  |  |  | ("char", "WorldNotifyKey", 0), | 
|---|
|  |  |  | ), | 
|---|
|  |  |  |  | 
|---|
|  |  |  | "ActFeastWishPool":( | 
|---|
|  |  |  | ("BYTE", "TemplateID", 1), | 
|---|
|  |  |  | ("list", "WishPoolItemWeightInfo", 0), | 
|---|
|  |  |  | ("list", "WishPoolClientItemShow", 0), | 
|---|
|  |  |  | ("list", "GoodItemIDList", 0), | 
|---|
|  |  |  | ("char", "WorldNotifyKey", 0), | 
|---|
|  |  |  | ), | 
|---|
|  |  |  |  | 
|---|
|  |  |  | "ZhuXianBoss":( | 
|---|
|  |  |  | ("DWORD", "NPCID", 0), | 
|---|
|  |  |  | ("BYTE", "LineID", 1), | 
|---|
|  |  |  | 
|---|
|  |  |  | def GetDayNum(self): return self.DayNum # 第X天从1开始 | 
|---|
|  |  |  | def GetLoginAwardItemList(self): return self.LoginAwardItemList # 奖励列表[[物品ID,个数,是否拍品], ...] | 
|---|
|  |  |  |  | 
|---|
|  |  |  | # 节日祝福时间表 | 
|---|
|  |  |  | class IPY_ActFeastWish(): | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def __init__(self): | 
|---|
|  |  |  | self.CfgID = 0 | 
|---|
|  |  |  | self.StartDate = "" | 
|---|
|  |  |  | self.EndDate = "" | 
|---|
|  |  |  | self.TemplateIDInfo = {} | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def GetCfgID(self): return self.CfgID # 配置ID | 
|---|
|  |  |  | def GetStartDate(self): return self.StartDate # 开启日期 | 
|---|
|  |  |  | def GetEndDate(self): return self.EndDate # 结束日期 | 
|---|
|  |  |  | def GetTemplateIDInfo(self): return self.TemplateIDInfo # 模板信息 {(世界等级A,B):模板编号, ...} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | # 节日祝福瓶模板表 | 
|---|
|  |  |  | class IPY_ActFeastWishBottle(): | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def __init__(self): | 
|---|
|  |  |  | self.TemplateID = 0 | 
|---|
|  |  |  | self.WishBottleNum = 0 | 
|---|
|  |  |  | self.NeedWishValue = 0 | 
|---|
|  |  |  | self.ChooseTimeMax = 0 | 
|---|
|  |  |  | self.ChoosePrizeItem = {} | 
|---|
|  |  |  | self.GoodItemIDList = [] | 
|---|
|  |  |  | self.WorldNotifyKey = "" | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def GetTemplateID(self): return self.TemplateID # 模板ID | 
|---|
|  |  |  | def GetWishBottleNum(self): return self.WishBottleNum # 祝福瓶编号 | 
|---|
|  |  |  | def GetNeedWishValue(self): return self.NeedWishValue # 单次领奖所需祝福值 | 
|---|
|  |  |  | def GetChooseTimeMax(self): return self.ChooseTimeMax # 最大可领奖次数 | 
|---|
|  |  |  | def GetChoosePrizeItem(self): return self.ChoosePrizeItem # 选择奖励物品信息,选完为止 {记录索引:[物品ID,个数,是否拍品], ...} | 
|---|
|  |  |  | def GetGoodItemIDList(self): return self.GoodItemIDList # 需要广播的物品ID列表 [物品ID, ...] | 
|---|
|  |  |  | def GetWorldNotifyKey(self): return self.WorldNotifyKey # 全服广播key,参数(玩家名, 物品ID, 物品数据, 个数,) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | # 节日祝福池模板表 | 
|---|
|  |  |  | class IPY_ActFeastWishPool(): | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def __init__(self): | 
|---|
|  |  |  | self.TemplateID = 0 | 
|---|
|  |  |  | self.WishPoolItemWeightInfo = [] | 
|---|
|  |  |  | self.WishPoolClientItemShow = [] | 
|---|
|  |  |  | self.GoodItemIDList = [] | 
|---|
|  |  |  | self.WorldNotifyKey = "" | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def GetTemplateID(self): return self.TemplateID # 模板ID | 
|---|
|  |  |  | def GetWishPoolItemWeightInfo(self): return self.WishPoolItemWeightInfo # 祝福池产出物品权重 [[权重, [物品ID,个数]], ..] | 
|---|
|  |  |  | def GetWishPoolClientItemShow(self): return self.WishPoolClientItemShow # 前端展示物品列表 [物品ID, ...] | 
|---|
|  |  |  | def GetGoodItemIDList(self): return self.GoodItemIDList # 需要广播的物品ID列表 [物品ID, ...] | 
|---|
|  |  |  | def GetWorldNotifyKey(self): return self.WorldNotifyKey # 全服广播key,参数(玩家名, 物品ID, 物品数据, 个数,) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | # 诛仙BOSS表 | 
|---|
|  |  |  | class IPY_ZhuXianBoss(): | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | self.ipyActFeastLoginLen = len(self.ipyActFeastLoginCache) | 
|---|
|  |  |  | self.ipyActFeastLoginAwardCache = self.__LoadFileData("ActFeastLoginAward", IPY_ActFeastLoginAward) | 
|---|
|  |  |  | self.ipyActFeastLoginAwardLen = len(self.ipyActFeastLoginAwardCache) | 
|---|
|  |  |  | self.ipyActFeastWishCache = self.__LoadFileData("ActFeastWish", IPY_ActFeastWish) | 
|---|
|  |  |  | self.ipyActFeastWishLen = len(self.ipyActFeastWishCache) | 
|---|
|  |  |  | self.ipyActFeastWishBottleCache = self.__LoadFileData("ActFeastWishBottle", IPY_ActFeastWishBottle) | 
|---|
|  |  |  | self.ipyActFeastWishBottleLen = len(self.ipyActFeastWishBottleCache) | 
|---|
|  |  |  | self.ipyActFeastWishPoolCache = self.__LoadFileData("ActFeastWishPool", IPY_ActFeastWishPool) | 
|---|
|  |  |  | self.ipyActFeastWishPoolLen = len(self.ipyActFeastWishPoolCache) | 
|---|
|  |  |  | self.ipyZhuXianBossCache = self.__LoadFileData("ZhuXianBoss", IPY_ZhuXianBoss) | 
|---|
|  |  |  | self.ipyZhuXianBossLen = len(self.ipyZhuXianBossCache) | 
|---|
|  |  |  | self.ipyActFeastWeekPartyCache = self.__LoadFileData("ActFeastWeekParty", IPY_ActFeastWeekParty) | 
|---|
|  |  |  | 
|---|
|  |  |  | def GetActFeastLoginByIndex(self, index): return self.ipyActFeastLoginCache[index] | 
|---|
|  |  |  | def GetActFeastLoginAwardCount(self): return self.ipyActFeastLoginAwardLen | 
|---|
|  |  |  | def GetActFeastLoginAwardByIndex(self, index): return self.ipyActFeastLoginAwardCache[index] | 
|---|
|  |  |  | def GetActFeastWishCount(self): return self.ipyActFeastWishLen | 
|---|
|  |  |  | def GetActFeastWishByIndex(self, index): return self.ipyActFeastWishCache[index] | 
|---|
|  |  |  | def GetActFeastWishBottleCount(self): return self.ipyActFeastWishBottleLen | 
|---|
|  |  |  | def GetActFeastWishBottleByIndex(self, index): return self.ipyActFeastWishBottleCache[index] | 
|---|
|  |  |  | def GetActFeastWishPoolCount(self): return self.ipyActFeastWishPoolLen | 
|---|
|  |  |  | def GetActFeastWishPoolByIndex(self, index): return self.ipyActFeastWishPoolCache[index] | 
|---|
|  |  |  | def GetZhuXianBossCount(self): return self.ipyZhuXianBossLen | 
|---|
|  |  |  | def GetZhuXianBossByIndex(self, index): return self.ipyZhuXianBossCache[index] | 
|---|
|  |  |  | def GetActFeastWeekPartyCount(self): return self.ipyActFeastWeekPartyLen | 
|---|