From c060aabfb4621e897f7b69d6e537fc3ccf59d860 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期一, 28 一月 2019 20:44:25 +0800 Subject: [PATCH] 2969 【BUG】【1.5.200】限时抢购,重新开服全服抢购次数会重置 --- ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py | 567 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 563 insertions(+), 4 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py b/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py index e6d44fc..e4000d5 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/IpyGameDataPY.py @@ -122,10 +122,24 @@ ("dict", "NotifyInfoDict", 0), ), + "FBFunc":( + ("DWORD", "DataMapID", 1), + ("WORD", "HelpPoint", 0), + ), + "FBLine":( ("DWORD", "DataMapID", 1), ("BYTE", "LineID", 1), ("DWORD", "MapID", 0), + ), + + "FBHelpBattle":( + ("DWORD", "DataMapID", 1), + ("BYTE", "LineID", 1), + ("DWORD", "FightPowerMin", 0), + ("DWORD", "FightPowerMax", 0), + ("WORD", "LVLimit", 0), + ("list", "DayFreeHelpCount", 0), ), "ChinMap":( @@ -159,6 +173,20 @@ ("BYTE", "MoneyType", 0), ("BYTE", "PacketCnt", 0), ("BYTE", "LeaderOwn", 0), + ("char", "PacketOpenTime", 0), + ("BYTE", "ValidMinutes", 0), + ), + + "ActFeastRedPacket":( + ("DWORD", "CfgID", 1), + ("char", "ActMark", 0), + ("list", "PlatformList", 0), + ("list", "ServerIDList", 0), + ("char", "StartDate", 0), + ("char", "EndDate", 0), + ("BYTE", "ResetType", 0), + ("list", "RedPacketIDList", 0), + ("WORD", "LVLimit", 0), ), "FuncOpenLV":( @@ -179,9 +207,30 @@ ("DWORD", "ReFightPower", 0), ), + "VipPrivilege":( + ("DWORD", "VIPPriID", 1), + ("DWORD", "VIP0", 0), + ("DWORD", "VIP1", 0), + ("DWORD", "VIP2", 0), + ("DWORD", "VIP3", 0), + ("DWORD", "VIP4", 0), + ("DWORD", "VIP5", 0), + ("DWORD", "VIP6", 0), + ("DWORD", "VIP7", 0), + ("DWORD", "VIP8", 0), + ("DWORD", "VIP9", 0), + ("DWORD", "VIP10", 0), + ("DWORD", "VIP11", 0), + ("DWORD", "VIP12", 0), + ("DWORD", "VIP13", 0), + ("DWORD", "VIP14", 0), + ("DWORD", "VIP15", 0), + ), + "ActSpringSale":( ("DWORD", "CfgID", 1), ("char", "ActMark", 0), + ("list", "PlatformList", 0), ("list", "ServerIDList", 0), ("char", "StartDate", 0), ("char", "EndDate", 0), @@ -198,6 +247,7 @@ "ActFlashGiftbag":( ("DWORD", "CfgID", 1), ("char", "ActMark", 0), + ("list", "PlatformList", 0), ("list", "ServerIDList", 0), ("char", "StartDate", 0), ("char", "EndDate", 0), @@ -214,6 +264,7 @@ "ActExpRate":( ("DWORD", "CfgID", 1), ("char", "ActMark", 0), + ("list", "PlatformList", 0), ("list", "ServerIDList", 0), ("char", "StartDate", 0), ("char", "EndDate", 0), @@ -229,6 +280,7 @@ "ActCostRebate":( ("DWORD", "CfgID", 1), ("char", "ActMark", 0), + ("list", "PlatformList", 0), ("list", "ServerIDList", 0), ("char", "StartDate", 0), ("char", "EndDate", 0), @@ -241,6 +293,7 @@ "ActBossReborn":( ("DWORD", "CfgID", 1), ("char", "ActMark", 0), + ("list", "PlatformList", 0), ("list", "ServerIDList", 0), ("char", "StartDate", 0), ("char", "EndDate", 0), @@ -254,6 +307,7 @@ "ActFairyCeremony":( ("DWORD", "CfgID", 1), ("char", "ActMark", 0), + ("list", "PlatformList", 0), ("list", "ServerIDList", 0), ("char", "StartDate", 0), ("char", "EndDate", 0), @@ -272,6 +326,7 @@ "ActRealmPoint":( ("DWORD", "CfgID", 1), ("char", "ActMark", 0), + ("list", "PlatformList", 0), ("list", "ServerIDList", 0), ("char", "StartDate", 0), ("char", "EndDate", 0), @@ -280,11 +335,13 @@ ("dict", "NotifyInfoEnd", 0), ("WORD", "Multiple", 0), ("WORD", "LVLimit", 0), + ("DWORD", "PointLimit", 0), ), "ActFlashSale":( ("DWORD", "CfgID", 1), ("char", "ActMark", 0), + ("list", "PlatformList", 0), ("list", "ServerIDList", 0), ("char", "StartDate", 0), ("char", "EndDate", 0), @@ -309,6 +366,7 @@ "ActWishingWell":( ("DWORD", "CfgID", 1), ("char", "ActMark", 0), + ("list", "PlatformList", 0), ("list", "ServerIDList", 0), ("char", "StartDate", 0), ("char", "EndDate", 0), @@ -318,6 +376,111 @@ ("dict", "NotifyInfoEnd", 0), ("list", "NotifyInfoLoop", 0), ("WORD", "LVLimit", 0), + ), + + "ActTotalRecharge":( + ("DWORD", "CfgID", 1), + ("char", "ActMark", 0), + ("list", "PlatformList", 0), + ("list", "ServerIDList", 0), + ("char", "StartDate", 0), + ("char", "EndDate", 0), + ("dict", "NotifyInfoStart", 0), + ("dict", "NotifyInfoEnd", 0), + ("list", "NotifyInfoLoop", 0), + ("BYTE", "IsDayReset", 0), + ), + + "CrossRealmPKZone":( + ("BYTE", "ZoneID", 1), + ("char", "ZoneName", 0), + ("list", "ServerGroupIDList", 0), + ), + + "CrossRealmPKSeason":( + ("BYTE", "ZoneID", 1), + ("BYTE", "SeasonID", 0), + ("char", "StartDate", 0), + ("char", "EndDate", 0), + ("char", "EndTime", 0), + ), + + "CrossRealmPKDan":( + ("BYTE", "DanLV", 1), + ("WORD", "LVUpScore", 0), + ("list", "MatchRange", 0), + ), + + "CrossPenglaiZone":( + ("BYTE", "ZoneID", 0), + ("list", "ServerGroupIDList", 0), + ("DWORD", "MapID", 1), + ("DWORD", "DataMapID", 1), + ("BYTE", "CopyMapID", 1), + ), + + "ActWeekParty":( + ("DWORD", "CfgID", 1), + ("char", "ActMark", 0), + ("list", "PlatformList", 0), + ("list", "ServerIDList", 0), + ("char", "StartDate", 0), + ("char", "EndDate", 0), + ("WORD", "AdvanceMinutes", 0), + ("BYTE", "IsDayReset", 0), + ("BYTE", "ResetType", 0), + ("dict", "NotifyInfoStart", 0), + ("dict", "NotifyInfoEnd", 0), + ("WORD", "LVLimit", 0), + ), + + "ActLoginAward":( + ("DWORD", "CfgID", 1), + ("char", "ActMark", 0), + ("list", "PlatformList", 0), + ("list", "ServerIDList", 0), + ("char", "StartDate", 0), + ("char", "EndDate", 0), + ("WORD", "AdvanceMinutes", 0), + ("BYTE", "IsDayReset", 0), + ("BYTE", "ResetType", 0), + ("dict", "NotifyInfoStart", 0), + ("dict", "NotifyInfoEnd", 0), + ("WORD", "LVLimit", 0), + ), + + "ActFeastWeekParty":( + ("DWORD", "CfgID", 1), + ("char", "ActMark", 0), + ("list", "PlatformList", 0), + ("list", "ServerIDList", 0), + ("char", "StartDate", 0), + ("char", "EndDate", 0), + ("WORD", "AdvanceMinutes", 0), + ("BYTE", "IsDayReset", 0), + ("BYTE", "ResetType", 0), + ("dict", "NotifyInfoStart", 0), + ("dict", "NotifyInfoEnd", 0), + ("WORD", "LVLimit", 0), + ), + + "ActNewFairyCeremony":( + ("DWORD", "CfgID", 1), + ("char", "ActMark", 0), + ("list", "PlatformList", 0), + ("list", "ServerIDList", 0), + ("char", "StartDate", 0), + ("char", "EndDate", 0), + ("BYTE", "ResetType", 0), + ("dict", "NotifyInfoStart", 0), + ("dict", "NotifyInfoEnd", 0), + ("WORD", "LVLimit", 0), + ), + + "NewUniquenessArrive":( + ("BYTE", "WorldLvNum", 1), + ("DWORD", "Rank", 1), + ("dict", "Award", 0), ), } @@ -511,6 +674,17 @@ def GetStateValue(self): return self.StateValue # 状态值 def GetNotifyInfoDict(self): return self.NotifyInfoDict # 广播提示信息 +# 副本总表 +class IPY_FBFunc(): + + def __init__(self): + self.DataMapID = 0 + self.HelpPoint = 0 + return + + def GetDataMapID(self): return self.DataMapID # 数据地图ID + def GetHelpPoint(self): return self.HelpPoint # 助战仙缘币(0代表不可助战) + # 副本功能线路表 class IPY_FBLine(): @@ -523,6 +697,25 @@ def GetDataMapID(self): return self.DataMapID # 数据地图ID def GetLineID(self): return self.LineID # 功能线路ID def GetMapID(self): return self.MapID # 场景地图ID + +# 副本助战表 +class IPY_FBHelpBattle(): + + def __init__(self): + self.DataMapID = 0 + self.LineID = 0 + self.FightPowerMin = 0 + self.FightPowerMax = 0 + self.LVLimit = 0 + self.DayFreeHelpCount = [] + return + + def GetDataMapID(self): return self.DataMapID # 数据地图ID + def GetLineID(self): return self.LineID # 功能线路ID + def GetFightPowerMin(self): return self.FightPowerMin # 助战最低战力,也是副本战力 + def GetFightPowerMax(self): return self.FightPowerMax # 助战最高战力,0为不限制 + def GetLVLimit(self): return self.LVLimit # 助战等级限制, 0为不限制 + def GetDayFreeHelpCount(self): return self.DayFreeHelpCount # 每日免费助战次数,[每日免费助战次数, 是否所有层通用] # 地图表 class IPY_ChinMap(): @@ -584,7 +777,9 @@ self.MoneyNum = 0 self.MoneyType = 0 self.PacketCnt = 0 - self.LeaderOwn = 0 + self.LeaderOwn = 0 + self.PacketOpenTime = "" + self.ValidMinutes = 0 return def GetID(self): return self.ID # ID @@ -592,7 +787,34 @@ def GetMoneyNum(self): return self.MoneyNum # 红包额度 def GetMoneyType(self): return self.MoneyType # 金钱类型 def GetPacketCnt(self): return self.PacketCnt # 红包个数 - def GetLeaderOwn(self): return self.LeaderOwn # 是否归属盟主 + def GetLeaderOwn(self): return self.LeaderOwn # 是否归属盟主 + def GetPacketOpenTime(self): return self.PacketOpenTime # 发放红包时间yyyy-MM-dd hh:mm + def GetValidMinutes(self): return self.ValidMinutes # 红包有效时长(分) + +# 节日红包时间表 +class IPY_ActFeastRedPacket(): + + def __init__(self): + self.CfgID = 0 + self.ActMark = "" + self.PlatformList = [] + self.ServerIDList = [] + self.StartDate = "" + self.EndDate = "" + self.ResetType = 0 + self.RedPacketIDList = [] + self.LVLimit = 0 + return + + def GetCfgID(self): return self.CfgID # 配置ID + def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 + def GetServerIDList(self): return self.ServerIDList # 服务器ID列表 + def GetStartDate(self): return self.StartDate # 开启日期 + def GetEndDate(self): return self.EndDate # 结束日期 + def GetResetType(self): return self.ResetType # 重置类型,0-0点重置;1-5点重置 + def GetRedPacketIDList(self): return self.RedPacketIDList # 每日对应红包ID列表[[第一天红包ID列表], ...] + def GetLVLimit(self): return self.LVLimit # 限制等级 # 等级开启功能 class IPY_FuncOpenLV(): @@ -633,12 +855,54 @@ def GetLV(self): return self.LV # 玩家等级 def GetReFightPower(self): return self.ReFightPower # 战斗力 +# VIP特权表 +class IPY_VipPrivilege(): + + def __init__(self): + self.VIPPriID = 0 + self.VIP0 = 0 + self.VIP1 = 0 + self.VIP2 = 0 + self.VIP3 = 0 + self.VIP4 = 0 + self.VIP5 = 0 + self.VIP6 = 0 + self.VIP7 = 0 + self.VIP8 = 0 + self.VIP9 = 0 + self.VIP10 = 0 + self.VIP11 = 0 + self.VIP12 = 0 + self.VIP13 = 0 + self.VIP14 = 0 + self.VIP15 = 0 + return + + def GetVIPPriID(self): return self.VIPPriID # 特权ID + def GetVIP0(self): return self.VIP0 # VIP0对应的特权值 + def GetVIP1(self): return self.VIP1 # VIP1对应的特权值 + def GetVIP2(self): return self.VIP2 # VIP2对应的特权值 + def GetVIP3(self): return self.VIP3 # VIP3对应的特权值 + def GetVIP4(self): return self.VIP4 # VIP4对应的特权值 + def GetVIP5(self): return self.VIP5 # VIP5对应的特权值 + def GetVIP6(self): return self.VIP6 # VIP6对应的特权值 + def GetVIP7(self): return self.VIP7 # VIP7对应的特权值 + def GetVIP8(self): return self.VIP8 # VIP8对应的特权值 + def GetVIP9(self): return self.VIP9 # VIP9对应的特权值 + def GetVIP10(self): return self.VIP10 # VIP10对应的特权值 + def GetVIP11(self): return self.VIP11 # VIP11对应的特权值 + def GetVIP12(self): return self.VIP12 # VIP12对应的特权值 + def GetVIP13(self): return self.VIP13 # VIP13对应的特权值 + def GetVIP14(self): return self.VIP14 # VIP14对应的特权值 + def GetVIP15(self): return self.VIP15 # VIP15对应的特权值 + # 限时特惠表 class IPY_ActSpringSale(): def __init__(self): self.CfgID = 0 self.ActMark = "" + self.PlatformList = [] self.ServerIDList = [] self.StartDate = "" self.EndDate = "" @@ -654,6 +918,7 @@ def GetCfgID(self): return self.CfgID # 配置ID def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 def GetServerIDList(self): return self.ServerIDList # 服务器ID列表 def GetStartDate(self): return self.StartDate # 开启日期 def GetEndDate(self): return self.EndDate # 结束日期 @@ -672,6 +937,7 @@ def __init__(self): self.CfgID = 0 self.ActMark = "" + self.PlatformList = [] self.ServerIDList = [] self.StartDate = "" self.EndDate = "" @@ -687,6 +953,7 @@ def GetCfgID(self): return self.CfgID # 配置ID def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 def GetServerIDList(self): return self.ServerIDList # 服务器ID列表 def GetStartDate(self): return self.StartDate # 开启日期 def GetEndDate(self): return self.EndDate # 结束日期 @@ -705,6 +972,7 @@ def __init__(self): self.CfgID = 0 self.ActMark = "" + self.PlatformList = [] self.ServerIDList = [] self.StartDate = "" self.EndDate = "" @@ -719,6 +987,7 @@ def GetCfgID(self): return self.CfgID # 配置ID def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 def GetServerIDList(self): return self.ServerIDList # 服务器ID列表 def GetStartDate(self): return self.StartDate # 开启日期 def GetEndDate(self): return self.EndDate # 结束日期 @@ -736,6 +1005,7 @@ def __init__(self): self.CfgID = 0 self.ActMark = "" + self.PlatformList = [] self.ServerIDList = [] self.StartDate = "" self.EndDate = "" @@ -747,6 +1017,7 @@ def GetCfgID(self): return self.CfgID # 配置ID def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 def GetServerIDList(self): return self.ServerIDList # 服务器ID列表 def GetStartDate(self): return self.StartDate # 开启日期 def GetEndDate(self): return self.EndDate # 结束日期 @@ -761,6 +1032,7 @@ def __init__(self): self.CfgID = 0 self.ActMark = "" + self.PlatformList = [] self.ServerIDList = [] self.StartDate = "" self.EndDate = "" @@ -773,6 +1045,7 @@ def GetCfgID(self): return self.CfgID # 配置ID def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 def GetServerIDList(self): return self.ServerIDList # 服务器ID列表 def GetStartDate(self): return self.StartDate # 开启日期 def GetEndDate(self): return self.EndDate # 结束日期 @@ -788,6 +1061,7 @@ def __init__(self): self.CfgID = 0 self.ActMark = "" + self.PlatformList = [] self.ServerIDList = [] self.StartDate = "" self.EndDate = "" @@ -799,6 +1073,7 @@ def GetCfgID(self): return self.CfgID # 配置ID def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 def GetServerIDList(self): return self.ServerIDList # 服务器ID列表 def GetStartDate(self): return self.StartDate # 开启日期 def GetEndDate(self): return self.EndDate # 结束日期 @@ -826,6 +1101,7 @@ def __init__(self): self.CfgID = 0 self.ActMark = "" + self.PlatformList = [] self.ServerIDList = [] self.StartDate = "" self.EndDate = "" @@ -833,11 +1109,13 @@ self.NotifyInfoStart = {} self.NotifyInfoEnd = {} self.Multiple = 0 - self.LVLimit = 0 + self.LVLimit = 0 + self.PointLimit = 0 return def GetCfgID(self): return self.CfgID # 配置ID def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 def GetServerIDList(self): return self.ServerIDList # 服务器ID列表 def GetStartDate(self): return self.StartDate # 开启日期 def GetEndDate(self): return self.EndDate # 结束日期 @@ -845,7 +1123,8 @@ def GetNotifyInfoStart(self): return self.NotifyInfoStart # 全服提示信息 - 相对开始时间 def GetNotifyInfoEnd(self): return self.NotifyInfoEnd # 全服提示信息 - 相对结束时间 def GetMultiple(self): return self.Multiple # 倍数 - def GetLVLimit(self): return self.LVLimit # 限制等级 + def GetLVLimit(self): return self.LVLimit # 限制等级 + def GetPointLimit(self): return self.PointLimit # 限制额外修行点 # 限时抢购表 class IPY_ActFlashSale(): @@ -853,6 +1132,7 @@ def __init__(self): self.CfgID = 0 self.ActMark = "" + self.PlatformList = [] self.ServerIDList = [] self.StartDate = "" self.EndDate = "" @@ -869,6 +1149,7 @@ def GetCfgID(self): return self.CfgID # 配置ID def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 def GetServerIDList(self): return self.ServerIDList # 服务器ID列表 def GetStartDate(self): return self.StartDate # 开启日期 def GetEndDate(self): return self.EndDate # 结束日期 @@ -903,6 +1184,7 @@ def __init__(self): self.CfgID = 0 self.ActMark = "" + self.PlatformList = [] self.ServerIDList = [] self.StartDate = "" self.EndDate = "" @@ -916,6 +1198,7 @@ def GetCfgID(self): return self.CfgID # 配置ID def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 def GetServerIDList(self): return self.ServerIDList # 服务器ID列表 def GetStartDate(self): return self.StartDate # 开启日期 def GetEndDate(self): return self.EndDate # 结束日期 @@ -925,6 +1208,226 @@ def GetNotifyInfoEnd(self): return self.NotifyInfoEnd # 全服提示信息 - 相对结束时间 def GetNotifyInfoLoop(self): return self.NotifyInfoLoop # 全服提示信息 - 循环广播[间隔分钟, 广播key] def GetLVLimit(self): return self.LVLimit # 限制等级 + +# 累计充值活动表 +class IPY_ActTotalRecharge(): + + def __init__(self): + self.CfgID = 0 + self.ActMark = "" + self.PlatformList = [] + self.ServerIDList = [] + self.StartDate = "" + self.EndDate = "" + self.NotifyInfoStart = {} + self.NotifyInfoEnd = {} + self.NotifyInfoLoop = [] + self.IsDayReset = 0 + return + + def GetCfgID(self): return self.CfgID # 配置ID + def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 + def GetServerIDList(self): return self.ServerIDList # 服务器ID列表 + def GetStartDate(self): return self.StartDate # 开启日期 + def GetEndDate(self): return self.EndDate # 结束日期 + def GetNotifyInfoStart(self): return self.NotifyInfoStart # 全服提示信息 - 相对开始时间 + def GetNotifyInfoEnd(self): return self.NotifyInfoEnd # 全服提示信息 - 相对结束时间 + def GetNotifyInfoLoop(self): return self.NotifyInfoLoop # 全服提示信息 - 循环广播[间隔分钟, 广播key] + def GetIsDayReset(self): return self.IsDayReset # 是否每天重置 + +# 跨服竞技场赛区表 +class IPY_CrossRealmPKZone(): + + def __init__(self): + self.ZoneID = 0 + self.ZoneName = "" + self.ServerGroupIDList = [] + return + + def GetZoneID(self): return self.ZoneID # 赛区ID + def GetZoneName(self): return self.ZoneName # 赛区名字 + def GetServerGroupIDList(self): return self.ServerGroupIDList # 赛区服务器组ID列表 + +# 跨服竞技场赛季表 +class IPY_CrossRealmPKSeason(): + + def __init__(self): + self.ZoneID = 0 + self.SeasonID = 0 + self.StartDate = "" + self.EndDate = "" + self.EndTime = "" + return + + def GetZoneID(self): return self.ZoneID # 赛区ID + def GetSeasonID(self): return self.SeasonID # 赛季ID + def GetStartDate(self): return self.StartDate # 开始日期 yyyy-MM-dd + def GetEndDate(self): return self.EndDate # 结束日期 yyyy-MM-dd + def GetEndTime(self): return self.EndTime # 结算时间 hh:mm + +# 跨服竞技场段位表 +class IPY_CrossRealmPKDan(): + + def __init__(self): + self.DanLV = 0 + self.LVUpScore = 0 + self.MatchRange = [] + return + + def GetDanLV(self): return self.DanLV # 段位等级 + def GetLVUpScore(self): return self.LVUpScore # 升段位所需积分 + def GetMatchRange(self): return self.MatchRange # 可匹配到的玩家段位区间 [从段位A, 到段位B],配[]代表只匹配本段位的 + +# 跨服Boss蓬莱仙境分区表 +class IPY_CrossPenglaiZone(): + + def __init__(self): + self.ZoneID = 0 + self.ServerGroupIDList = [] + self.MapID = 0 + self.DataMapID = 0 + self.CopyMapID = 0 + return + + def GetZoneID(self): return self.ZoneID # 分区ID + def GetServerGroupIDList(self): return self.ServerGroupIDList # 服务器组ID列表 + def GetMapID(self): return self.MapID # 场景地图ID + def GetDataMapID(self): return self.DataMapID # 数据地图ID + def GetCopyMapID(self): return self.CopyMapID # 虚拟线路ID + +# 周狂欢活动时间表 +class IPY_ActWeekParty(): + + def __init__(self): + self.CfgID = 0 + self.ActMark = "" + self.PlatformList = [] + self.ServerIDList = [] + self.StartDate = "" + self.EndDate = "" + self.AdvanceMinutes = 0 + self.IsDayReset = 0 + self.ResetType = 0 + self.NotifyInfoStart = {} + self.NotifyInfoEnd = {} + self.LVLimit = 0 + return + + def GetCfgID(self): return self.CfgID # 配置ID + def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 + def GetServerIDList(self): return self.ServerIDList # 服务器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 GetNotifyInfoStart(self): return self.NotifyInfoStart # 全服提示信息 - 相对开始时间 + def GetNotifyInfoEnd(self): return self.NotifyInfoEnd # 全服提示信息 - 相对结束时间 + def GetLVLimit(self): return self.LVLimit # 限制等级 + +# 登录奖励时间表 +class IPY_ActLoginAward(): + + def __init__(self): + self.CfgID = 0 + self.ActMark = "" + self.PlatformList = [] + self.ServerIDList = [] + self.StartDate = "" + self.EndDate = "" + self.AdvanceMinutes = 0 + self.IsDayReset = 0 + self.ResetType = 0 + self.NotifyInfoStart = {} + self.NotifyInfoEnd = {} + self.LVLimit = 0 + return + + def GetCfgID(self): return self.CfgID # 配置ID + def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 + def GetServerIDList(self): return self.ServerIDList # 服务器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 GetNotifyInfoStart(self): return self.NotifyInfoStart # 全服提示信息 - 相对开始时间 + def GetNotifyInfoEnd(self): return self.NotifyInfoEnd # 全服提示信息 - 相对结束时间 + def GetLVLimit(self): return self.LVLimit # 限制等级 + +# 节日巡礼活动时间表 +class IPY_ActFeastWeekParty(): + + def __init__(self): + self.CfgID = 0 + self.ActMark = "" + self.PlatformList = [] + self.ServerIDList = [] + self.StartDate = "" + self.EndDate = "" + self.AdvanceMinutes = 0 + self.IsDayReset = 0 + self.ResetType = 0 + self.NotifyInfoStart = {} + self.NotifyInfoEnd = {} + self.LVLimit = 0 + return + + def GetCfgID(self): return self.CfgID # 配置ID + def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 + def GetServerIDList(self): return self.ServerIDList # 服务器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 GetNotifyInfoStart(self): return self.NotifyInfoStart # 全服提示信息 - 相对开始时间 + def GetNotifyInfoEnd(self): return self.NotifyInfoEnd # 全服提示信息 - 相对结束时间 + def GetLVLimit(self): return self.LVLimit # 限制等级 + +# 新仙界盛典活动时间表 +class IPY_ActNewFairyCeremony(): + + def __init__(self): + self.CfgID = 0 + self.ActMark = "" + self.PlatformList = [] + self.ServerIDList = [] + self.StartDate = "" + self.EndDate = "" + self.ResetType = 0 + self.NotifyInfoStart = {} + self.NotifyInfoEnd = {} + self.LVLimit = 0 + return + + def GetCfgID(self): return self.CfgID # 配置ID + def GetActMark(self): return self.ActMark # 活动组标记 + def GetPlatformList(self): return self.PlatformList # 活动平台列表["平台A", "平台A", ...],配[]代表所有 + def GetServerIDList(self): return self.ServerIDList # 服务器ID列表 + def GetStartDate(self): return self.StartDate # 开启日期 + def GetEndDate(self): return self.EndDate # 结束日期 + def GetResetType(self): return self.ResetType # 重置类型,0-0点重置;1-5点重置;2-5点开始0点结束 + def GetNotifyInfoStart(self): return self.NotifyInfoStart # 全服提示信息 - 相对开始时间 + def GetNotifyInfoEnd(self): return self.NotifyInfoEnd # 全服提示信息 - 相对结束时间 + def GetLVLimit(self): return self.LVLimit # 限制等级 + +# 新仙界盛典-绝版降临表 +class IPY_NewUniquenessArrive(): + + def __init__(self): + self.WorldLvNum = 0 + self.Rank = 0 + self.Award = {} + return + + def GetWorldLvNum(self): return self.WorldLvNum # 世界等级档 + def GetRank(self): return self.Rank # 排名 + def GetAward(self): return self.Award # 奖励 {"职业":[[物品ID,个数,是否绑定],...], ...} def Log(msg, playerID=0, par=0): @@ -968,8 +1471,12 @@ self.ipyFBStateTimeLen = len(self.ipyFBStateTimeCache) self.ipyFBStateTimeCustomCache = self.__LoadFileData("FBStateTimeCustom", IPY_FBStateTimeCustom) self.ipyFBStateTimeCustomLen = len(self.ipyFBStateTimeCustomCache) + self.ipyFBFuncCache = self.__LoadFileData("FBFunc", IPY_FBFunc) + self.ipyFBFuncLen = len(self.ipyFBFuncCache) self.ipyFBLineCache = self.__LoadFileData("FBLine", IPY_FBLine) self.ipyFBLineLen = len(self.ipyFBLineCache) + self.ipyFBHelpBattleCache = self.__LoadFileData("FBHelpBattle", IPY_FBHelpBattle) + self.ipyFBHelpBattleLen = len(self.ipyFBHelpBattleCache) self.ipyChinMapCache = self.__LoadFileData("ChinMap", IPY_ChinMap) self.ipyChinMapLen = len(self.ipyChinMapCache) self.ipyBOSSInfoCache = self.__LoadFileData("BOSSInfo", IPY_BOSSInfo) @@ -978,12 +1485,16 @@ self.ipyQuestionBankLen = len(self.ipyQuestionBankCache) self.ipyFamilyRedPackCache = self.__LoadFileData("FamilyRedPack", IPY_FamilyRedPack) self.ipyFamilyRedPackLen = len(self.ipyFamilyRedPackCache) + self.ipyActFeastRedPacketCache = self.__LoadFileData("ActFeastRedPacket", IPY_ActFeastRedPacket) + self.ipyActFeastRedPacketLen = len(self.ipyActFeastRedPacketCache) self.ipyFuncOpenLVCache = self.__LoadFileData("FuncOpenLV", IPY_FuncOpenLV) self.ipyFuncOpenLVLen = len(self.ipyFuncOpenLVCache) self.ipyChinNPCCache = self.__LoadFileData("ChinNPC", IPY_ChinNPC) self.ipyChinNPCLen = len(self.ipyChinNPCCache) self.ipyPlayerLVCache = self.__LoadFileData("PlayerLV", IPY_PlayerLV) self.ipyPlayerLVLen = len(self.ipyPlayerLVCache) + self.ipyVipPrivilegeCache = self.__LoadFileData("VipPrivilege", IPY_VipPrivilege) + self.ipyVipPrivilegeLen = len(self.ipyVipPrivilegeCache) self.ipyActSpringSaleCache = self.__LoadFileData("ActSpringSale", IPY_ActSpringSale) self.ipyActSpringSaleLen = len(self.ipyActSpringSaleCache) self.ipyActFlashGiftbagCache = self.__LoadFileData("ActFlashGiftbag", IPY_ActFlashGiftbag) @@ -1006,6 +1517,26 @@ self.ipyStoreLen = len(self.ipyStoreCache) self.ipyActWishingWellCache = self.__LoadFileData("ActWishingWell", IPY_ActWishingWell) self.ipyActWishingWellLen = len(self.ipyActWishingWellCache) + self.ipyActTotalRechargeCache = self.__LoadFileData("ActTotalRecharge", IPY_ActTotalRecharge) + self.ipyActTotalRechargeLen = len(self.ipyActTotalRechargeCache) + self.ipyCrossRealmPKZoneCache = self.__LoadFileData("CrossRealmPKZone", IPY_CrossRealmPKZone) + self.ipyCrossRealmPKZoneLen = len(self.ipyCrossRealmPKZoneCache) + self.ipyCrossRealmPKSeasonCache = self.__LoadFileData("CrossRealmPKSeason", IPY_CrossRealmPKSeason) + self.ipyCrossRealmPKSeasonLen = len(self.ipyCrossRealmPKSeasonCache) + self.ipyCrossRealmPKDanCache = self.__LoadFileData("CrossRealmPKDan", IPY_CrossRealmPKDan) + self.ipyCrossRealmPKDanLen = len(self.ipyCrossRealmPKDanCache) + self.ipyCrossPenglaiZoneCache = self.__LoadFileData("CrossPenglaiZone", IPY_CrossPenglaiZone) + self.ipyCrossPenglaiZoneLen = len(self.ipyCrossPenglaiZoneCache) + self.ipyActWeekPartyCache = self.__LoadFileData("ActWeekParty", IPY_ActWeekParty) + self.ipyActWeekPartyLen = len(self.ipyActWeekPartyCache) + self.ipyActLoginAwardCache = self.__LoadFileData("ActLoginAward", IPY_ActLoginAward) + self.ipyActLoginAwardLen = len(self.ipyActLoginAwardCache) + self.ipyActFeastWeekPartyCache = self.__LoadFileData("ActFeastWeekParty", IPY_ActFeastWeekParty) + self.ipyActFeastWeekPartyLen = len(self.ipyActFeastWeekPartyCache) + self.ipyActNewFairyCeremonyCache = self.__LoadFileData("ActNewFairyCeremony", IPY_ActNewFairyCeremony) + self.ipyActNewFairyCeremonyLen = len(self.ipyActNewFairyCeremonyCache) + self.ipyNewUniquenessArriveCache = self.__LoadFileData("NewUniquenessArrive", IPY_NewUniquenessArrive) + self.ipyNewUniquenessArriveLen = len(self.ipyNewUniquenessArriveCache) Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict)) Log("IPY_DataMgr InitOK!") return @@ -1190,8 +1721,12 @@ def GetFBStateTimeByIndex(self, index): return self.ipyFBStateTimeCache[index] def GetFBStateTimeCustomCount(self): return self.ipyFBStateTimeCustomLen def GetFBStateTimeCustomByIndex(self, index): return self.ipyFBStateTimeCustomCache[index] + def GetFBFuncCount(self): return self.ipyFBFuncLen + def GetFBFuncByIndex(self, index): return self.ipyFBFuncCache[index] def GetFBLineCount(self): return self.ipyFBLineLen def GetFBLineByIndex(self, index): return self.ipyFBLineCache[index] + def GetFBHelpBattleCount(self): return self.ipyFBHelpBattleLen + def GetFBHelpBattleByIndex(self, index): return self.ipyFBHelpBattleCache[index] def GetChinMapCount(self): return self.ipyChinMapLen def GetChinMapByIndex(self, index): return self.ipyChinMapCache[index] def GetBOSSInfoCount(self): return self.ipyBOSSInfoLen @@ -1200,12 +1735,16 @@ def GetQuestionBankByIndex(self, index): return self.ipyQuestionBankCache[index] def GetFamilyRedPackCount(self): return self.ipyFamilyRedPackLen def GetFamilyRedPackByIndex(self, index): return self.ipyFamilyRedPackCache[index] + def GetActFeastRedPacketCount(self): return self.ipyActFeastRedPacketLen + def GetActFeastRedPacketByIndex(self, index): return self.ipyActFeastRedPacketCache[index] def GetFuncOpenLVCount(self): return self.ipyFuncOpenLVLen def GetFuncOpenLVByIndex(self, index): return self.ipyFuncOpenLVCache[index] def GetChinNPCCount(self): return self.ipyChinNPCLen def GetChinNPCByIndex(self, index): return self.ipyChinNPCCache[index] def GetPlayerLVCount(self): return self.ipyPlayerLVLen def GetPlayerLVByIndex(self, index): return self.ipyPlayerLVCache[index] + def GetVipPrivilegeCount(self): return self.ipyVipPrivilegeLen + def GetVipPrivilegeByIndex(self, index): return self.ipyVipPrivilegeCache[index] def GetActSpringSaleCount(self): return self.ipyActSpringSaleLen def GetActSpringSaleByIndex(self, index): return self.ipyActSpringSaleCache[index] def GetActFlashGiftbagCount(self): return self.ipyActFlashGiftbagLen @@ -1228,6 +1767,26 @@ def GetStoreByIndex(self, index): return self.ipyStoreCache[index] def GetActWishingWellCount(self): return self.ipyActWishingWellLen def GetActWishingWellByIndex(self, index): return self.ipyActWishingWellCache[index] + def GetActTotalRechargeCount(self): return self.ipyActTotalRechargeLen + def GetActTotalRechargeByIndex(self, index): return self.ipyActTotalRechargeCache[index] + def GetCrossRealmPKZoneCount(self): return self.ipyCrossRealmPKZoneLen + def GetCrossRealmPKZoneByIndex(self, index): return self.ipyCrossRealmPKZoneCache[index] + def GetCrossRealmPKSeasonCount(self): return self.ipyCrossRealmPKSeasonLen + def GetCrossRealmPKSeasonByIndex(self, index): return self.ipyCrossRealmPKSeasonCache[index] + def GetCrossRealmPKDanCount(self): return self.ipyCrossRealmPKDanLen + def GetCrossRealmPKDanByIndex(self, index): return self.ipyCrossRealmPKDanCache[index] + def GetCrossPenglaiZoneCount(self): return self.ipyCrossPenglaiZoneLen + def GetCrossPenglaiZoneByIndex(self, index): return self.ipyCrossPenglaiZoneCache[index] + def GetActWeekPartyCount(self): return self.ipyActWeekPartyLen + def GetActWeekPartyByIndex(self, index): return self.ipyActWeekPartyCache[index] + def GetActLoginAwardCount(self): return self.ipyActLoginAwardLen + def GetActLoginAwardByIndex(self, index): return self.ipyActLoginAwardCache[index] + def GetActFeastWeekPartyCount(self): return self.ipyActFeastWeekPartyLen + def GetActFeastWeekPartyByIndex(self, index): return self.ipyActFeastWeekPartyCache[index] + def GetActNewFairyCeremonyCount(self): return self.ipyActNewFairyCeremonyLen + def GetActNewFairyCeremonyByIndex(self, index): return self.ipyActNewFairyCeremonyCache[index] + def GetNewUniquenessArriveCount(self): return self.ipyNewUniquenessArriveLen + def GetNewUniquenessArriveByIndex(self, index): return self.ipyNewUniquenessArriveCache[index] IPYData = IPY_DataMgr() def IPY_Data(): return IPYData -- Gitblit v1.8.0