| | |
| | | ("dict", "CollectAppointAward", 0),
|
| | | ("BYTE", "AlchemyDiffLV", 0),
|
| | | ("BYTE", "NotifyCollectResult", 0),
|
| | | ("BYTE", "CanBreakCollect", 0),
|
| | | ),
|
| | |
|
| | | "TreasureNPC":(
|
| | |
| | | ("list", "ServerGroupIDList", 0),
|
| | | ),
|
| | |
|
| | | "CrossZonePK":(
|
| | | ("char", "CrossZoneName", 1),
|
| | | ("BYTE", "ZoneID", 1),
|
| | | ("list", "ServerGroupIDList", 0),
|
| | | ),
|
| | |
|
| | | "CrossPenglaiZoneMap":(
|
| | | ("BYTE", "ZoneID", 0),
|
| | | ("DWORD", "MapID", 1),
|
| | |
| | | ("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(): |
| | |
| | | def GetZoneID(self): return self.ZoneID # 赛区ID
|
| | | def GetServerGroupIDList(self): return self.ServerGroupIDList # 赛区服务器组ID列表 |
| | | |
| | | # 跨服分区表竞技场 |
| | | class IPY_CrossZonePK(): |
| | | |
| | | def __init__(self): |
| | | self.CrossZoneName = ""
|
| | | self.ZoneID = 0
|
| | | self.ServerGroupIDList = [] |
| | | return |
| | | |
| | | def GetCrossZoneName(self): return self.CrossZoneName # 跨服分区名
|
| | | def GetZoneID(self): return self.ZoneID # 赛区ID
|
| | | def GetServerGroupIDList(self): return self.ServerGroupIDList # 赛区服务器组ID列表 |
| | | |
| | | # 跨服Boss蓬莱仙境分区地图表 |
| | | class IPY_CrossPenglaiZoneMap(): |
| | | |
| | |
| | | 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.ipyCrossRealmPKOrderAwardLen = len(self.ipyCrossRealmPKOrderAwardCache)
|
| | | self.ipyCrossZoneCommCache = self.__LoadFileData("CrossZoneComm", IPY_CrossZoneComm)
|
| | | self.ipyCrossZoneCommLen = len(self.ipyCrossZoneCommCache)
|
| | | self.ipyCrossZonePKCache = self.__LoadFileData("CrossZonePK", IPY_CrossZonePK)
|
| | | self.ipyCrossZonePKLen = len(self.ipyCrossZonePKCache)
|
| | | self.ipyCrossPenglaiZoneMapCache = self.__LoadFileData("CrossPenglaiZoneMap", IPY_CrossPenglaiZoneMap)
|
| | | self.ipyCrossPenglaiZoneMapLen = len(self.ipyCrossPenglaiZoneMapCache)
|
| | | self.ipyGatherSoulCache = self.__LoadFileData("GatherSoul", IPY_GatherSoul)
|
| | |
| | | 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 GetCrossRealmPKOrderAwardByIndex(self, index): return self.ipyCrossRealmPKOrderAwardCache[index]
|
| | | def GetCrossZoneCommCount(self): return self.ipyCrossZoneCommLen
|
| | | def GetCrossZoneCommByIndex(self, index): return self.ipyCrossZoneCommCache[index]
|
| | | def GetCrossZonePKCount(self): return self.ipyCrossZonePKLen
|
| | | def GetCrossZonePKByIndex(self, index): return self.ipyCrossZonePKCache[index]
|
| | | def GetCrossPenglaiZoneMapCount(self): return self.ipyCrossPenglaiZoneMapLen
|
| | | def GetCrossPenglaiZoneMapByIndex(self, index): return self.ipyCrossPenglaiZoneMapCache[index]
|
| | | def GetGatherSoulCount(self): return self.ipyGatherSoulLen
|
| | |
| | | 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
|