| | |
| | | EndtDate = "" #(char EndtDate[10])// 结束日期 y-m-d
|
| | | Multiple = 0 #(BYTE Multiple)// 倍数
|
| | | LimitLV = 0 #(WORD LimitLV)// 限制等级
|
| | | LimitPoint = 0 #(DWORD LimitPoint)// 限制获得修行点
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | |
| | | self.EndtDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
|
| | | self.Multiple,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.LimitLV,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.LimitPoint,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | |
| | | self.EndtDate = ""
|
| | | self.Multiple = 0
|
| | | self.LimitLV = 0
|
| | | self.LimitPoint = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | |
| | | length += 10
|
| | | length += 1
|
| | | length += 2
|
| | | length += 4
|
| | |
|
| | | return length
|
| | |
|
| | |
| | | data = CommFunc.WriteString(data, 10, self.EndtDate)
|
| | | data = CommFunc.WriteBYTE(data, self.Multiple)
|
| | | data = CommFunc.WriteWORD(data, self.LimitLV)
|
| | | data = CommFunc.WriteDWORD(data, self.LimitPoint)
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | |
| | | StartDate:%s,
|
| | | EndtDate:%s,
|
| | | Multiple:%d,
|
| | | LimitLV:%d
|
| | | LimitLV:%d,
|
| | | LimitPoint:%d
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.StartDate,
|
| | | self.EndtDate,
|
| | | self.Multiple,
|
| | | self.LimitLV
|
| | | self.LimitLV,
|
| | | self.LimitPoint
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("BossType", c_ubyte), #编号类型0-世界boss 1-boss之家
|
| | | ("KillCnt", c_ubyte), #击杀次数
|
| | | ("ItemAddCnt", c_ubyte), #物品增加次数
|
| | | ("KillCnt", c_int), #击杀次数
|
| | | ("ItemAddCnt", c_int), #物品增加次数
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | |
| | | ("RealmPoint", c_int), # 可领取修行点
|
| | | ("StageIndex", c_ubyte), # 当前阶段索引
|
| | | ("AwardRecord", c_int), # 领奖记录 按位存储
|
| | | ("ExtraPoint", c_int), # 多倍活动获得的额外修行点
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | |
| | | self.RealmPoint = 0
|
| | | self.StageIndex = 0
|
| | | self.AwardRecord = 0
|
| | | self.ExtraPoint = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | |
| | | CurValue:%d,
|
| | | RealmPoint:%d,
|
| | | StageIndex:%d,
|
| | | AwardRecord:%d
|
| | | AwardRecord:%d,
|
| | | ExtraPoint:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | |
| | | self.CurValue,
|
| | | self.RealmPoint,
|
| | | self.StageIndex,
|
| | | self.AwardRecord
|
| | | self.AwardRecord,
|
| | | self.ExtraPoint
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
| | | ("LV", c_ubyte),
|
| | | ("Exp", c_int),
|
| | | ("State", c_ubyte), #是否点击法宝认主
|
| | | ("FBPassLV", c_ubyte), #副本关卡
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | |
| | | self.LV = 0
|
| | | self.Exp = 0
|
| | | self.State = 0
|
| | | self.FBPassLV = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | |
| | | MWID:%d,
|
| | | LV:%d,
|
| | | Exp:%d,
|
| | | State:%d
|
| | | State:%d,
|
| | | FBPassLV:%d
|
| | | '''\
|
| | | %(
|
| | | self.MWID,
|
| | | self.LV,
|
| | | self.Exp,
|
| | | self.State
|
| | | self.State,
|
| | | self.FBPassLV
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # A8 06 通知神秘限购商品时间 #tagMCMysticalShopTimeInfo
|
| | |
|
| | | class tagMCMysticalShopTime(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("GoodsID", c_int), # 商品ID
|
| | | ("StartTime", c_int), # 开卖时间
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | return
|
| | |
|
| | | def ReadData(self, stringData, _pos=0, _len=0):
|
| | | self.Clear()
|
| | | memmove(addressof(self), stringData[_pos:], self.GetLength())
|
| | | return _pos + self.GetLength()
|
| | |
|
| | | def Clear(self):
|
| | | self.GoodsID = 0
|
| | | self.StartTime = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagMCMysticalShopTime)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// A8 06 通知神秘限购商品时间 //tagMCMysticalShopTimeInfo:
|
| | | GoodsID:%d,
|
| | | StartTime:%d
|
| | | '''\
|
| | | %(
|
| | | self.GoodsID,
|
| | | self.StartTime
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagMCMysticalShopTimeInfo(Structure):
|
| | | Head = tagHead()
|
| | | Count = 0 #(WORD Count)// 商品数
|
| | | ShopTimeList = list() #(vector<tagMCMysticalShopTime> ShopTimeList)// 商品开卖信息
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Head.Cmd = 0xA8
|
| | | self.Head.SubCmd = 0x06
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | _pos = self.Head.ReadData(_lpData, _pos)
|
| | | self.Count,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | for i in range(self.Count):
|
| | | temShopTimeList = tagMCMysticalShopTime()
|
| | | _pos = temShopTimeList.ReadData(_lpData, _pos)
|
| | | self.ShopTimeList.append(temShopTimeList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.Head = tagHead()
|
| | | self.Head.Clear()
|
| | | self.Head.Cmd = 0xA8
|
| | | self.Head.SubCmd = 0x06
|
| | | self.Count = 0
|
| | | self.ShopTimeList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += self.Head.GetLength()
|
| | | length += 2
|
| | | for i in range(self.Count):
|
| | | length += self.ShopTimeList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
|
| | | data = CommFunc.WriteWORD(data, self.Count)
|
| | | for i in range(self.Count):
|
| | | data = CommFunc.WriteString(data, self.ShopTimeList[i].GetLength(), self.ShopTimeList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | Head:%s,
|
| | | Count:%d,
|
| | | ShopTimeList:%s
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.Count,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagMCMysticalShopTimeInfo=tagMCMysticalShopTimeInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCMysticalShopTimeInfo.Head.Cmd,m_NAtagMCMysticalShopTimeInfo.Head.SubCmd))] = m_NAtagMCMysticalShopTimeInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # A8 10 通知获得物品 #tagMCNotifyUseItemGetItem
|
| | |
|
| | | class tagMCNotifyUseItemGetItem(Structure):
|
| | |
| | | ("ItemCnt", c_ushort), # 物品数量
|
| | | ("IsBind", c_ubyte), # 是否绑定
|
| | | ("Mark", c_int), # 排序标识
|
| | | ("Rare", c_ubyte), # 珍稀值
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | |
| | | self.ItemCnt = 0
|
| | | self.IsBind = 0
|
| | | self.Mark = 0
|
| | | self.Rare = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | |
| | | ItemID:%d,
|
| | | ItemCnt:%d,
|
| | | IsBind:%d,
|
| | | Mark:%d
|
| | | Mark:%d,
|
| | | Rare:%d
|
| | | '''\
|
| | | %(
|
| | | self.ItemID,
|
| | | self.ItemCnt,
|
| | | self.IsBind,
|
| | | self.Mark
|
| | | self.Mark,
|
| | | self.Rare
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("IsDouble", c_ubyte), #是否双倍
|
| | | ("OldDouble", c_ubyte), #是否曾经允许双倍
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | |
| | | self.Cmd = 0xB2
|
| | | self.SubCmd = 0x01
|
| | | self.IsDouble = 0
|
| | | self.OldDouble = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | |
| | | DumpString = '''// B2 01 通知封魔坛双倍击杀状态 //tagMCFMTDoubleState:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | IsDouble:%d
|
| | | IsDouble:%d,
|
| | | OldDouble:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.IsDouble
|
| | | self.IsDouble,
|
| | | self.OldDouble
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B2 04 冰晶矿脉信息通知 #tagMCIceLodeInfo
|
| | |
|
| | | class tagMCIceLodeInfo(Structure):
|
| | | Head = tagHead()
|
| | | Cnt = 0 #(BYTE Cnt)// 今日玩法数量
|
| | | LineList = list() #(vector<BYTE> LineList)// 玩法列表
|
| | | AwardRecord = 0 #(DWORD AwardRecord)// 领奖记录
|
| | | HasSweep = 0 #(BYTE HasSweep)// 是否已扫荡
|
| | | DayLV = 0 #(WORD DayLV)// 今日等级
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Head.Cmd = 0xB2
|
| | | self.Head.SubCmd = 0x04
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | _pos = self.Head.ReadData(_lpData, _pos)
|
| | | self.Cnt,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.Cnt):
|
| | | value,_pos=CommFunc.ReadBYTE(_lpData,_pos)
|
| | | self.LineList.append(value)
|
| | | self.AwardRecord,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.HasSweep,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.DayLV,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.Head = tagHead()
|
| | | self.Head.Clear()
|
| | | self.Head.Cmd = 0xB2
|
| | | self.Head.SubCmd = 0x04
|
| | | self.Cnt = 0
|
| | | self.LineList = list()
|
| | | self.AwardRecord = 0
|
| | | self.HasSweep = 0
|
| | | self.DayLV = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += self.Head.GetLength()
|
| | | length += 1
|
| | | length += 1 * self.Cnt
|
| | | length += 4
|
| | | length += 1
|
| | | length += 2
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
|
| | | data = CommFunc.WriteBYTE(data, self.Cnt)
|
| | | for i in range(self.Cnt):
|
| | | data = CommFunc.WriteBYTE(data, self.LineList[i])
|
| | | data = CommFunc.WriteDWORD(data, self.AwardRecord)
|
| | | data = CommFunc.WriteBYTE(data, self.HasSweep)
|
| | | data = CommFunc.WriteWORD(data, self.DayLV)
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | Head:%s,
|
| | | Cnt:%d,
|
| | | LineList:%s,
|
| | | AwardRecord:%d,
|
| | | HasSweep:%d,
|
| | | DayLV:%d
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.Cnt,
|
| | | "...",
|
| | | self.AwardRecord,
|
| | | self.HasSweep,
|
| | | self.DayLV
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagMCIceLodeInfo=tagMCIceLodeInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCIceLodeInfo.Head.Cmd,m_NAtagMCIceLodeInfo.Head.SubCmd))] = m_NAtagMCIceLodeInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B2 03 公共副本扫荡信息 #tagMCPubFBSweepData
|
| | |
|
| | | class tagMCPubFBSweep(Structure):
|