| | |
| | | ("dict", "CollectAppointAward", 0),
|
| | | ("BYTE", "AlchemyDiffLV", 0),
|
| | | ("BYTE", "NotifyCollectResult", 0),
|
| | | ("BYTE", "CanBreakCollect", 0),
|
| | | ),
|
| | |
|
| | | "TreasureNPC":(
|
| | |
| | | ("BYTE", "NeedAlchemyLV", 0),
|
| | | ("list", "NeedLV", 0),
|
| | | ("DWORD", "Weight", 0),
|
| | | ("DWORD", "HourCntPriLimit", 0),
|
| | | ("DWORD", "DayCntPriLimit", 0),
|
| | | ),
|
| | |
|
| | | "FairyAdventures":(
|
| | |
| | | ("WORD", "MoneyCnt", 1),
|
| | | ("DWORD", "BuffID", 0),
|
| | | ("WORD", "BuffCD", 0),
|
| | | ),
|
| | |
|
| | | "SkillElement":(
|
| | | ("DWORD", "ElementSkillID", 1),
|
| | | ("DWORD", "MainSkillID", 0),
|
| | | ("DWORD", "NeedLV", 0),
|
| | | ),
|
| | | }
|
| | |
|
| | |
| | | self.CollectAward = []
|
| | | self.CollectAppointAward = {}
|
| | | self.AlchemyDiffLV = 0
|
| | | self.NotifyCollectResult = 0 |
| | | self.NotifyCollectResult = 0
|
| | | self.CanBreakCollect = 0 |
| | | return |
| | | |
| | | def GetNPCID(self): return self.NPCID # ID
|
| | |
| | | def GetCollectAward(self): return self.CollectAward # 采集奖励物品,权重列表 [[权重, [物品ID,个数,是否拍品]], ...]
|
| | | def GetCollectAppointAward(self): return self.CollectAppointAward # 采集次数定制产出 {次数:[物品ID,个数,是否拍品], ...}
|
| | | def GetAlchemyDiffLV(self): return self.AlchemyDiffLV # 过滤炼丹等级差,0-不过滤,>0过滤大于自身炼丹等级X级的物品
|
| | | def GetNotifyCollectResult(self): return self.NotifyCollectResult # 是否通知采集结果 |
| | | def GetNotifyCollectResult(self): return self.NotifyCollectResult # 是否通知采集结果
|
| | | def GetCanBreakCollect(self): return self.CanBreakCollect # 被攻击是否打断采集 |
| | | |
| | | # 宝箱怪表 |
| | | class IPY_TreasureNPC(): |
| | |
| | | self.CostEnergy = 0
|
| | | self.NeedAlchemyLV = 0
|
| | | self.NeedLV = []
|
| | | self.Weight = 0 |
| | | self.Weight = 0
|
| | | self.HourCntPriLimit = 0
|
| | | self.DayCntPriLimit = 0 |
| | | return |
| | | |
| | | def GetID(self): return self.ID # 事件编号
|
| | |
| | | def GetCostEnergy(self): return self.CostEnergy # 消耗体力
|
| | | def GetNeedAlchemyLV(self): return self.NeedAlchemyLV # 出现的炼丹等级要求
|
| | | def GetNeedLV(self): return self.NeedLV # 出现的玩家等级要求
|
| | | def GetWeight(self): return self.Weight # 权重 |
| | | def GetWeight(self): return self.Weight # 权重
|
| | | def GetHourCntPriLimit(self): return self.HourCntPriLimit # 个人每小时次数限制
|
| | | def GetDayCntPriLimit(self): return self.DayCntPriLimit # 个人每天次数限制 |
| | | |
| | | # 缥缈奇遇表 |
| | | class IPY_FairyAdventures(): |
| | |
| | | def GetMoneyCnt(self): return self.MoneyCnt # 仙玉数量
|
| | | def GetBuffID(self): return self.BuffID # BuffID
|
| | | def GetBuffCD(self): return self.BuffCD # 间隔时间s |
| | | |
| | | # 技能升级表 |
| | | class IPY_SkillElement(): |
| | | |
| | | def __init__(self): |
| | | self.ElementSkillID = 0
|
| | | self.MainSkillID = 0
|
| | | self.NeedLV = 0 |
| | | return |
| | | |
| | | def GetElementSkillID(self): return self.ElementSkillID # 专精技能ID
|
| | | def GetMainSkillID(self): return self.MainSkillID # 主技能ID
|
| | | def GetNeedLV(self): return self.NeedLV # 选择需要等级 |
| | |
|
| | |
|
| | | def Log(msg, playerID=0, par=0):
|
| | |
| | | self.ipyFairyDomainAppointLen = len(self.ipyFairyDomainAppointCache)
|
| | | self.ipyFBBuyBuffCache = self.__LoadFileData("FBBuyBuff", IPY_FBBuyBuff)
|
| | | self.ipyFBBuyBuffLen = len(self.ipyFBBuyBuffCache)
|
| | | self.ipySkillElementCache = self.__LoadFileData("SkillElement", IPY_SkillElement)
|
| | | self.ipySkillElementLen = len(self.ipySkillElementCache)
|
| | | Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict))
|
| | | Log("IPY_DataMgr InitOK!")
|
| | | return
|
| | |
| | | def GetFairyDomainAppointByIndex(self, index): return self.ipyFairyDomainAppointCache[index]
|
| | | def GetFBBuyBuffCount(self): return self.ipyFBBuyBuffLen
|
| | | def GetFBBuyBuffByIndex(self, index): return self.ipyFBBuyBuffCache[index]
|
| | | def GetSkillElementCount(self): return self.ipySkillElementLen
|
| | | def GetSkillElementByIndex(self, index): return self.ipySkillElementCache[index]
|
| | |
|
| | | IPYData = IPY_DataMgr()
|
| | | def IPY_Data(): return IPYData
|