| | |
| | | ("BYTE", "PacketCnt", 0),
|
| | | ),
|
| | |
|
| | | "ActFeastRedPacketSucc":(
|
| | | ("BYTE", "FeastDay", 1),
|
| | | ("list", "FeastSuccIDList", 0),
|
| | | ),
|
| | |
|
| | | "NPCShow":(
|
| | | ("DWORD", "NPCID", 1),
|
| | | ("DWORD", "MapID", 1),
|
| | |
| | | "ZhuXianEquipDecompose":(
|
| | | ("BYTE", "ClassLV", 1),
|
| | | ("dict", "DecomposeInfo", 0),
|
| | | ),
|
| | |
|
| | | "ActFeastWeekParty":(
|
| | | ("DWORD", "CfgID", 1),
|
| | | ("char", "StartDate", 0),
|
| | | ("char", "EndDate", 0),
|
| | | ("WORD", "AdvanceMinutes", 0),
|
| | | ("BYTE", "IsDayReset", 0),
|
| | | ("BYTE", "ResetType", 0),
|
| | | ("WORD", "LVLimit", 0),
|
| | | ("list", "TemplateID", 0),
|
| | | ("dict", "PointAward", 0),
|
| | | ),
|
| | |
|
| | | "FeastWeekParty":(
|
| | | ("BYTE", "TemplateID", 1),
|
| | | ("BYTE", "ActionType", 0),
|
| | | ("DWORD", "TotalTimes", 0),
|
| | | ("WORD", "SingleTimes", 0),
|
| | | ("list", "Reward", 0),
|
| | | ("WORD", "Point", 0),
|
| | | ),
|
| | |
|
| | | "NewAllPeopleParty":(
|
| | | ("BYTE", "ID", 1),
|
| | | ("WORD", "TotalTimes", 0),
|
| | | ("WORD", "AddPoint", 0),
|
| | | ),
|
| | |
|
| | | "NewAllPeoplePartyAward":(
|
| | | ("BYTE", "WorldLvNum", 1),
|
| | | ("DWORD", "Index", 1),
|
| | | ("DWORD", "NeedPoint", 0),
|
| | | ("dict", "Award", 0),
|
| | | ),
|
| | |
|
| | | "ZhuXianStoneAttr":(
|
| | | ("BYTE", "SuitType", 1),
|
| | | ("BYTE", "ShareSoneLV", 1),
|
| | | ("list", "AttrIDList", 0),
|
| | | ("list", "AttrValueList", 0),
|
| | | ),
|
| | | }
|
| | |
|
| | |
| | | def GetMoneyType(self): return self.MoneyType # 金钱类型
|
| | | def GetPacketCnt(self): return self.PacketCnt # 红包个数 |
| | | |
| | | # 节日红包每日成就表 |
| | | class IPY_ActFeastRedPacketSucc(): |
| | | |
| | | def __init__(self): |
| | | self.FeastDay = 0
|
| | | self.FeastSuccIDList = [] |
| | | return |
| | | |
| | | def GetFeastDay(self): return self.FeastDay # 节日第几天
|
| | | def GetFeastSuccIDList(self): return self.FeastSuccIDList # 节日成就ID列表 |
| | | |
| | | # NPC秀表 |
| | | class IPY_NPCShow(): |
| | | |
| | |
| | | |
| | | def GetClassLV(self): return self.ClassLV # 阶级
|
| | | def GetDecomposeInfo(self): return self.DecomposeInfo # {(产出物品ID,..):饼图,..} |
| | | |
| | | # 节日巡礼活动时间表 |
| | | class IPY_ActFeastWeekParty(): |
| | | |
| | | def __init__(self): |
| | | self.CfgID = 0
|
| | | self.StartDate = ""
|
| | | self.EndDate = ""
|
| | | self.AdvanceMinutes = 0
|
| | | self.IsDayReset = 0
|
| | | self.ResetType = 0
|
| | | self.LVLimit = 0
|
| | | self.TemplateID = []
|
| | | self.PointAward = {} |
| | | return |
| | | |
| | | def GetCfgID(self): return self.CfgID # 配置ID
|
| | | def GetStartDate(self): return self.StartDate # 开启日期
|
| | | def GetEndDate(self): return self.EndDate # 结束日期
|
| | | def GetAdvanceMinutes(self): return self.AdvanceMinutes # 前端提前X分钟展示活动
|
| | | def GetIsDayReset(self): return self.IsDayReset # 是否每天重置
|
| | | def GetResetType(self): return self.ResetType # 重置类型,0-0点重置;1-5点重置
|
| | | def GetLVLimit(self): return self.LVLimit # 限制等级
|
| | | def GetTemplateID(self): return self.TemplateID # 模板编号
|
| | | def GetPointAward(self): return self.PointAward # 总积分奖励 |
| | | |
| | | # 节日巡礼模板表 |
| | | class IPY_FeastWeekParty(): |
| | | |
| | | def __init__(self): |
| | | self.TemplateID = 0
|
| | | self.ActionType = 0
|
| | | self.TotalTimes = 0
|
| | | self.SingleTimes = 0
|
| | | self.Reward = []
|
| | | self.Point = 0 |
| | | return |
| | | |
| | | def GetTemplateID(self): return self.TemplateID # 模板ID
|
| | | def GetActionType(self): return self.ActionType # 活动条目ID
|
| | | def GetTotalTimes(self): return self.TotalTimes # 可完成的总次数,0表示不限次数
|
| | | def GetSingleTimes(self): return self.SingleTimes # 单次领奖需要的次数
|
| | | def GetReward(self): return self.Reward # 奖励物品
|
| | | def GetPoint(self): return self.Point # 积分 |
| | | |
| | | # 新仙界盛典-全民来嗨表 |
| | | class IPY_NewAllPeopleParty(): |
| | | |
| | | def __init__(self): |
| | | self.ID = 0
|
| | | self.TotalTimes = 0
|
| | | self.AddPoint = 0 |
| | | return |
| | | |
| | | def GetID(self): return self.ID # ID
|
| | | def GetTotalTimes(self): return self.TotalTimes # 总次数
|
| | | def GetAddPoint(self): return self.AddPoint # 每完成次数获得嗨点 |
| | | |
| | | # 新仙界盛典-全民来嗨奖励表 |
| | | class IPY_NewAllPeoplePartyAward(): |
| | | |
| | | def __init__(self): |
| | | self.WorldLvNum = 0
|
| | | self.Index = 0
|
| | | self.NeedPoint = 0
|
| | | self.Award = {} |
| | | return |
| | | |
| | | def GetWorldLvNum(self): return self.WorldLvNum # 世界等级档
|
| | | def GetIndex(self): return self.Index # 索引
|
| | | def GetNeedPoint(self): return self.NeedPoint # 需要点数
|
| | | def GetAward(self): return self.Award # 奖励 {"职业":[[物品ID,个数,是否绑定],...], ...} |
| | | |
| | | # 诛仙宝石共鸣属性表 |
| | | class IPY_ZhuXianStoneAttr(): |
| | | |
| | | def __init__(self): |
| | | self.SuitType = 0
|
| | | self.ShareSoneLV = 0
|
| | | self.AttrIDList = []
|
| | | self.AttrValueList = [] |
| | | return |
| | | |
| | | def GetSuitType(self): return self.SuitType # 套装类型
|
| | | def GetShareSoneLV(self): return self.ShareSoneLV # 共鸣等级
|
| | | def GetAttrIDList(self): return self.AttrIDList # 属性ID列表
|
| | | def GetAttrValueList(self): return self.AttrValueList # 属性值列表 |
| | |
|
| | |
|
| | | def Log(msg, playerID=0, par=0):
|
| | |
| | | self.ipyFamilyActivityLen = len(self.ipyFamilyActivityCache)
|
| | | self.ipyFamilyRedPackCache = self.__LoadFileData("FamilyRedPack", IPY_FamilyRedPack)
|
| | | self.ipyFamilyRedPackLen = len(self.ipyFamilyRedPackCache)
|
| | | self.ipyActFeastRedPacketSuccCache = self.__LoadFileData("ActFeastRedPacketSucc", IPY_ActFeastRedPacketSucc)
|
| | | self.ipyActFeastRedPacketSuccLen = len(self.ipyActFeastRedPacketSuccCache)
|
| | | self.ipyNPCShowCache = self.__LoadFileData("NPCShow", IPY_NPCShow)
|
| | | self.ipyNPCShowLen = len(self.ipyNPCShowCache)
|
| | | self.ipySealDemonCache = self.__LoadFileData("SealDemon", IPY_SealDemon)
|
| | |
| | | self.ipyZhuXianTowerLen = len(self.ipyZhuXianTowerCache)
|
| | | self.ipyZhuXianEquipDecomposeCache = self.__LoadFileData("ZhuXianEquipDecompose", IPY_ZhuXianEquipDecompose)
|
| | | self.ipyZhuXianEquipDecomposeLen = len(self.ipyZhuXianEquipDecomposeCache)
|
| | | self.ipyActFeastWeekPartyCache = self.__LoadFileData("ActFeastWeekParty", IPY_ActFeastWeekParty)
|
| | | self.ipyActFeastWeekPartyLen = len(self.ipyActFeastWeekPartyCache)
|
| | | self.ipyFeastWeekPartyCache = self.__LoadFileData("FeastWeekParty", IPY_FeastWeekParty)
|
| | | self.ipyFeastWeekPartyLen = len(self.ipyFeastWeekPartyCache)
|
| | | self.ipyNewAllPeoplePartyCache = self.__LoadFileData("NewAllPeopleParty", IPY_NewAllPeopleParty)
|
| | | self.ipyNewAllPeoplePartyLen = len(self.ipyNewAllPeoplePartyCache)
|
| | | self.ipyNewAllPeoplePartyAwardCache = self.__LoadFileData("NewAllPeoplePartyAward", IPY_NewAllPeoplePartyAward)
|
| | | self.ipyNewAllPeoplePartyAwardLen = len(self.ipyNewAllPeoplePartyAwardCache)
|
| | | self.ipyZhuXianStoneAttrCache = self.__LoadFileData("ZhuXianStoneAttr", IPY_ZhuXianStoneAttr)
|
| | | self.ipyZhuXianStoneAttrLen = len(self.ipyZhuXianStoneAttrCache)
|
| | | Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict))
|
| | | Log("IPY_DataMgr InitOK!")
|
| | | return
|
| | |
| | | def GetFamilyActivityByIndex(self, index): return self.ipyFamilyActivityCache[index]
|
| | | def GetFamilyRedPackCount(self): return self.ipyFamilyRedPackLen
|
| | | def GetFamilyRedPackByIndex(self, index): return self.ipyFamilyRedPackCache[index]
|
| | | def GetActFeastRedPacketSuccCount(self): return self.ipyActFeastRedPacketSuccLen
|
| | | def GetActFeastRedPacketSuccByIndex(self, index): return self.ipyActFeastRedPacketSuccCache[index]
|
| | | def GetNPCShowCount(self): return self.ipyNPCShowLen
|
| | | def GetNPCShowByIndex(self, index): return self.ipyNPCShowCache[index]
|
| | | def GetSealDemonCount(self): return self.ipySealDemonLen
|
| | |
| | | def GetZhuXianTowerByIndex(self, index): return self.ipyZhuXianTowerCache[index]
|
| | | def GetZhuXianEquipDecomposeCount(self): return self.ipyZhuXianEquipDecomposeLen
|
| | | def GetZhuXianEquipDecomposeByIndex(self, index): return self.ipyZhuXianEquipDecomposeCache[index]
|
| | | def GetActFeastWeekPartyCount(self): return self.ipyActFeastWeekPartyLen
|
| | | def GetActFeastWeekPartyByIndex(self, index): return self.ipyActFeastWeekPartyCache[index]
|
| | | def GetFeastWeekPartyCount(self): return self.ipyFeastWeekPartyLen
|
| | | def GetFeastWeekPartyByIndex(self, index): return self.ipyFeastWeekPartyCache[index]
|
| | | def GetNewAllPeoplePartyCount(self): return self.ipyNewAllPeoplePartyLen
|
| | | def GetNewAllPeoplePartyByIndex(self, index): return self.ipyNewAllPeoplePartyCache[index]
|
| | | def GetNewAllPeoplePartyAwardCount(self): return self.ipyNewAllPeoplePartyAwardLen
|
| | | def GetNewAllPeoplePartyAwardByIndex(self, index): return self.ipyNewAllPeoplePartyAwardCache[index]
|
| | | def GetZhuXianStoneAttrCount(self): return self.ipyZhuXianStoneAttrLen
|
| | | def GetZhuXianStoneAttrByIndex(self, index): return self.ipyZhuXianStoneAttrCache[index]
|
| | |
|
| | | IPYData = IPY_DataMgr()
|
| | | def IPY_Data(): return IPYData
|