From cc207773cbedb51c20300a87c62529ace416b086 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 19 九月 2025 19:23:35 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(无敌支持,免疫伤害、dot、控制;小怪技能;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py | 4542 +++--------------------------------------------------------
1 files changed, 270 insertions(+), 4,272 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
index 36739b4..fd93a81 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -193,6 +193,197 @@
#------------------------------------------------------
+# A0 09 通用记录信息 #tagSCGameRecInfo
+
+class tagSCGameRec(Structure):
+ Time = 0 #(DWORD Time)//时间
+ Value1 = 0 #(DWORD Value1)//值1
+ Value2 = 0 #(DWORD Value2)//值2
+ Value3 = 0 #(DWORD Value3)//值3
+ Value4 = 0 #(DWORD Value4)//值4
+ Value5 = 0 #(DWORD Value5)//值5
+ Value6 = 0 #(DWORD Value6)//值6
+ Value7 = 0 #(DWORD Value7)//值7
+ Value8 = 0 #(DWORD Value8)//值8
+ UserDataLen = 0 #(WORD UserDataLen)//扩展数据长度
+ UserData = "" #(String UserData)//扩展数据
+ data = None
+
+ def __init__(self):
+ self.Clear()
+ return
+
+ def ReadData(self, _lpData, _pos=0, _Len=0):
+ self.Clear()
+ self.Time,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+ self.Value1,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+ self.Value2,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+ self.Value3,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+ self.Value4,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+ self.Value5,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+ self.Value6,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+ self.Value7,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+ self.Value8,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+ self.UserDataLen,_pos = CommFunc.ReadWORD(_lpData, _pos)
+ self.UserData,_pos = CommFunc.ReadString(_lpData, _pos,self.UserDataLen)
+ return _pos
+
+ def Clear(self):
+ self.Time = 0
+ self.Value1 = 0
+ self.Value2 = 0
+ self.Value3 = 0
+ self.Value4 = 0
+ self.Value5 = 0
+ self.Value6 = 0
+ self.Value7 = 0
+ self.Value8 = 0
+ self.UserDataLen = 0
+ self.UserData = ""
+ return
+
+ def GetLength(self):
+ length = 0
+ length += 4
+ length += 4
+ length += 4
+ length += 4
+ length += 4
+ length += 4
+ length += 4
+ length += 4
+ length += 4
+ length += 2
+ length += len(self.UserData)
+
+ return length
+
+ def GetBuffer(self):
+ data = ''
+ data = CommFunc.WriteDWORD(data, self.Time)
+ data = CommFunc.WriteDWORD(data, self.Value1)
+ data = CommFunc.WriteDWORD(data, self.Value2)
+ data = CommFunc.WriteDWORD(data, self.Value3)
+ data = CommFunc.WriteDWORD(data, self.Value4)
+ data = CommFunc.WriteDWORD(data, self.Value5)
+ data = CommFunc.WriteDWORD(data, self.Value6)
+ data = CommFunc.WriteDWORD(data, self.Value7)
+ data = CommFunc.WriteDWORD(data, self.Value8)
+ data = CommFunc.WriteWORD(data, self.UserDataLen)
+ data = CommFunc.WriteString(data, self.UserDataLen, self.UserData)
+ return data
+
+ def OutputString(self):
+ DumpString = '''
+ Time:%d,
+ Value1:%d,
+ Value2:%d,
+ Value3:%d,
+ Value4:%d,
+ Value5:%d,
+ Value6:%d,
+ Value7:%d,
+ Value8:%d,
+ UserDataLen:%d,
+ UserData:%s
+ '''\
+ %(
+ self.Time,
+ self.Value1,
+ self.Value2,
+ self.Value3,
+ self.Value4,
+ self.Value5,
+ self.Value6,
+ self.Value7,
+ self.Value8,
+ self.UserDataLen,
+ self.UserData
+ )
+ return DumpString
+
+
+class tagSCGameRecInfo(Structure):
+ Head = tagHead()
+ RecType = 0 #(WORD RecType)//记录类型
+ RecID = 0 #(DWORD RecID)//自定义记录ID
+ Count = 0 #(WORD Count)//数量
+ RecList = list() #(vector<tagSCGameRec> RecList)
+ data = None
+
+ def __init__(self):
+ self.Clear()
+ self.Head.Cmd = 0xA0
+ self.Head.SubCmd = 0x09
+ return
+
+ def ReadData(self, _lpData, _pos=0, _Len=0):
+ self.Clear()
+ _pos = self.Head.ReadData(_lpData, _pos)
+ self.RecType,_pos = CommFunc.ReadWORD(_lpData, _pos)
+ self.RecID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+ self.Count,_pos = CommFunc.ReadWORD(_lpData, _pos)
+ for i in range(self.Count):
+ temRecList = tagSCGameRec()
+ _pos = temRecList.ReadData(_lpData, _pos)
+ self.RecList.append(temRecList)
+ return _pos
+
+ def Clear(self):
+ self.Head = tagHead()
+ self.Head.Clear()
+ self.Head.Cmd = 0xA0
+ self.Head.SubCmd = 0x09
+ self.RecType = 0
+ self.RecID = 0
+ self.Count = 0
+ self.RecList = list()
+ return
+
+ def GetLength(self):
+ length = 0
+ length += self.Head.GetLength()
+ length += 2
+ length += 4
+ length += 2
+ for i in range(self.Count):
+ length += self.RecList[i].GetLength()
+
+ return length
+
+ def GetBuffer(self):
+ data = ''
+ data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
+ data = CommFunc.WriteWORD(data, self.RecType)
+ data = CommFunc.WriteDWORD(data, self.RecID)
+ data = CommFunc.WriteWORD(data, self.Count)
+ for i in range(self.Count):
+ data = CommFunc.WriteString(data, self.RecList[i].GetLength(), self.RecList[i].GetBuffer())
+ return data
+
+ def OutputString(self):
+ DumpString = '''
+ Head:%s,
+ RecType:%d,
+ RecID:%d,
+ Count:%d,
+ RecList:%s
+ '''\
+ %(
+ self.Head.OutputString(),
+ self.RecType,
+ self.RecID,
+ self.Count,
+ "..."
+ )
+ return DumpString
+
+
+m_NAtagSCGameRecInfo=tagSCGameRecInfo()
+ChNetPackDict[eval("0x%02x%02x"%(m_NAtagSCGameRecInfo.Head.Cmd,m_NAtagSCGameRecInfo.Head.SubCmd))] = m_NAtagSCGameRecInfo
+
+
+#------------------------------------------------------
# A0 07 副本地图功能线路人数 #tagGCFBLinePlayerCnt
class tagGCFBLineInfo(Structure):
@@ -421,190 +612,6 @@
m_NAtagOpenServerDay=tagOpenServerDay()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagOpenServerDay.Cmd,m_NAtagOpenServerDay.SubCmd))] = m_NAtagOpenServerDay
-
-
-#------------------------------------------------------
-# A0 08 玩家记录信息 #tagGCPlayerRecInfo
-
-class tagGCPlayerRec(Structure):
- Time = 0 #(DWORD Time)//时间
- Value1 = 0 #(DWORD Value1)//值1
- Value2 = 0 #(DWORD Value2)//值2
- Value3 = 0 #(DWORD Value3)//值3
- Value4 = 0 #(DWORD Value4)//值4
- Value5 = 0 #(DWORD Value5)//值5
- Value6 = 0 #(DWORD Value6)//值6
- Value7 = 0 #(DWORD Value7)//值7
- Value8 = 0 #(DWORD Value8)//值8
- UserDataLen = 0 #(WORD UserDataLen)//扩展数据长度
- UserData = "" #(String UserData)//扩展数据
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.Time,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Value1,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Value2,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Value3,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Value4,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Value5,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Value6,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Value7,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Value8,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.UserDataLen,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.UserData,_pos = CommFunc.ReadString(_lpData, _pos,self.UserDataLen)
- return _pos
-
- def Clear(self):
- self.Time = 0
- self.Value1 = 0
- self.Value2 = 0
- self.Value3 = 0
- self.Value4 = 0
- self.Value5 = 0
- self.Value6 = 0
- self.Value7 = 0
- self.Value8 = 0
- self.UserDataLen = 0
- self.UserData = ""
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 4
- length += 4
- length += 4
- length += 4
- length += 4
- length += 4
- length += 4
- length += 4
- length += 2
- length += len(self.UserData)
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.Time)
- data = CommFunc.WriteDWORD(data, self.Value1)
- data = CommFunc.WriteDWORD(data, self.Value2)
- data = CommFunc.WriteDWORD(data, self.Value3)
- data = CommFunc.WriteDWORD(data, self.Value4)
- data = CommFunc.WriteDWORD(data, self.Value5)
- data = CommFunc.WriteDWORD(data, self.Value6)
- data = CommFunc.WriteDWORD(data, self.Value7)
- data = CommFunc.WriteDWORD(data, self.Value8)
- data = CommFunc.WriteWORD(data, self.UserDataLen)
- data = CommFunc.WriteString(data, self.UserDataLen, self.UserData)
- return data
-
- def OutputString(self):
- DumpString = '''
- Time:%d,
- Value1:%d,
- Value2:%d,
- Value3:%d,
- Value4:%d,
- Value5:%d,
- Value6:%d,
- Value7:%d,
- Value8:%d,
- UserDataLen:%d,
- UserData:%s
- '''\
- %(
- self.Time,
- self.Value1,
- self.Value2,
- self.Value3,
- self.Value4,
- self.Value5,
- self.Value6,
- self.Value7,
- self.Value8,
- self.UserDataLen,
- self.UserData
- )
- return DumpString
-
-
-class tagGCPlayerRecInfo(Structure):
- Head = tagHead()
- Type = 0 #(BYTE Type)//类型
- Count = 0 #(WORD Count)//数量
- PlayerRecList = list() #(vector<tagGCPlayerRec> PlayerRecList)
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xA0
- self.Head.SubCmd = 0x08
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.Type,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadWORD(_lpData, _pos)
- for i in range(self.Count):
- temPlayerRecList = tagGCPlayerRec()
- _pos = temPlayerRecList.ReadData(_lpData, _pos)
- self.PlayerRecList.append(temPlayerRecList)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xA0
- self.Head.SubCmd = 0x08
- self.Type = 0
- self.Count = 0
- self.PlayerRecList = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += 2
- for i in range(self.Count):
- length += self.PlayerRecList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.Type)
- data = CommFunc.WriteWORD(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.PlayerRecList[i].GetLength(), self.PlayerRecList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- Type:%d,
- Count:%d,
- PlayerRecList:%s
- '''\
- %(
- self.Head.OutputString(),
- self.Type,
- self.Count,
- "..."
- )
- return DumpString
-
-
-m_NAtagGCPlayerRecInfo=tagGCPlayerRecInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCPlayerRecInfo.Head.Cmd,m_NAtagGCPlayerRecInfo.Head.SubCmd))] = m_NAtagGCPlayerRecInfo
#------------------------------------------------------
@@ -923,197 +930,6 @@
m_NAtagServerGmMailInfo=tagServerGmMailInfo()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagServerGmMailInfo.Head.Cmd,m_NAtagServerGmMailInfo.Head.SubCmd))] = m_NAtagServerGmMailInfo
-
-
-#------------------------------------------------------
-#A0 03 玩家信息通用记录 #tagUniversalGameRecInfo
-
-class tagUniversalGameRec(Structure):
- Time = 0 #(DWORD Time)//时间
- StrValue1Len = 0 #(WORD StrValue1Len)//字符串1长度
- StrValue1 = "" #(String StrValue1)
- StrValue2Len = 0 #(WORD StrValue2Len)//字符串2长度
- StrValue2 = "" #(String StrValue2)
- StrValue3Len = 0 #(WORD StrValue3Len)//字符串3长度
- StrValue3 = "" #(String StrValue3)
- Value1 = 0 #(DWORD Value1)//数值1
- Value2 = 0 #(DWORD Value2)//数值1
- Value3 = 0 #(DWORD Value3)//数值1
- Value4 = 0 #(DWORD Value4)//数值1
- Value5 = 0 #(DWORD Value5)//数值1
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.Time,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.StrValue1Len,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.StrValue1,_pos = CommFunc.ReadString(_lpData, _pos,self.StrValue1Len)
- self.StrValue2Len,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.StrValue2,_pos = CommFunc.ReadString(_lpData, _pos,self.StrValue2Len)
- self.StrValue3Len,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.StrValue3,_pos = CommFunc.ReadString(_lpData, _pos,self.StrValue3Len)
- self.Value1,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Value2,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Value3,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Value4,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Value5,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- return _pos
-
- def Clear(self):
- self.Time = 0
- self.StrValue1Len = 0
- self.StrValue1 = ""
- self.StrValue2Len = 0
- self.StrValue2 = ""
- self.StrValue3Len = 0
- self.StrValue3 = ""
- self.Value1 = 0
- self.Value2 = 0
- self.Value3 = 0
- self.Value4 = 0
- self.Value5 = 0
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 2
- length += len(self.StrValue1)
- length += 2
- length += len(self.StrValue2)
- length += 2
- length += len(self.StrValue3)
- length += 4
- length += 4
- length += 4
- length += 4
- length += 4
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.Time)
- data = CommFunc.WriteWORD(data, self.StrValue1Len)
- data = CommFunc.WriteString(data, self.StrValue1Len, self.StrValue1)
- data = CommFunc.WriteWORD(data, self.StrValue2Len)
- data = CommFunc.WriteString(data, self.StrValue2Len, self.StrValue2)
- data = CommFunc.WriteWORD(data, self.StrValue3Len)
- data = CommFunc.WriteString(data, self.StrValue3Len, self.StrValue3)
- data = CommFunc.WriteDWORD(data, self.Value1)
- data = CommFunc.WriteDWORD(data, self.Value2)
- data = CommFunc.WriteDWORD(data, self.Value3)
- data = CommFunc.WriteDWORD(data, self.Value4)
- data = CommFunc.WriteDWORD(data, self.Value5)
- return data
-
- def OutputString(self):
- DumpString = '''
- Time:%d,
- StrValue1Len:%d,
- StrValue1:%s,
- StrValue2Len:%d,
- StrValue2:%s,
- StrValue3Len:%d,
- StrValue3:%s,
- Value1:%d,
- Value2:%d,
- Value3:%d,
- Value4:%d,
- Value5:%d
- '''\
- %(
- self.Time,
- self.StrValue1Len,
- self.StrValue1,
- self.StrValue2Len,
- self.StrValue2,
- self.StrValue3Len,
- self.StrValue3,
- self.Value1,
- self.Value2,
- self.Value3,
- self.Value4,
- self.Value5
- )
- return DumpString
-
-
-class tagUniversalGameRecInfo(Structure):
- Head = tagHead()
- Type = 0 #(BYTE Type)//类型
- Count = 0 #(WORD Count)//数量
- UniversalGameRec = list() #(vector<tagUniversalGameRec> UniversalGameRec)///size = Count
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xA0
- self.Head.SubCmd = 0x03
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.Type,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadWORD(_lpData, _pos)
- for i in range(self.Count):
- temUniversalGameRec = tagUniversalGameRec()
- _pos = temUniversalGameRec.ReadData(_lpData, _pos)
- self.UniversalGameRec.append(temUniversalGameRec)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xA0
- self.Head.SubCmd = 0x03
- self.Type = 0
- self.Count = 0
- self.UniversalGameRec = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += 2
- for i in range(self.Count):
- length += self.UniversalGameRec[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.Type)
- data = CommFunc.WriteWORD(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.UniversalGameRec[i].GetLength(), self.UniversalGameRec[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- Type:%d,
- Count:%d,
- UniversalGameRec:%s
- '''\
- %(
- self.Head.OutputString(),
- self.Type,
- self.Count,
- "..."
- )
- return DumpString
-
-
-m_NAtagUniversalGameRecInfo=tagUniversalGameRecInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagUniversalGameRecInfo.Head.Cmd,m_NAtagUniversalGameRecInfo.Head.SubCmd))] = m_NAtagUniversalGameRecInfo
#------------------------------------------------------
@@ -3822,74 +3638,6 @@
m_NAtagMCAllEquipAttrActiveInfo=tagMCAllEquipAttrActiveInfo()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCAllEquipAttrActiveInfo.Head.Cmd,m_NAtagMCAllEquipAttrActiveInfo.Head.SubCmd))] = m_NAtagMCAllEquipAttrActiveInfo
-
-
-#------------------------------------------------------
-# A3 C3 竞技场玩家信息 #tagMCArenaPlayerInfo
-
-class tagMCArenaPlayerInfo(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("IsReset", c_ubyte), #是否是重置的
- ("Score", c_int), #当前积分
- ("BattleCountToday", c_ubyte), #今日已挑战次数
- ("MatchRefreshCount", c_ubyte), #当前已刷新匹配列表次数,每次挑战后会重置
- ("ItemAddBattleCountToday", c_ubyte), #今日已使用物品增加的挑战次数
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA3
- self.SubCmd = 0xC3
- 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.Cmd = 0xA3
- self.SubCmd = 0xC3
- self.IsReset = 0
- self.Score = 0
- self.BattleCountToday = 0
- self.MatchRefreshCount = 0
- self.ItemAddBattleCountToday = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCArenaPlayerInfo)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A3 C3 竞技场玩家信息 //tagMCArenaPlayerInfo:
- Cmd:%s,
- SubCmd:%s,
- IsReset:%d,
- Score:%d,
- BattleCountToday:%d,
- MatchRefreshCount:%d,
- ItemAddBattleCountToday:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.IsReset,
- self.Score,
- self.BattleCountToday,
- self.MatchRefreshCount,
- self.ItemAddBattleCountToday
- )
- return DumpString
-
-
-m_NAtagMCArenaPlayerInfo=tagMCArenaPlayerInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCArenaPlayerInfo.Cmd,m_NAtagMCArenaPlayerInfo.SubCmd))] = m_NAtagMCArenaPlayerInfo
#------------------------------------------------------
@@ -17435,6 +17183,7 @@
RealmLV = 0 #(BYTE RealmLV)
Face = 0 #(DWORD Face)
FacePic = 0 #(DWORD FacePic)
+ ModelMark = 0 #(DWORD ModelMark)//变形模型mark
TitleID = 0 #(DWORD TitleID)//佩戴的称号
ServerID = 0 #(DWORD ServerID)
FightPower = 0 #(DWORD FightPower)
@@ -17462,6 +17211,7 @@
self.RealmLV,_pos = CommFunc.ReadBYTE(_lpData, _pos)
self.Face,_pos = CommFunc.ReadDWORD(_lpData, _pos)
self.FacePic,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+ self.ModelMark,_pos = CommFunc.ReadDWORD(_lpData, _pos)
self.TitleID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
self.ServerID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
self.FightPower,_pos = CommFunc.ReadDWORD(_lpData, _pos)
@@ -17485,6 +17235,7 @@
self.RealmLV = 0
self.Face = 0
self.FacePic = 0
+ self.ModelMark = 0
self.TitleID = 0
self.ServerID = 0
self.FightPower = 0
@@ -17511,6 +17262,7 @@
length += 4
length += 4
length += 4
+ length += 4
length += 33
length += 4
length += 4
@@ -17528,6 +17280,7 @@
data = CommFunc.WriteBYTE(data, self.RealmLV)
data = CommFunc.WriteDWORD(data, self.Face)
data = CommFunc.WriteDWORD(data, self.FacePic)
+ data = CommFunc.WriteDWORD(data, self.ModelMark)
data = CommFunc.WriteDWORD(data, self.TitleID)
data = CommFunc.WriteDWORD(data, self.ServerID)
data = CommFunc.WriteDWORD(data, self.FightPower)
@@ -17549,6 +17302,7 @@
RealmLV:%d,
Face:%d,
FacePic:%d,
+ ModelMark:%d,
TitleID:%d,
ServerID:%d,
FightPower:%d,
@@ -17568,6 +17322,7 @@
self.RealmLV,
self.Face,
self.FacePic,
+ self.ModelMark,
self.TitleID,
self.ServerID,
self.FightPower,
@@ -18992,127 +18747,14 @@
#------------------------------------------------------
-# A9 26 竞技场对战玩家最新信息 #tagGCArenaBattlePlayerInfo
+# A9 22 演武场匹配玩家列表 #tagSCArenaMatchList
-class tagGCArenaBattlePlayerInfo(Structure):
- Head = tagHead()
+class tagSCArenaMatchInfo(Structure):
PlayerID = 0 #(DWORD PlayerID)//目标玩家ID
PlayerName = "" #(char PlayerName[33])
- Job = 0 #(BYTE Job)
- LV = 0 #(WORD LV)//等级
RealmLV = 0 #(WORD RealmLV)//境界,机器人读境界表取等级对应境界
- FightPower = 0 #(DWORD FightPower)//战力求余亿部分,机器人读等级表取等级对应战力
- FightPowerEx = 0 #(DWORD FightPowerEx)//战力整除亿部分,机器人读等级表取等级对应战力
- Score = 0 #(DWORD Score)//积分
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xA9
- self.Head.SubCmd = 0x26
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.PlayerID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.PlayerName,_pos = CommFunc.ReadString(_lpData, _pos,33)
- self.Job,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.LV,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.RealmLV,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.FightPower,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.FightPowerEx,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Score,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xA9
- self.Head.SubCmd = 0x26
- self.PlayerID = 0
- self.PlayerName = ""
- self.Job = 0
- self.LV = 0
- self.RealmLV = 0
- self.FightPower = 0
- self.FightPowerEx = 0
- self.Score = 0
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 4
- length += 33
- length += 1
- length += 2
- length += 2
- length += 4
- length += 4
- length += 4
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteDWORD(data, self.PlayerID)
- data = CommFunc.WriteString(data, 33, self.PlayerName)
- data = CommFunc.WriteBYTE(data, self.Job)
- data = CommFunc.WriteWORD(data, self.LV)
- data = CommFunc.WriteWORD(data, self.RealmLV)
- data = CommFunc.WriteDWORD(data, self.FightPower)
- data = CommFunc.WriteDWORD(data, self.FightPowerEx)
- data = CommFunc.WriteDWORD(data, self.Score)
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- PlayerID:%d,
- PlayerName:%s,
- Job:%d,
- LV:%d,
- RealmLV:%d,
- FightPower:%d,
- FightPowerEx:%d,
- Score:%d
- '''\
- %(
- self.Head.OutputString(),
- self.PlayerID,
- self.PlayerName,
- self.Job,
- self.LV,
- self.RealmLV,
- self.FightPower,
- self.FightPowerEx,
- self.Score
- )
- return DumpString
-
-
-m_NAtagGCArenaBattlePlayerInfo=tagGCArenaBattlePlayerInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCArenaBattlePlayerInfo.Head.Cmd,m_NAtagGCArenaBattlePlayerInfo.Head.SubCmd))] = m_NAtagGCArenaBattlePlayerInfo
-
-
-#------------------------------------------------------
-# A9 23 竞技场对战记录列表 #tagGCArenaBattleRecordList
-
-class tagGCArenaBattleRecord(Structure):
- PlayerID = 0 #(DWORD PlayerID)//目标玩家ID,小于10000为机器人ID
- PlayerName = "" #(char PlayerName[33])
- Job = 0 #(BYTE Job)
- LV = 0 #(WORD LV)//等级
- RealmLV = 0 #(WORD RealmLV)//境界,机器人读境界表取等级对应境界
- FightPower = 0 #(DWORD FightPower)//战力求余亿部分,机器人读等级表取等级对应战力
- FightPowerEx = 0 #(DWORD FightPowerEx)//战力整除亿部分,机器人读等级表取等级对应战力
- Score = 0 #(DWORD Score)//积分
- AddScoreLen = 0 #(BYTE AddScoreLen)
- AddScore = "" #(String AddScore)//本次对战增加的积分,有正负
- IsWin = 0 #(BYTE IsWin)//是否获胜
- Time = 0 #(DWORD Time)//时间戳
+ FightPower = 0 #(DWORD FightPower)//战力求余亿部分
+ FightPowerEx = 0 #(DWORD FightPowerEx)//战力整除亿部分
Face = 0 #(DWORD Face)//基本脸型
FacePic = 0 #(DWORD FacePic)//头像框
data = None
@@ -19125,16 +18767,9 @@
self.Clear()
self.PlayerID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
self.PlayerName,_pos = CommFunc.ReadString(_lpData, _pos,33)
- self.Job,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.LV,_pos = CommFunc.ReadWORD(_lpData, _pos)
self.RealmLV,_pos = CommFunc.ReadWORD(_lpData, _pos)
self.FightPower,_pos = CommFunc.ReadDWORD(_lpData, _pos)
self.FightPowerEx,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Score,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.AddScoreLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.AddScore,_pos = CommFunc.ReadString(_lpData, _pos,self.AddScoreLen)
- self.IsWin,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.Time,_pos = CommFunc.ReadDWORD(_lpData, _pos)
self.Face,_pos = CommFunc.ReadDWORD(_lpData, _pos)
self.FacePic,_pos = CommFunc.ReadDWORD(_lpData, _pos)
return _pos
@@ -19142,16 +18777,9 @@
def Clear(self):
self.PlayerID = 0
self.PlayerName = ""
- self.Job = 0
- self.LV = 0
self.RealmLV = 0
self.FightPower = 0
self.FightPowerEx = 0
- self.Score = 0
- self.AddScoreLen = 0
- self.AddScore = ""
- self.IsWin = 0
- self.Time = 0
self.Face = 0
self.FacePic = 0
return
@@ -19160,196 +18788,7 @@
length = 0
length += 4
length += 33
- length += 1
length += 2
- length += 2
- length += 4
- length += 4
- length += 4
- length += 1
- length += len(self.AddScore)
- length += 1
- length += 4
- length += 4
- length += 4
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.PlayerID)
- data = CommFunc.WriteString(data, 33, self.PlayerName)
- data = CommFunc.WriteBYTE(data, self.Job)
- data = CommFunc.WriteWORD(data, self.LV)
- data = CommFunc.WriteWORD(data, self.RealmLV)
- data = CommFunc.WriteDWORD(data, self.FightPower)
- data = CommFunc.WriteDWORD(data, self.FightPowerEx)
- data = CommFunc.WriteDWORD(data, self.Score)
- data = CommFunc.WriteBYTE(data, self.AddScoreLen)
- data = CommFunc.WriteString(data, self.AddScoreLen, self.AddScore)
- data = CommFunc.WriteBYTE(data, self.IsWin)
- data = CommFunc.WriteDWORD(data, self.Time)
- data = CommFunc.WriteDWORD(data, self.Face)
- data = CommFunc.WriteDWORD(data, self.FacePic)
- return data
-
- def OutputString(self):
- DumpString = '''
- PlayerID:%d,
- PlayerName:%s,
- Job:%d,
- LV:%d,
- RealmLV:%d,
- FightPower:%d,
- FightPowerEx:%d,
- Score:%d,
- AddScoreLen:%d,
- AddScore:%s,
- IsWin:%d,
- Time:%d,
- Face:%d,
- FacePic:%d
- '''\
- %(
- self.PlayerID,
- self.PlayerName,
- self.Job,
- self.LV,
- self.RealmLV,
- self.FightPower,
- self.FightPowerEx,
- self.Score,
- self.AddScoreLen,
- self.AddScore,
- self.IsWin,
- self.Time,
- self.Face,
- self.FacePic
- )
- return DumpString
-
-
-class tagGCArenaBattleRecordList(Structure):
- Head = tagHead()
- RecordCount = 0 #(BYTE RecordCount)
- BattleRecordList = list() #(vector<tagGCArenaBattleRecord> BattleRecordList)// 对战列表
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xA9
- self.Head.SubCmd = 0x23
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.RecordCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.RecordCount):
- temBattleRecordList = tagGCArenaBattleRecord()
- _pos = temBattleRecordList.ReadData(_lpData, _pos)
- self.BattleRecordList.append(temBattleRecordList)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xA9
- self.Head.SubCmd = 0x23
- self.RecordCount = 0
- self.BattleRecordList = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- for i in range(self.RecordCount):
- length += self.BattleRecordList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.RecordCount)
- for i in range(self.RecordCount):
- data = CommFunc.WriteString(data, self.BattleRecordList[i].GetLength(), self.BattleRecordList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- RecordCount:%d,
- BattleRecordList:%s
- '''\
- %(
- self.Head.OutputString(),
- self.RecordCount,
- "..."
- )
- return DumpString
-
-
-m_NAtagGCArenaBattleRecordList=tagGCArenaBattleRecordList()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCArenaBattleRecordList.Head.Cmd,m_NAtagGCArenaBattleRecordList.Head.SubCmd))] = m_NAtagGCArenaBattleRecordList
-
-
-#------------------------------------------------------
-# A9 22 竞技场匹配玩家列表 #tagGCArenaMatchList
-
-class tagGCArenaMatchInfo(Structure):
- PlayerID = 0 #(DWORD PlayerID)//目标玩家ID,小于10000为机器人ID
- PlayerName = "" #(char PlayerName[33])
- Job = 0 #(BYTE Job)
- LV = 0 #(WORD LV)//等级
- RealmLV = 0 #(WORD RealmLV)//境界,机器人读境界表取等级对应境界
- FightPower = 0 #(DWORD FightPower)//战力求余亿部分,机器人读等级表取等级对应战力
- FightPowerEx = 0 #(DWORD FightPowerEx)//战力整除亿部分,机器人读等级表取等级对应战力
- Score = 0 #(DWORD Score)//积分
- Face = 0 #(DWORD Face)//基本脸型
- FacePic = 0 #(DWORD FacePic)//头像框
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.PlayerID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.PlayerName,_pos = CommFunc.ReadString(_lpData, _pos,33)
- self.Job,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.LV,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.RealmLV,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.FightPower,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.FightPowerEx,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Score,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Face,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.FacePic,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- return _pos
-
- def Clear(self):
- self.PlayerID = 0
- self.PlayerName = ""
- self.Job = 0
- self.LV = 0
- self.RealmLV = 0
- self.FightPower = 0
- self.FightPowerEx = 0
- self.Score = 0
- self.Face = 0
- self.FacePic = 0
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 33
- length += 1
- length += 2
- length += 2
- length += 4
length += 4
length += 4
length += 4
@@ -19361,12 +18800,9 @@
data = ''
data = CommFunc.WriteDWORD(data, self.PlayerID)
data = CommFunc.WriteString(data, 33, self.PlayerName)
- data = CommFunc.WriteBYTE(data, self.Job)
- data = CommFunc.WriteWORD(data, self.LV)
data = CommFunc.WriteWORD(data, self.RealmLV)
data = CommFunc.WriteDWORD(data, self.FightPower)
data = CommFunc.WriteDWORD(data, self.FightPowerEx)
- data = CommFunc.WriteDWORD(data, self.Score)
data = CommFunc.WriteDWORD(data, self.Face)
data = CommFunc.WriteDWORD(data, self.FacePic)
return data
@@ -19375,34 +18811,28 @@
DumpString = '''
PlayerID:%d,
PlayerName:%s,
- Job:%d,
- LV:%d,
RealmLV:%d,
FightPower:%d,
FightPowerEx:%d,
- Score:%d,
Face:%d,
FacePic:%d
'''\
%(
self.PlayerID,
self.PlayerName,
- self.Job,
- self.LV,
self.RealmLV,
self.FightPower,
self.FightPowerEx,
- self.Score,
self.Face,
self.FacePic
)
return DumpString
-class tagGCArenaMatchList(Structure):
+class tagSCArenaMatchList(Structure):
Head = tagHead()
MatchCount = 0 #(BYTE MatchCount)
- MatchList = list() #(vector<tagGCArenaMatchInfo> MatchList)// 匹配列表
+ MatchList = list() #(vector<tagSCArenaMatchInfo> MatchList)// 匹配列表,从高分到低分
data = None
def __init__(self):
@@ -19416,7 +18846,7 @@
_pos = self.Head.ReadData(_lpData, _pos)
self.MatchCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
for i in range(self.MatchCount):
- temMatchList = tagGCArenaMatchInfo()
+ temMatchList = tagSCArenaMatchInfo()
_pos = temMatchList.ReadData(_lpData, _pos)
self.MatchList.append(temMatchList)
return _pos
@@ -19461,8 +18891,60 @@
return DumpString
-m_NAtagGCArenaMatchList=tagGCArenaMatchList()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCArenaMatchList.Head.Cmd,m_NAtagGCArenaMatchList.Head.SubCmd))] = m_NAtagGCArenaMatchList
+m_NAtagSCArenaMatchList=tagSCArenaMatchList()
+ChNetPackDict[eval("0x%02x%02x"%(m_NAtagSCArenaMatchList.Head.Cmd,m_NAtagSCArenaMatchList.Head.SubCmd))] = m_NAtagSCArenaMatchList
+
+
+#------------------------------------------------------
+# A9 23 演武场玩家信息 #tagSCArenaPlayerInfo
+
+class tagSCArenaPlayerInfo(Structure):
+ _pack_ = 1
+ _fields_ = [
+ ("Cmd", c_ubyte),
+ ("SubCmd", c_ubyte),
+ ("Score", c_int), #当前积分
+ ]
+
+ def __init__(self):
+ self.Clear()
+ self.Cmd = 0xA9
+ self.SubCmd = 0x23
+ 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.Cmd = 0xA9
+ self.SubCmd = 0x23
+ self.Score = 0
+ return
+
+ def GetLength(self):
+ return sizeof(tagSCArenaPlayerInfo)
+
+ def GetBuffer(self):
+ return string_at(addressof(self), self.GetLength())
+
+ def OutputString(self):
+ DumpString = '''// A9 23 演武场玩家信息 //tagSCArenaPlayerInfo:
+ Cmd:%s,
+ SubCmd:%s,
+ Score:%d
+ '''\
+ %(
+ self.Cmd,
+ self.SubCmd,
+ self.Score
+ )
+ return DumpString
+
+
+m_NAtagSCArenaPlayerInfo=tagSCArenaPlayerInfo()
+ChNetPackDict[eval("0x%02x%02x"%(m_NAtagSCArenaPlayerInfo.Cmd,m_NAtagSCArenaPlayerInfo.SubCmd))] = m_NAtagSCArenaPlayerInfo
#------------------------------------------------------
@@ -22113,513 +21595,6 @@
#------------------------------------------------------
-# AA 67 Boss历练活动信息 #tagMCActBossTrialInfo
-
-class tagMCActBossTrialItem(Structure):
- _pack_ = 1
- _fields_ = [
- ("ItemID", c_int),
- ("ItemCount", c_ushort),
- ("IsBind", c_ubyte),
- ]
-
- 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.ItemID = 0
- self.ItemCount = 0
- self.IsBind = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCActBossTrialItem)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AA 67 Boss历练活动信息 //tagMCActBossTrialInfo:
- ItemID:%d,
- ItemCount:%d,
- IsBind:%d
- '''\
- %(
- self.ItemID,
- self.ItemCount,
- self.IsBind
- )
- return DumpString
-
-
-class tagMCActBossTrialAwardEx(Structure):
- NeedScore = 0 #(DWORD NeedScore)// 额外奖励所需积分
- Count = 0 #(BYTE Count)// 额外奖励物品数
- AwardItemList = list() #(vector<tagMCActBossTrialItem> AwardItemList)// 额外奖励物品列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCActBossTrialItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- return _pos
-
- def Clear(self):
- self.NeedScore = 0
- self.Count = 0
- self.AwardItemList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- NeedScore:%d,
- Count:%d,
- AwardItemList:%s
- '''\
- %(
- self.NeedScore,
- self.Count,
- "..."
- )
- return DumpString
-
-
-class tagMCActBossTrialBillard(Structure):
- Rank = 0 #(DWORD Rank)// 名次,1-代表第一名;支持夸段,如1,3 代表第1名,第2~3名
- Count = 0 #(BYTE Count)// 奖励物品数
- AwardItemList = list() #(vector<tagMCActBossTrialItem> AwardItemList)// 奖励物品列表,当仙盟榜时,如果有该奖励则代表盟主奖励,否则默认均为成员奖励
- MemCount = 0 #(BYTE MemCount)// 成员奖励物品数
- MemAwardItemList = list() #(vector<tagMCActBossTrialItem> MemAwardItemList)// 成员奖励物品列表,仅仙盟榜时有效
- NeedScore = 0 #(DWORD NeedScore)// 上榜所需积分
- CountEx = 0 #(BYTE CountEx)// 额外奖励数
- AwardItemExList = list() #(vector<tagMCActBossTrialAwardEx> AwardItemExList)// 额外奖励列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.Rank,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCActBossTrialItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- self.MemCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.MemCount):
- temMemAwardItemList = tagMCActBossTrialItem()
- _pos = temMemAwardItemList.ReadData(_lpData, _pos)
- self.MemAwardItemList.append(temMemAwardItemList)
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.CountEx,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.CountEx):
- temAwardItemExList = tagMCActBossTrialAwardEx()
- _pos = temAwardItemExList.ReadData(_lpData, _pos)
- self.AwardItemExList.append(temAwardItemExList)
- return _pos
-
- def Clear(self):
- self.Rank = 0
- self.Count = 0
- self.AwardItemList = list()
- self.MemCount = 0
- self.MemAwardItemList = list()
- self.NeedScore = 0
- self.CountEx = 0
- self.AwardItemExList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
- length += 1
- for i in range(self.MemCount):
- length += self.MemAwardItemList[i].GetLength()
- length += 4
- length += 1
- for i in range(self.CountEx):
- length += self.AwardItemExList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.Rank)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- data = CommFunc.WriteBYTE(data, self.MemCount)
- for i in range(self.MemCount):
- data = CommFunc.WriteString(data, self.MemAwardItemList[i].GetLength(), self.MemAwardItemList[i].GetBuffer())
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.CountEx)
- for i in range(self.CountEx):
- data = CommFunc.WriteString(data, self.AwardItemExList[i].GetLength(), self.AwardItemExList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Rank:%d,
- Count:%d,
- AwardItemList:%s,
- MemCount:%d,
- MemAwardItemList:%s,
- NeedScore:%d,
- CountEx:%d,
- AwardItemExList:%s
- '''\
- %(
- self.Rank,
- self.Count,
- "...",
- self.MemCount,
- "...",
- self.NeedScore,
- self.CountEx,
- "..."
- )
- return DumpString
-
-
-class tagMCActBossTrialSubmitInfo(Structure):
- RecordIndex = 0 #(BYTE RecordIndex)// 记录索引
- NeedCount = 0 #(WORD NeedCount)// 所需提交个数
- Count = 0 #(BYTE Count)// 奖励物品数
- AwardItemList = list() #(vector<tagMCActBossTrialItem> AwardItemList)// 奖励物品列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.RecordIndex,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.NeedCount,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCActBossTrialItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- return _pos
-
- def Clear(self):
- self.RecordIndex = 0
- self.NeedCount = 0
- self.Count = 0
- self.AwardItemList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 1
- length += 2
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteBYTE(data, self.RecordIndex)
- data = CommFunc.WriteWORD(data, self.NeedCount)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- RecordIndex:%d,
- NeedCount:%d,
- Count:%d,
- AwardItemList:%s
- '''\
- %(
- self.RecordIndex,
- self.NeedCount,
- self.Count,
- "..."
- )
- return DumpString
-
-
-class tagMCActBossTrialInfo(Structure):
- Head = tagHead()
- ActNum = 0 #(BYTE ActNum)// 活动编号
- StartDate = "" #(char StartDate[10])// 开始日期 y-m-d
- EndtDate = "" #(char EndtDate[10])// 结束日期 y-m-d
- JoinStartTime = "" #(char JoinStartTime[5])// 参与开始时间点 mm:ss
- JoinEndTime = "" #(char JoinEndTime[5])// 参与结束时间点 mm:ss
- IsDayReset = 0 #(BYTE IsDayReset)// 是否每天重置
- ResetType = 0 #(BYTE ResetType)// 重置类型,0-0点重置;1-5点重置
- LimitLV = 0 #(WORD LimitLV)// 限制等级
- ShopType = 0 #(WORD ShopType)// 开放商店类型,可能为0不开放
- SubResetType = 0 #(BYTE SubResetType)// 提交凭证奖励重置类型,0-跟随活动; 1-0点重置;2-5点重置
- SubmitCount = 0 #(BYTE SubmitCount)
- SubmitInfoList = list() #(vector<tagMCActBossTrialSubmitInfo> SubmitInfoList)// 提交凭证信息列表
- PersonalBillCount = 0 #(BYTE PersonalBillCount)
- PersonalBillboardInfoList = list() #(vector<tagMCActBossTrialBillard> PersonalBillboardInfoList)// 个人榜单奖励信息列表,如果没有代表本次活动没有该榜奖励
- FamilyBillCount = 0 #(BYTE FamilyBillCount)
- FamilyBillboardInfoList = list() #(vector<tagMCActBossTrialBillard> FamilyBillboardInfoList)// 仙盟榜单奖励信息列表,如果没有代表本次活动没有该榜奖励
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x67
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.ActNum,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.StartDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.EndtDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.JoinStartTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.JoinEndTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.IsDayReset,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.ResetType,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.LimitLV,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.ShopType,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.SubResetType,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.SubmitCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.SubmitCount):
- temSubmitInfoList = tagMCActBossTrialSubmitInfo()
- _pos = temSubmitInfoList.ReadData(_lpData, _pos)
- self.SubmitInfoList.append(temSubmitInfoList)
- self.PersonalBillCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.PersonalBillCount):
- temPersonalBillboardInfoList = tagMCActBossTrialBillard()
- _pos = temPersonalBillboardInfoList.ReadData(_lpData, _pos)
- self.PersonalBillboardInfoList.append(temPersonalBillboardInfoList)
- self.FamilyBillCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.FamilyBillCount):
- temFamilyBillboardInfoList = tagMCActBossTrialBillard()
- _pos = temFamilyBillboardInfoList.ReadData(_lpData, _pos)
- self.FamilyBillboardInfoList.append(temFamilyBillboardInfoList)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x67
- self.ActNum = 0
- self.StartDate = ""
- self.EndtDate = ""
- self.JoinStartTime = ""
- self.JoinEndTime = ""
- self.IsDayReset = 0
- self.ResetType = 0
- self.LimitLV = 0
- self.ShopType = 0
- self.SubResetType = 0
- self.SubmitCount = 0
- self.SubmitInfoList = list()
- self.PersonalBillCount = 0
- self.PersonalBillboardInfoList = list()
- self.FamilyBillCount = 0
- self.FamilyBillboardInfoList = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += 10
- length += 10
- length += 5
- length += 5
- length += 1
- length += 1
- length += 2
- length += 2
- length += 1
- length += 1
- for i in range(self.SubmitCount):
- length += self.SubmitInfoList[i].GetLength()
- length += 1
- for i in range(self.PersonalBillCount):
- length += self.PersonalBillboardInfoList[i].GetLength()
- length += 1
- for i in range(self.FamilyBillCount):
- length += self.FamilyBillboardInfoList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.ActNum)
- data = CommFunc.WriteString(data, 10, self.StartDate)
- data = CommFunc.WriteString(data, 10, self.EndtDate)
- data = CommFunc.WriteString(data, 5, self.JoinStartTime)
- data = CommFunc.WriteString(data, 5, self.JoinEndTime)
- data = CommFunc.WriteBYTE(data, self.IsDayReset)
- data = CommFunc.WriteBYTE(data, self.ResetType)
- data = CommFunc.WriteWORD(data, self.LimitLV)
- data = CommFunc.WriteWORD(data, self.ShopType)
- data = CommFunc.WriteBYTE(data, self.SubResetType)
- data = CommFunc.WriteBYTE(data, self.SubmitCount)
- for i in range(self.SubmitCount):
- data = CommFunc.WriteString(data, self.SubmitInfoList[i].GetLength(), self.SubmitInfoList[i].GetBuffer())
- data = CommFunc.WriteBYTE(data, self.PersonalBillCount)
- for i in range(self.PersonalBillCount):
- data = CommFunc.WriteString(data, self.PersonalBillboardInfoList[i].GetLength(), self.PersonalBillboardInfoList[i].GetBuffer())
- data = CommFunc.WriteBYTE(data, self.FamilyBillCount)
- for i in range(self.FamilyBillCount):
- data = CommFunc.WriteString(data, self.FamilyBillboardInfoList[i].GetLength(), self.FamilyBillboardInfoList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- ActNum:%d,
- StartDate:%s,
- EndtDate:%s,
- JoinStartTime:%s,
- JoinEndTime:%s,
- IsDayReset:%d,
- ResetType:%d,
- LimitLV:%d,
- ShopType:%d,
- SubResetType:%d,
- SubmitCount:%d,
- SubmitInfoList:%s,
- PersonalBillCount:%d,
- PersonalBillboardInfoList:%s,
- FamilyBillCount:%d,
- FamilyBillboardInfoList:%s
- '''\
- %(
- self.Head.OutputString(),
- self.ActNum,
- self.StartDate,
- self.EndtDate,
- self.JoinStartTime,
- self.JoinEndTime,
- self.IsDayReset,
- self.ResetType,
- self.LimitLV,
- self.ShopType,
- self.SubResetType,
- self.SubmitCount,
- "...",
- self.PersonalBillCount,
- "...",
- self.FamilyBillCount,
- "..."
- )
- return DumpString
-
-
-m_NAtagMCActBossTrialInfo=tagMCActBossTrialInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActBossTrialInfo.Head.Cmd,m_NAtagMCActBossTrialInfo.Head.SubCmd))] = m_NAtagMCActBossTrialInfo
-
-
-#------------------------------------------------------
-# AA 68 Boss历练活动玩家信息 #tagMCActBossTrialPlayerInfo
-
-class tagMCActBossTrialPlayerInfo(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("ActNum", c_ubyte), # 活动编号
- ("SubmitCount", c_int), # 已提交凭证个数,总个数
- ("SubmitAwardCount", c_int), # 已提交凭证个数,关联提交奖励的个数,领奖使用该个数判断
- ("SubmitAwardState", c_int), # 提交凭证奖励领奖状态
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xAA
- self.SubCmd = 0x68
- 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.Cmd = 0xAA
- self.SubCmd = 0x68
- self.ActNum = 0
- self.SubmitCount = 0
- self.SubmitAwardCount = 0
- self.SubmitAwardState = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCActBossTrialPlayerInfo)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AA 68 Boss历练活动玩家信息 //tagMCActBossTrialPlayerInfo:
- Cmd:%s,
- SubCmd:%s,
- ActNum:%d,
- SubmitCount:%d,
- SubmitAwardCount:%d,
- SubmitAwardState:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.ActNum,
- self.SubmitCount,
- self.SubmitAwardCount,
- self.SubmitAwardState
- )
- return DumpString
-
-
-m_NAtagMCActBossTrialPlayerInfo=tagMCActBossTrialPlayerInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActBossTrialPlayerInfo.Cmd,m_NAtagMCActBossTrialPlayerInfo.SubCmd))] = m_NAtagMCActBossTrialPlayerInfo
-
-
-#------------------------------------------------------
# AA 74 购买次数礼包活动信息 #tagMCActBuyCountGiftInfo
class tagMCActBuyCountGiftItem(Structure):
@@ -23891,285 +22866,6 @@
#------------------------------------------------------
-# AA 55 垃圾收集活动信息 #tagMCActGarbageSortingInfo
-
-class tagMCActGarbageSortingInfo(Structure):
- Head = tagHead()
- ActNum = 0 #(BYTE ActNum)// 活动编号
- StartDate = "" #(char StartDate[10])// 开始日期 y-m-d
- EndtDate = "" #(char EndtDate[10])// 结束日期 y-m-d
- LimitLV = 0 #(WORD LimitLV)// 限制等级
- ResetType = 0 #(BYTE ResetType)// 重置类型,0-0点重置;1-5点开,5点重置;2-5点开,0点重置
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x55
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.ActNum,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.StartDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.EndtDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.LimitLV,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.ResetType,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x55
- self.ActNum = 0
- self.StartDate = ""
- self.EndtDate = ""
- self.LimitLV = 0
- self.ResetType = 0
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += 10
- length += 10
- length += 2
- length += 1
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.ActNum)
- data = CommFunc.WriteString(data, 10, self.StartDate)
- data = CommFunc.WriteString(data, 10, self.EndtDate)
- data = CommFunc.WriteWORD(data, self.LimitLV)
- data = CommFunc.WriteBYTE(data, self.ResetType)
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- ActNum:%d,
- StartDate:%s,
- EndtDate:%s,
- LimitLV:%d,
- ResetType:%d
- '''\
- %(
- self.Head.OutputString(),
- self.ActNum,
- self.StartDate,
- self.EndtDate,
- self.LimitLV,
- self.ResetType
- )
- return DumpString
-
-
-m_NAtagMCActGarbageSortingInfo=tagMCActGarbageSortingInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActGarbageSortingInfo.Head.Cmd,m_NAtagMCActGarbageSortingInfo.Head.SubCmd))] = m_NAtagMCActGarbageSortingInfo
-
-
-#------------------------------------------------------
-# AA 57 垃圾收集活动分类结果 #tagMCActGarbageSortingResult
-
-class tagMCActGarbageSortingResult(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("ActNum", c_ubyte), #活动编号
- ("GarbageSortingType", c_ubyte), #垃圾分类类型
- ("IsRight", c_ubyte), #是否正确
- ("AddEnvValue", c_int), #增加环保值
- ("HisEnvValueTotal", c_int), # 当前活动累计获得环保值
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xAA
- self.SubCmd = 0x57
- 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.Cmd = 0xAA
- self.SubCmd = 0x57
- self.ActNum = 0
- self.GarbageSortingType = 0
- self.IsRight = 0
- self.AddEnvValue = 0
- self.HisEnvValueTotal = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCActGarbageSortingResult)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AA 57 垃圾收集活动分类结果 //tagMCActGarbageSortingResult:
- Cmd:%s,
- SubCmd:%s,
- ActNum:%d,
- GarbageSortingType:%d,
- IsRight:%d,
- AddEnvValue:%d,
- HisEnvValueTotal:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.ActNum,
- self.GarbageSortingType,
- self.IsRight,
- self.AddEnvValue,
- self.HisEnvValueTotal
- )
- return DumpString
-
-
-m_NAtagMCActGarbageSortingResult=tagMCActGarbageSortingResult()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActGarbageSortingResult.Cmd,m_NAtagMCActGarbageSortingResult.SubCmd))] = m_NAtagMCActGarbageSortingResult
-
-
-#------------------------------------------------------
-# AA 56 垃圾收集活动任务进度信息 #tagMCActGarbageTaskInfo
-
-class tagMCActGarbageTask(Structure):
- _pack_ = 1
- _fields_ = [
- ("GarbageTaskID", c_ubyte), #垃圾任务ID
- ("GarbageTaskValue", c_int), #当前进度值,一直累加
- ("GarbageTaskFinishCount", c_int), #当前已完成次数; 前端计算未完成次数的进度值=max(0, 当前进度值 - (完成次数 * 单次所需进度))
- ]
-
- 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.GarbageTaskID = 0
- self.GarbageTaskValue = 0
- self.GarbageTaskFinishCount = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCActGarbageTask)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AA 56 垃圾收集活动任务进度信息 //tagMCActGarbageTaskInfo:
- GarbageTaskID:%d,
- GarbageTaskValue:%d,
- GarbageTaskFinishCount:%d
- '''\
- %(
- self.GarbageTaskID,
- self.GarbageTaskValue,
- self.GarbageTaskFinishCount
- )
- return DumpString
-
-
-class tagMCActGarbageTaskInfo(Structure):
- Head = tagHead()
- ActNum = 0 #(BYTE ActNum)// 活动编号
- HisEnvValueTotal = 0 #(DWORD HisEnvValueTotal)// 当前活动累计获得环保值
- GarbageTaskCount = 0 #(BYTE GarbageTaskCount)//任务数
- GarbageTaskList = list() #(vector<tagMCActGarbageTask> GarbageTaskList)//任务信息列表
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x56
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.ActNum,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.HisEnvValueTotal,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.GarbageTaskCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.GarbageTaskCount):
- temGarbageTaskList = tagMCActGarbageTask()
- _pos = temGarbageTaskList.ReadData(_lpData, _pos)
- self.GarbageTaskList.append(temGarbageTaskList)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x56
- self.ActNum = 0
- self.HisEnvValueTotal = 0
- self.GarbageTaskCount = 0
- self.GarbageTaskList = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += 4
- length += 1
- for i in range(self.GarbageTaskCount):
- length += self.GarbageTaskList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.ActNum)
- data = CommFunc.WriteDWORD(data, self.HisEnvValueTotal)
- data = CommFunc.WriteBYTE(data, self.GarbageTaskCount)
- for i in range(self.GarbageTaskCount):
- data = CommFunc.WriteString(data, self.GarbageTaskList[i].GetLength(), self.GarbageTaskList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- ActNum:%d,
- HisEnvValueTotal:%d,
- GarbageTaskCount:%d,
- GarbageTaskList:%s
- '''\
- %(
- self.Head.OutputString(),
- self.ActNum,
- self.HisEnvValueTotal,
- self.GarbageTaskCount,
- "..."
- )
- return DumpString
-
-
-m_NAtagMCActGarbageTaskInfo=tagMCActGarbageTaskInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActGarbageTaskInfo.Head.Cmd,m_NAtagMCActGarbageTaskInfo.Head.SubCmd))] = m_NAtagMCActGarbageTaskInfo
-
-
-#------------------------------------------------------
# AA 60 天帝礼包活动信息 #tagMCActGodGiftInfo
class tagMCActGodGiftItem(Structure):
@@ -24832,862 +23528,6 @@
m_NAtagMCActGrowupBuyInfo=tagMCActGrowupBuyInfo()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActGrowupBuyInfo.Head.Cmd,m_NAtagMCActGrowupBuyInfo.Head.SubCmd))] = m_NAtagMCActGrowupBuyInfo
-
-
-#------------------------------------------------------
-# AA 81 古宝养成活动信息 #tagMCActGubaoInfo
-
-class tagMCActGubaoItem(Structure):
- _pack_ = 1
- _fields_ = [
- ("ItemID", c_int),
- ("ItemCount", c_ushort),
- ("IsBind", c_ubyte),
- ]
-
- 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.ItemID = 0
- self.ItemCount = 0
- self.IsBind = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCActGubaoItem)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AA 81 古宝养成活动信息 //tagMCActGubaoInfo:
- ItemID:%d,
- ItemCount:%d,
- IsBind:%d
- '''\
- %(
- self.ItemID,
- self.ItemCount,
- self.IsBind
- )
- return DumpString
-
-
-class tagMCActGubaoAwardEx(Structure):
- NeedScore = 0 #(DWORD NeedScore)// 额外奖励所需积分
- Count = 0 #(BYTE Count)// 额外奖励物品数
- AwardItemList = list() #(vector<tagMCActGubaoItem> AwardItemList)// 额外奖励物品列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCActGubaoItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- return _pos
-
- def Clear(self):
- self.NeedScore = 0
- self.Count = 0
- self.AwardItemList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- NeedScore:%d,
- Count:%d,
- AwardItemList:%s
- '''\
- %(
- self.NeedScore,
- self.Count,
- "..."
- )
- return DumpString
-
-
-class tagMCActGubaoBillard(Structure):
- Rank = 0 #(DWORD Rank)// 名次,1-代表第一名;支持夸段,如1,3 代表第1名,第2~3名
- Count = 0 #(BYTE Count)// 奖励物品数
- AwardItemList = list() #(vector<tagMCActGubaoItem> AwardItemList)// 奖励物品列表
- NeedScore = 0 #(DWORD NeedScore)// 上榜所需积分
- CountEx = 0 #(BYTE CountEx)// 额外奖励数
- AwardItemExList = list() #(vector<tagMCActGubaoAwardEx> AwardItemExList)// 额外奖励列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.Rank,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCActGubaoItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.CountEx,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.CountEx):
- temAwardItemExList = tagMCActGubaoAwardEx()
- _pos = temAwardItemExList.ReadData(_lpData, _pos)
- self.AwardItemExList.append(temAwardItemExList)
- return _pos
-
- def Clear(self):
- self.Rank = 0
- self.Count = 0
- self.AwardItemList = list()
- self.NeedScore = 0
- self.CountEx = 0
- self.AwardItemExList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
- length += 4
- length += 1
- for i in range(self.CountEx):
- length += self.AwardItemExList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.Rank)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.CountEx)
- for i in range(self.CountEx):
- data = CommFunc.WriteString(data, self.AwardItemExList[i].GetLength(), self.AwardItemExList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Rank:%d,
- Count:%d,
- AwardItemList:%s,
- NeedScore:%d,
- CountEx:%d,
- AwardItemExList:%s
- '''\
- %(
- self.Rank,
- self.Count,
- "...",
- self.NeedScore,
- self.CountEx,
- "..."
- )
- return DumpString
-
-
-class tagMCActGubaoInfo(Structure):
- Head = tagHead()
- ActNum = 0 #(BYTE ActNum)// 活动编号
- StartDate = "" #(char StartDate[10])// 开始日期 y-m-d
- EndtDate = "" #(char EndtDate[10])// 结束日期 y-m-d
- JoinStartTime = "" #(char JoinStartTime[5])// 参与开始时间点 mm:ss
- JoinEndTime = "" #(char JoinEndTime[5])// 参与结束时间点 mm:ss
- LimitLV = 0 #(WORD LimitLV)// 限制等级
- ShopType = 0 #(WORD ShopType)// 开放商店类型,可能为0不开放
- PersonalBillCount = 0 #(BYTE PersonalBillCount)
- PersonalBillboardInfoList = list() #(vector<tagMCActGubaoBillard> PersonalBillboardInfoList)// 个人榜单奖励信息列表,如果没有代表本次活动没有该榜奖励
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x81
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.ActNum,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.StartDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.EndtDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.JoinStartTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.JoinEndTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.LimitLV,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.ShopType,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.PersonalBillCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.PersonalBillCount):
- temPersonalBillboardInfoList = tagMCActGubaoBillard()
- _pos = temPersonalBillboardInfoList.ReadData(_lpData, _pos)
- self.PersonalBillboardInfoList.append(temPersonalBillboardInfoList)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x81
- self.ActNum = 0
- self.StartDate = ""
- self.EndtDate = ""
- self.JoinStartTime = ""
- self.JoinEndTime = ""
- self.LimitLV = 0
- self.ShopType = 0
- self.PersonalBillCount = 0
- self.PersonalBillboardInfoList = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += 10
- length += 10
- length += 5
- length += 5
- length += 2
- length += 2
- length += 1
- for i in range(self.PersonalBillCount):
- length += self.PersonalBillboardInfoList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.ActNum)
- data = CommFunc.WriteString(data, 10, self.StartDate)
- data = CommFunc.WriteString(data, 10, self.EndtDate)
- data = CommFunc.WriteString(data, 5, self.JoinStartTime)
- data = CommFunc.WriteString(data, 5, self.JoinEndTime)
- data = CommFunc.WriteWORD(data, self.LimitLV)
- data = CommFunc.WriteWORD(data, self.ShopType)
- data = CommFunc.WriteBYTE(data, self.PersonalBillCount)
- for i in range(self.PersonalBillCount):
- data = CommFunc.WriteString(data, self.PersonalBillboardInfoList[i].GetLength(), self.PersonalBillboardInfoList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- ActNum:%d,
- StartDate:%s,
- EndtDate:%s,
- JoinStartTime:%s,
- JoinEndTime:%s,
- LimitLV:%d,
- ShopType:%d,
- PersonalBillCount:%d,
- PersonalBillboardInfoList:%s
- '''\
- %(
- self.Head.OutputString(),
- self.ActNum,
- self.StartDate,
- self.EndtDate,
- self.JoinStartTime,
- self.JoinEndTime,
- self.LimitLV,
- self.ShopType,
- self.PersonalBillCount,
- "..."
- )
- return DumpString
-
-
-m_NAtagMCActGubaoInfo=tagMCActGubaoInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActGubaoInfo.Head.Cmd,m_NAtagMCActGubaoInfo.Head.SubCmd))] = m_NAtagMCActGubaoInfo
-
-
-#------------------------------------------------------
-# AA 82 古宝养成活动玩家信息 #tagMCActGubaoPlayerInfo
-
-class tagMCActGubaoPlayerInfo(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("ActNum", c_ubyte), # 活动编号
- ("Score", c_int), # 当前积分
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xAA
- self.SubCmd = 0x82
- 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.Cmd = 0xAA
- self.SubCmd = 0x82
- self.ActNum = 0
- self.Score = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCActGubaoPlayerInfo)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AA 82 古宝养成活动玩家信息 //tagMCActGubaoPlayerInfo:
- Cmd:%s,
- SubCmd:%s,
- ActNum:%d,
- Score:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.ActNum,
- self.Score
- )
- return DumpString
-
-
-m_NAtagMCActGubaoPlayerInfo=tagMCActGubaoPlayerInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActGubaoPlayerInfo.Cmd,m_NAtagMCActGubaoPlayerInfo.SubCmd))] = m_NAtagMCActGubaoPlayerInfo
-
-
-#------------------------------------------------------
-# AA 54 骑宠盛宴活动信息 #tagMCActHorsePetFeastInfo
-
-class tagMCActHorsePetFeastTime(Structure):
- StartTime = "" #(char StartTime[5])// 开始时间 H:M
- EndtTime = "" #(char EndtTime[5])// 结束时间 H:M
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.StartTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.EndtTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- return _pos
-
- def Clear(self):
- self.StartTime = ""
- self.EndtTime = ""
- return
-
- def GetLength(self):
- length = 0
- length += 5
- length += 5
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, 5, self.StartTime)
- data = CommFunc.WriteString(data, 5, self.EndtTime)
- return data
-
- def OutputString(self):
- DumpString = '''
- StartTime:%s,
- EndtTime:%s
- '''\
- %(
- self.StartTime,
- self.EndtTime
- )
- return DumpString
-
-
-class tagMCActHorsePetFeastInfo(Structure):
- Head = tagHead()
- ActNum = 0 #(BYTE ActNum)//活动编号
- StartDate = "" #(char StartDate[10])// 开始日期 y-m-d
- EndtDate = "" #(char EndtDate[10])// 结束日期 y-m-d
- TimeCount = 0 #(BYTE TimeCount)
- ActTimeList = list() #(vector<tagMCActHorsePetFeastTime> ActTimeList)// 活动时间 H:M 列表
- LimitLV = 0 #(WORD LimitLV)// 限制等级
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x54
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.ActNum,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.StartDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.EndtDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.TimeCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.TimeCount):
- temActTimeList = tagMCActHorsePetFeastTime()
- _pos = temActTimeList.ReadData(_lpData, _pos)
- self.ActTimeList.append(temActTimeList)
- self.LimitLV,_pos = CommFunc.ReadWORD(_lpData, _pos)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x54
- self.ActNum = 0
- self.StartDate = ""
- self.EndtDate = ""
- self.TimeCount = 0
- self.ActTimeList = list()
- self.LimitLV = 0
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += 10
- length += 10
- length += 1
- for i in range(self.TimeCount):
- length += self.ActTimeList[i].GetLength()
- length += 2
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.ActNum)
- data = CommFunc.WriteString(data, 10, self.StartDate)
- data = CommFunc.WriteString(data, 10, self.EndtDate)
- data = CommFunc.WriteBYTE(data, self.TimeCount)
- for i in range(self.TimeCount):
- data = CommFunc.WriteString(data, self.ActTimeList[i].GetLength(), self.ActTimeList[i].GetBuffer())
- data = CommFunc.WriteWORD(data, self.LimitLV)
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- ActNum:%d,
- StartDate:%s,
- EndtDate:%s,
- TimeCount:%d,
- ActTimeList:%s,
- LimitLV:%d
- '''\
- %(
- self.Head.OutputString(),
- self.ActNum,
- self.StartDate,
- self.EndtDate,
- self.TimeCount,
- "...",
- self.LimitLV
- )
- return DumpString
-
-
-m_NAtagMCActHorsePetFeastInfo=tagMCActHorsePetFeastInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActHorsePetFeastInfo.Head.Cmd,m_NAtagMCActHorsePetFeastInfo.Head.SubCmd))] = m_NAtagMCActHorsePetFeastInfo
-
-
-#------------------------------------------------------
-# AA 84 骑宠养成活动信息 #tagMCActHorsePetTrainInfo
-
-class tagMCActHorsePetTrainItem(Structure):
- _pack_ = 1
- _fields_ = [
- ("ItemID", c_int),
- ("ItemCount", c_ushort),
- ("IsBind", c_ubyte),
- ]
-
- 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.ItemID = 0
- self.ItemCount = 0
- self.IsBind = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCActHorsePetTrainItem)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AA 84 骑宠养成活动信息 //tagMCActHorsePetTrainInfo:
- ItemID:%d,
- ItemCount:%d,
- IsBind:%d
- '''\
- %(
- self.ItemID,
- self.ItemCount,
- self.IsBind
- )
- return DumpString
-
-
-class tagMCActHorsePetTrainAwardEx(Structure):
- NeedScore = 0 #(DWORD NeedScore)// 额外奖励所需积分
- Count = 0 #(BYTE Count)// 额外奖励物品数
- AwardItemList = list() #(vector<tagMCActHorsePetTrainItem> AwardItemList)// 额外奖励物品列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCActHorsePetTrainItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- return _pos
-
- def Clear(self):
- self.NeedScore = 0
- self.Count = 0
- self.AwardItemList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- NeedScore:%d,
- Count:%d,
- AwardItemList:%s
- '''\
- %(
- self.NeedScore,
- self.Count,
- "..."
- )
- return DumpString
-
-
-class tagMCActHorsePetTrainBillard(Structure):
- Rank = 0 #(DWORD Rank)// 名次,1-代表第一名;支持夸段,如1,3 代表第1名,第2~3名
- Count = 0 #(BYTE Count)// 奖励物品数
- AwardItemList = list() #(vector<tagMCActHorsePetTrainItem> AwardItemList)// 奖励物品列表
- NeedScore = 0 #(DWORD NeedScore)// 上榜所需积分
- CountEx = 0 #(BYTE CountEx)// 额外奖励数
- AwardItemExList = list() #(vector<tagMCActHorsePetTrainAwardEx> AwardItemExList)// 额外奖励列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.Rank,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCActHorsePetTrainItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.CountEx,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.CountEx):
- temAwardItemExList = tagMCActHorsePetTrainAwardEx()
- _pos = temAwardItemExList.ReadData(_lpData, _pos)
- self.AwardItemExList.append(temAwardItemExList)
- return _pos
-
- def Clear(self):
- self.Rank = 0
- self.Count = 0
- self.AwardItemList = list()
- self.NeedScore = 0
- self.CountEx = 0
- self.AwardItemExList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
- length += 4
- length += 1
- for i in range(self.CountEx):
- length += self.AwardItemExList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.Rank)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.CountEx)
- for i in range(self.CountEx):
- data = CommFunc.WriteString(data, self.AwardItemExList[i].GetLength(), self.AwardItemExList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Rank:%d,
- Count:%d,
- AwardItemList:%s,
- NeedScore:%d,
- CountEx:%d,
- AwardItemExList:%s
- '''\
- %(
- self.Rank,
- self.Count,
- "...",
- self.NeedScore,
- self.CountEx,
- "..."
- )
- return DumpString
-
-
-class tagMCActHorsePetTrainInfo(Structure):
- Head = tagHead()
- ActNum = 0 #(BYTE ActNum)// 活动编号
- StartDate = "" #(char StartDate[10])// 开始日期 y-m-d
- EndtDate = "" #(char EndtDate[10])// 结束日期 y-m-d
- JoinStartTime = "" #(char JoinStartTime[5])// 参与开始时间点 mm:ss
- JoinEndTime = "" #(char JoinEndTime[5])// 参与结束时间点 mm:ss
- LimitLV = 0 #(WORD LimitLV)// 限制等级
- ShopType = 0 #(WORD ShopType)// 开放商店类型,可能为0不开放
- PersonalBillCount = 0 #(BYTE PersonalBillCount)
- PersonalBillboardInfoList = list() #(vector<tagMCActHorsePetTrainBillard> PersonalBillboardInfoList)// 个人榜单奖励信息列表,如果没有代表本次活动没有该榜奖励
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x84
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.ActNum,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.StartDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.EndtDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.JoinStartTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.JoinEndTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.LimitLV,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.ShopType,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.PersonalBillCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.PersonalBillCount):
- temPersonalBillboardInfoList = tagMCActHorsePetTrainBillard()
- _pos = temPersonalBillboardInfoList.ReadData(_lpData, _pos)
- self.PersonalBillboardInfoList.append(temPersonalBillboardInfoList)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x84
- self.ActNum = 0
- self.StartDate = ""
- self.EndtDate = ""
- self.JoinStartTime = ""
- self.JoinEndTime = ""
- self.LimitLV = 0
- self.ShopType = 0
- self.PersonalBillCount = 0
- self.PersonalBillboardInfoList = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += 10
- length += 10
- length += 5
- length += 5
- length += 2
- length += 2
- length += 1
- for i in range(self.PersonalBillCount):
- length += self.PersonalBillboardInfoList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.ActNum)
- data = CommFunc.WriteString(data, 10, self.StartDate)
- data = CommFunc.WriteString(data, 10, self.EndtDate)
- data = CommFunc.WriteString(data, 5, self.JoinStartTime)
- data = CommFunc.WriteString(data, 5, self.JoinEndTime)
- data = CommFunc.WriteWORD(data, self.LimitLV)
- data = CommFunc.WriteWORD(data, self.ShopType)
- data = CommFunc.WriteBYTE(data, self.PersonalBillCount)
- for i in range(self.PersonalBillCount):
- data = CommFunc.WriteString(data, self.PersonalBillboardInfoList[i].GetLength(), self.PersonalBillboardInfoList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- ActNum:%d,
- StartDate:%s,
- EndtDate:%s,
- JoinStartTime:%s,
- JoinEndTime:%s,
- LimitLV:%d,
- ShopType:%d,
- PersonalBillCount:%d,
- PersonalBillboardInfoList:%s
- '''\
- %(
- self.Head.OutputString(),
- self.ActNum,
- self.StartDate,
- self.EndtDate,
- self.JoinStartTime,
- self.JoinEndTime,
- self.LimitLV,
- self.ShopType,
- self.PersonalBillCount,
- "..."
- )
- return DumpString
-
-
-m_NAtagMCActHorsePetTrainInfo=tagMCActHorsePetTrainInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActHorsePetTrainInfo.Head.Cmd,m_NAtagMCActHorsePetTrainInfo.Head.SubCmd))] = m_NAtagMCActHorsePetTrainInfo
-
-
-#------------------------------------------------------
-# AA 85 骑宠养成活动玩家信息 #tagMCActHorsePetTrainPlayerInfo
-
-class tagMCActHorsePetTrainPlayerInfo(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("ActNum", c_ubyte), # 活动编号
- ("Score", c_int), # 当前活动积分
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xAA
- self.SubCmd = 0x85
- 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.Cmd = 0xAA
- self.SubCmd = 0x85
- self.ActNum = 0
- self.Score = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCActHorsePetTrainPlayerInfo)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AA 85 骑宠养成活动玩家信息 //tagMCActHorsePetTrainPlayerInfo:
- Cmd:%s,
- SubCmd:%s,
- ActNum:%d,
- Score:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.ActNum,
- self.Score
- )
- return DumpString
-
-
-m_NAtagMCActHorsePetTrainPlayerInfo=tagMCActHorsePetTrainPlayerInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActHorsePetTrainPlayerInfo.Cmd,m_NAtagMCActHorsePetTrainPlayerInfo.SubCmd))] = m_NAtagMCActHorsePetTrainPlayerInfo
#------------------------------------------------------
@@ -29573,593 +27413,6 @@
#------------------------------------------------------
-# AA 59 仙匣秘境抽奖结果 #tagMCActXianXiaMJAwardItemResult
-
-class tagMCActXianXiaMJAwardItemResult(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("ActNum", c_ubyte), # 活动编号
- ("ItemLibType", c_ubyte), #物品库类型;9-固定为大奖库,非9-策划自定义库
- ("ItemID", c_int), # 注意: 不同库物品ID可能相同,但个数不同
- ("ItemCount", c_ushort),
- ("PosNum", c_ubyte), # 被抽中时的位置编号,1~99,前端自定义展示位置编号,0代表未被抽中;
- ("TotalTimesNow", c_ubyte), #当前已产出次数,不限制次数时不记录,即同样为0
- ("LotteryScore", c_int), #当前抽奖积分
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xAA
- self.SubCmd = 0x59
- 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.Cmd = 0xAA
- self.SubCmd = 0x59
- self.ActNum = 0
- self.ItemLibType = 0
- self.ItemID = 0
- self.ItemCount = 0
- self.PosNum = 0
- self.TotalTimesNow = 0
- self.LotteryScore = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCActXianXiaMJAwardItemResult)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AA 59 仙匣秘境抽奖结果 //tagMCActXianXiaMJAwardItemResult:
- Cmd:%s,
- SubCmd:%s,
- ActNum:%d,
- ItemLibType:%d,
- ItemID:%d,
- ItemCount:%d,
- PosNum:%d,
- TotalTimesNow:%d,
- LotteryScore:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.ActNum,
- self.ItemLibType,
- self.ItemID,
- self.ItemCount,
- self.PosNum,
- self.TotalTimesNow,
- self.LotteryScore
- )
- return DumpString
-
-
-m_NAtagMCActXianXiaMJAwardItemResult=tagMCActXianXiaMJAwardItemResult()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActXianXiaMJAwardItemResult.Cmd,m_NAtagMCActXianXiaMJAwardItemResult.SubCmd))] = m_NAtagMCActXianXiaMJAwardItemResult
-
-
-#------------------------------------------------------
-# AA 58 仙匣秘境活动信息 #tagMCActXianXiaMJInfo
-
-class tagMCActXianXiaMJItem(Structure):
- _pack_ = 1
- _fields_ = [
- ("ItemID", c_int),
- ("ItemCount", c_ushort),
- ("IsBind", c_ubyte),
- ]
-
- 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.ItemID = 0
- self.ItemCount = 0
- self.IsBind = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCActXianXiaMJItem)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AA 58 仙匣秘境活动信息 //tagMCActXianXiaMJInfo:
- ItemID:%d,
- ItemCount:%d,
- IsBind:%d
- '''\
- %(
- self.ItemID,
- self.ItemCount,
- self.IsBind
- )
- return DumpString
-
-
-class tagMCActXianXiaMJAwardEx(Structure):
- NeedScore = 0 #(DWORD NeedScore)// 额外奖励所需积分
- Count = 0 #(BYTE Count)// 额外奖励物品数
- AwardItemList = list() #(vector<tagMCActXianXiaMJItem> AwardItemList)// 额外奖励物品列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCActXianXiaMJItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- return _pos
-
- def Clear(self):
- self.NeedScore = 0
- self.Count = 0
- self.AwardItemList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- NeedScore:%d,
- Count:%d,
- AwardItemList:%s
- '''\
- %(
- self.NeedScore,
- self.Count,
- "..."
- )
- return DumpString
-
-
-class tagMCActXianXiaMJBillard(Structure):
- Rank = 0 #(DWORD Rank)// 名次,1-代表第一名;支持夸段,如1,3 代表第1名,第2~3名
- Count = 0 #(BYTE Count)// 奖励物品数
- AwardItemList = list() #(vector<tagMCActXianXiaMJItem> AwardItemList)// 奖励物品列表
- NeedScore = 0 #(DWORD NeedScore)// 上榜所需积分
- CountEx = 0 #(BYTE CountEx)// 额外奖励数
- AwardItemExList = list() #(vector<tagMCActXianXiaMJAwardEx> AwardItemExList)// 额外奖励列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.Rank,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCActXianXiaMJItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.CountEx,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.CountEx):
- temAwardItemExList = tagMCActXianXiaMJAwardEx()
- _pos = temAwardItemExList.ReadData(_lpData, _pos)
- self.AwardItemExList.append(temAwardItemExList)
- return _pos
-
- def Clear(self):
- self.Rank = 0
- self.Count = 0
- self.AwardItemList = list()
- self.NeedScore = 0
- self.CountEx = 0
- self.AwardItemExList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
- length += 4
- length += 1
- for i in range(self.CountEx):
- length += self.AwardItemExList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.Rank)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.CountEx)
- for i in range(self.CountEx):
- data = CommFunc.WriteString(data, self.AwardItemExList[i].GetLength(), self.AwardItemExList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Rank:%d,
- Count:%d,
- AwardItemList:%s,
- NeedScore:%d,
- CountEx:%d,
- AwardItemExList:%s
- '''\
- %(
- self.Rank,
- self.Count,
- "...",
- self.NeedScore,
- self.CountEx,
- "..."
- )
- return DumpString
-
-
-class tagMCActXianXiaMJInfo(Structure):
- Head = tagHead()
- ActNum = 0 #(BYTE ActNum)// 活动编号
- StartDate = "" #(char StartDate[10])// 开始日期 y-m-d
- EndtDate = "" #(char EndtDate[10])// 结束日期 y-m-d
- JoinStartTime = "" #(char JoinStartTime[5])// 参与开始时间点 mm:ss
- JoinEndTime = "" #(char JoinEndTime[5])// 参与结束时间点 mm:ss
- IsDayReset = 0 #(BYTE IsDayReset)// 是否每天重置
- LimitLV = 0 #(WORD LimitLV)// 限制等级
- UseItemID = 0 #(DWORD UseItemID)//消耗物品ID,默认1个;消耗物品或货币二选一即可,或都配则先消耗道具,不足则消耗货币
- MoneyType = 0 #(BYTE MoneyType)//消耗货币类型
- MoneyValue = 0 #(WORD MoneyValue)//消耗货币值
- LotteryAddScore = 0 #(WORD LotteryAddScore)//每次抽奖加积分
- LayerAddScore = 0 #(WORD LayerAddScore)//每次跨层加积分
- PersonalBillCount = 0 #(BYTE PersonalBillCount)
- PersonalBillboardInfoList = list() #(vector<tagMCActXianXiaMJBillard> PersonalBillboardInfoList)// 个人榜单奖励信息列表,如果没有代表本次活动没有该榜奖励
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x58
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.ActNum,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.StartDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.EndtDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.JoinStartTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.JoinEndTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.IsDayReset,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.LimitLV,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.UseItemID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.MoneyType,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.MoneyValue,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.LotteryAddScore,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.LayerAddScore,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.PersonalBillCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.PersonalBillCount):
- temPersonalBillboardInfoList = tagMCActXianXiaMJBillard()
- _pos = temPersonalBillboardInfoList.ReadData(_lpData, _pos)
- self.PersonalBillboardInfoList.append(temPersonalBillboardInfoList)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x58
- self.ActNum = 0
- self.StartDate = ""
- self.EndtDate = ""
- self.JoinStartTime = ""
- self.JoinEndTime = ""
- self.IsDayReset = 0
- self.LimitLV = 0
- self.UseItemID = 0
- self.MoneyType = 0
- self.MoneyValue = 0
- self.LotteryAddScore = 0
- self.LayerAddScore = 0
- self.PersonalBillCount = 0
- self.PersonalBillboardInfoList = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += 10
- length += 10
- length += 5
- length += 5
- length += 1
- length += 2
- length += 4
- length += 1
- length += 2
- length += 2
- length += 2
- length += 1
- for i in range(self.PersonalBillCount):
- length += self.PersonalBillboardInfoList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.ActNum)
- data = CommFunc.WriteString(data, 10, self.StartDate)
- data = CommFunc.WriteString(data, 10, self.EndtDate)
- data = CommFunc.WriteString(data, 5, self.JoinStartTime)
- data = CommFunc.WriteString(data, 5, self.JoinEndTime)
- data = CommFunc.WriteBYTE(data, self.IsDayReset)
- data = CommFunc.WriteWORD(data, self.LimitLV)
- data = CommFunc.WriteDWORD(data, self.UseItemID)
- data = CommFunc.WriteBYTE(data, self.MoneyType)
- data = CommFunc.WriteWORD(data, self.MoneyValue)
- data = CommFunc.WriteWORD(data, self.LotteryAddScore)
- data = CommFunc.WriteWORD(data, self.LayerAddScore)
- data = CommFunc.WriteBYTE(data, self.PersonalBillCount)
- for i in range(self.PersonalBillCount):
- data = CommFunc.WriteString(data, self.PersonalBillboardInfoList[i].GetLength(), self.PersonalBillboardInfoList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- ActNum:%d,
- StartDate:%s,
- EndtDate:%s,
- JoinStartTime:%s,
- JoinEndTime:%s,
- IsDayReset:%d,
- LimitLV:%d,
- UseItemID:%d,
- MoneyType:%d,
- MoneyValue:%d,
- LotteryAddScore:%d,
- LayerAddScore:%d,
- PersonalBillCount:%d,
- PersonalBillboardInfoList:%s
- '''\
- %(
- self.Head.OutputString(),
- self.ActNum,
- self.StartDate,
- self.EndtDate,
- self.JoinStartTime,
- self.JoinEndTime,
- self.IsDayReset,
- self.LimitLV,
- self.UseItemID,
- self.MoneyType,
- self.MoneyValue,
- self.LotteryAddScore,
- self.LayerAddScore,
- self.PersonalBillCount,
- "..."
- )
- return DumpString
-
-
-m_NAtagMCActXianXiaMJInfo=tagMCActXianXiaMJInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActXianXiaMJInfo.Head.Cmd,m_NAtagMCActXianXiaMJInfo.Head.SubCmd))] = m_NAtagMCActXianXiaMJInfo
-
-
-#------------------------------------------------------
-# AA 79 仙匣秘境层信息 #tagMCActXianXiaMJLayerInfo
-
-class tagMCActXianXiaMJLayerItem(Structure):
- _pack_ = 1
- _fields_ = [
- ("ItemLibType", c_ubyte), #物品库类型;9-固定为大奖库,非9-策划自定义库
- ("ItemID", c_int), # 注意: 不同库物品ID可能相同,但个数不同
- ("ItemCount", c_ushort),
- ("PosNum", c_ubyte), # 被抽中时的位置编号,1~99,前端自定义展示位置编号,0代表未被抽中;
- ("TotalTimesNow", c_ubyte), #当前已产出次数,不限制次数时不记录,即同样为0
- ("TotalTimesMax", c_ubyte), #最大可产出次数,0不限
- ("LayerLimit", c_ubyte), #大于等于X层后可产出,0不限
- ]
-
- 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.ItemLibType = 0
- self.ItemID = 0
- self.ItemCount = 0
- self.PosNum = 0
- self.TotalTimesNow = 0
- self.TotalTimesMax = 0
- self.LayerLimit = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCActXianXiaMJLayerItem)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AA 79 仙匣秘境层信息 //tagMCActXianXiaMJLayerInfo:
- ItemLibType:%d,
- ItemID:%d,
- ItemCount:%d,
- PosNum:%d,
- TotalTimesNow:%d,
- TotalTimesMax:%d,
- LayerLimit:%d
- '''\
- %(
- self.ItemLibType,
- self.ItemID,
- self.ItemCount,
- self.PosNum,
- self.TotalTimesNow,
- self.TotalTimesMax,
- self.LayerLimit
- )
- return DumpString
-
-
-class tagMCActXianXiaMJLayerInfo(Structure):
- Head = tagHead()
- ActNum = 0 #(BYTE ActNum)// 活动编号
- LayerNum = 0 #(WORD LayerNum)//当前奖池第几层
- LotteryScore = 0 #(DWORD LotteryScore)//当前抽奖积分
- AwardItemCount = 0 #(BYTE AwardItemCount)
- AwardItemList = list() #(vector<tagMCActXianXiaMJLayerItem> AwardItemList)// 奖池物品列表,已生成的,包含已选择的大奖物品
- SuperItemCount = 0 #(BYTE SuperItemCount)
- SuperItemList = list() #(vector<tagMCActXianXiaMJLayerItem> SuperItemList)// 大奖物品待选择库,由玩家从库中选择放入奖池的物品;
- SuperItemCanChooseCount = 0 #(BYTE SuperItemCanChooseCount)// 大奖物品可选择个数
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x79
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.ActNum,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.LayerNum,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.LotteryScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.AwardItemCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.AwardItemCount):
- temAwardItemList = tagMCActXianXiaMJLayerItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- self.SuperItemCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.SuperItemCount):
- temSuperItemList = tagMCActXianXiaMJLayerItem()
- _pos = temSuperItemList.ReadData(_lpData, _pos)
- self.SuperItemList.append(temSuperItemList)
- self.SuperItemCanChooseCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x79
- self.ActNum = 0
- self.LayerNum = 0
- self.LotteryScore = 0
- self.AwardItemCount = 0
- self.AwardItemList = list()
- self.SuperItemCount = 0
- self.SuperItemList = list()
- self.SuperItemCanChooseCount = 0
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += 2
- length += 4
- length += 1
- for i in range(self.AwardItemCount):
- length += self.AwardItemList[i].GetLength()
- length += 1
- for i in range(self.SuperItemCount):
- length += self.SuperItemList[i].GetLength()
- length += 1
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.ActNum)
- data = CommFunc.WriteWORD(data, self.LayerNum)
- data = CommFunc.WriteDWORD(data, self.LotteryScore)
- data = CommFunc.WriteBYTE(data, self.AwardItemCount)
- for i in range(self.AwardItemCount):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- data = CommFunc.WriteBYTE(data, self.SuperItemCount)
- for i in range(self.SuperItemCount):
- data = CommFunc.WriteString(data, self.SuperItemList[i].GetLength(), self.SuperItemList[i].GetBuffer())
- data = CommFunc.WriteBYTE(data, self.SuperItemCanChooseCount)
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- ActNum:%d,
- LayerNum:%d,
- LotteryScore:%d,
- AwardItemCount:%d,
- AwardItemList:%s,
- SuperItemCount:%d,
- SuperItemList:%s,
- SuperItemCanChooseCount:%d
- '''\
- %(
- self.Head.OutputString(),
- self.ActNum,
- self.LayerNum,
- self.LotteryScore,
- self.AwardItemCount,
- "...",
- self.SuperItemCount,
- "...",
- self.SuperItemCanChooseCount
- )
- return DumpString
-
-
-m_NAtagMCActXianXiaMJLayerInfo=tagMCActXianXiaMJLayerInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActXianXiaMJLayerInfo.Head.Cmd,m_NAtagMCActXianXiaMJLayerInfo.Head.SubCmd))] = m_NAtagMCActXianXiaMJLayerInfo
-
-
-#------------------------------------------------------
# AA 87 运势活动信息 #tagMCActYunshiInfo
class tagMCActYunshiInfo(Structure):
@@ -31172,961 +28425,6 @@
#------------------------------------------------------
-# AA 76 Boss历练跨服活动信息 #tagMCCrossActBossTrialInfo
-
-class tagMCCrossActBossTrialItem(Structure):
- _pack_ = 1
- _fields_ = [
- ("ItemID", c_int),
- ("ItemCount", c_ushort),
- ("IsBind", c_ubyte),
- ]
-
- 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.ItemID = 0
- self.ItemCount = 0
- self.IsBind = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCCrossActBossTrialItem)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AA 76 Boss历练跨服活动信息 //tagMCCrossActBossTrialInfo:
- ItemID:%d,
- ItemCount:%d,
- IsBind:%d
- '''\
- %(
- self.ItemID,
- self.ItemCount,
- self.IsBind
- )
- return DumpString
-
-
-class tagMCCrossActBossTrialAwardEx(Structure):
- NeedScore = 0 #(DWORD NeedScore)// 额外奖励所需积分
- Count = 0 #(BYTE Count)// 额外奖励物品数
- AwardItemList = list() #(vector<tagMCCrossActBossTrialItem> AwardItemList)// 额外奖励物品列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCCrossActBossTrialItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- return _pos
-
- def Clear(self):
- self.NeedScore = 0
- self.Count = 0
- self.AwardItemList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- NeedScore:%d,
- Count:%d,
- AwardItemList:%s
- '''\
- %(
- self.NeedScore,
- self.Count,
- "..."
- )
- return DumpString
-
-
-class tagMCCrossActBossTrialBillard(Structure):
- Rank = 0 #(DWORD Rank)// 名次,1-代表第一名;支持夸段,如1,3 代表第1名,第2~3名
- Count = 0 #(BYTE Count)// 奖励物品数
- AwardItemList = list() #(vector<tagMCCrossActBossTrialItem> AwardItemList)// 奖励物品列表,当仙盟榜时,如果有该奖励则代表盟主奖励,否则默认均为成员奖励
- MemCount = 0 #(BYTE MemCount)// 成员奖励物品数
- MemAwardItemList = list() #(vector<tagMCCrossActBossTrialItem> MemAwardItemList)// 成员奖励物品列表,仅仙盟榜时有效
- NeedScore = 0 #(DWORD NeedScore)// 上榜所需积分
- CountEx = 0 #(BYTE CountEx)// 额外奖励数
- AwardItemExList = list() #(vector<tagMCCrossActBossTrialAwardEx> AwardItemExList)// 额外奖励列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.Rank,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCCrossActBossTrialItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- self.MemCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.MemCount):
- temMemAwardItemList = tagMCCrossActBossTrialItem()
- _pos = temMemAwardItemList.ReadData(_lpData, _pos)
- self.MemAwardItemList.append(temMemAwardItemList)
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.CountEx,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.CountEx):
- temAwardItemExList = tagMCCrossActBossTrialAwardEx()
- _pos = temAwardItemExList.ReadData(_lpData, _pos)
- self.AwardItemExList.append(temAwardItemExList)
- return _pos
-
- def Clear(self):
- self.Rank = 0
- self.Count = 0
- self.AwardItemList = list()
- self.MemCount = 0
- self.MemAwardItemList = list()
- self.NeedScore = 0
- self.CountEx = 0
- self.AwardItemExList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
- length += 1
- for i in range(self.MemCount):
- length += self.MemAwardItemList[i].GetLength()
- length += 4
- length += 1
- for i in range(self.CountEx):
- length += self.AwardItemExList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.Rank)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- data = CommFunc.WriteBYTE(data, self.MemCount)
- for i in range(self.MemCount):
- data = CommFunc.WriteString(data, self.MemAwardItemList[i].GetLength(), self.MemAwardItemList[i].GetBuffer())
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.CountEx)
- for i in range(self.CountEx):
- data = CommFunc.WriteString(data, self.AwardItemExList[i].GetLength(), self.AwardItemExList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Rank:%d,
- Count:%d,
- AwardItemList:%s,
- MemCount:%d,
- MemAwardItemList:%s,
- NeedScore:%d,
- CountEx:%d,
- AwardItemExList:%s
- '''\
- %(
- self.Rank,
- self.Count,
- "...",
- self.MemCount,
- "...",
- self.NeedScore,
- self.CountEx,
- "..."
- )
- return DumpString
-
-
-class tagMCCrossActBossTrialInfo(Structure):
- Head = tagHead()
- ServerInfoLen = 0 #(BYTE ServerInfoLen)
- ServerIDRangeInfo = "" #(String ServerIDRangeInfo)//开放该活动的服务器ID范围列表,json格式 [[IDA, IDB], ...], [] 为全服
- GroupValue1 = 0 #(BYTE GroupValue1)// 活动榜单分组值1,用于查询对应榜单
- StartDate = "" #(char StartDate[10])// 开始日期 y-m-d
- EndtDate = "" #(char EndtDate[10])// 结束日期 y-m-d
- JoinStartTime = "" #(char JoinStartTime[5])// 参与开始时间点 mm:ss
- JoinEndTime = "" #(char JoinEndTime[5])// 参与结束时间点 mm:ss
- IsDayReset = 0 #(BYTE IsDayReset)// 是否每天重置
- ResetType = 0 #(BYTE ResetType)// 重置类型,0-0点重置;1-5点重置
- PersonalBillCount = 0 #(BYTE PersonalBillCount)
- PersonalBillboardInfoList = list() #(vector<tagMCCrossActBossTrialBillard> PersonalBillboardInfoList)// 个人榜单奖励信息列表,如果没有代表本次活动没有该榜奖励
- FamilyBillCount = 0 #(BYTE FamilyBillCount)
- FamilyBillboardInfoList = list() #(vector<tagMCCrossActBossTrialBillard> FamilyBillboardInfoList)// 仙盟榜单奖励信息列表,如果没有代表本次活动没有该榜奖励
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x76
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.ServerInfoLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.ServerIDRangeInfo,_pos = CommFunc.ReadString(_lpData, _pos,self.ServerInfoLen)
- self.GroupValue1,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.StartDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.EndtDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.JoinStartTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.JoinEndTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.IsDayReset,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.ResetType,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.PersonalBillCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.PersonalBillCount):
- temPersonalBillboardInfoList = tagMCCrossActBossTrialBillard()
- _pos = temPersonalBillboardInfoList.ReadData(_lpData, _pos)
- self.PersonalBillboardInfoList.append(temPersonalBillboardInfoList)
- self.FamilyBillCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.FamilyBillCount):
- temFamilyBillboardInfoList = tagMCCrossActBossTrialBillard()
- _pos = temFamilyBillboardInfoList.ReadData(_lpData, _pos)
- self.FamilyBillboardInfoList.append(temFamilyBillboardInfoList)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x76
- self.ServerInfoLen = 0
- self.ServerIDRangeInfo = ""
- self.GroupValue1 = 0
- self.StartDate = ""
- self.EndtDate = ""
- self.JoinStartTime = ""
- self.JoinEndTime = ""
- self.IsDayReset = 0
- self.ResetType = 0
- self.PersonalBillCount = 0
- self.PersonalBillboardInfoList = list()
- self.FamilyBillCount = 0
- self.FamilyBillboardInfoList = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += len(self.ServerIDRangeInfo)
- length += 1
- length += 10
- length += 10
- length += 5
- length += 5
- length += 1
- length += 1
- length += 1
- for i in range(self.PersonalBillCount):
- length += self.PersonalBillboardInfoList[i].GetLength()
- length += 1
- for i in range(self.FamilyBillCount):
- length += self.FamilyBillboardInfoList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.ServerInfoLen)
- data = CommFunc.WriteString(data, self.ServerInfoLen, self.ServerIDRangeInfo)
- data = CommFunc.WriteBYTE(data, self.GroupValue1)
- data = CommFunc.WriteString(data, 10, self.StartDate)
- data = CommFunc.WriteString(data, 10, self.EndtDate)
- data = CommFunc.WriteString(data, 5, self.JoinStartTime)
- data = CommFunc.WriteString(data, 5, self.JoinEndTime)
- data = CommFunc.WriteBYTE(data, self.IsDayReset)
- data = CommFunc.WriteBYTE(data, self.ResetType)
- data = CommFunc.WriteBYTE(data, self.PersonalBillCount)
- for i in range(self.PersonalBillCount):
- data = CommFunc.WriteString(data, self.PersonalBillboardInfoList[i].GetLength(), self.PersonalBillboardInfoList[i].GetBuffer())
- data = CommFunc.WriteBYTE(data, self.FamilyBillCount)
- for i in range(self.FamilyBillCount):
- data = CommFunc.WriteString(data, self.FamilyBillboardInfoList[i].GetLength(), self.FamilyBillboardInfoList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- ServerInfoLen:%d,
- ServerIDRangeInfo:%s,
- GroupValue1:%d,
- StartDate:%s,
- EndtDate:%s,
- JoinStartTime:%s,
- JoinEndTime:%s,
- IsDayReset:%d,
- ResetType:%d,
- PersonalBillCount:%d,
- PersonalBillboardInfoList:%s,
- FamilyBillCount:%d,
- FamilyBillboardInfoList:%s
- '''\
- %(
- self.Head.OutputString(),
- self.ServerInfoLen,
- self.ServerIDRangeInfo,
- self.GroupValue1,
- self.StartDate,
- self.EndtDate,
- self.JoinStartTime,
- self.JoinEndTime,
- self.IsDayReset,
- self.ResetType,
- self.PersonalBillCount,
- "...",
- self.FamilyBillCount,
- "..."
- )
- return DumpString
-
-
-m_NAtagMCCrossActBossTrialInfo=tagMCCrossActBossTrialInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCCrossActBossTrialInfo.Head.Cmd,m_NAtagMCCrossActBossTrialInfo.Head.SubCmd))] = m_NAtagMCCrossActBossTrialInfo
-
-
-#------------------------------------------------------
-# AA 83 古宝养成跨服活动信息 #tagMCCrossActGubaoInfo
-
-class tagMCCrossActGubaoItem(Structure):
- _pack_ = 1
- _fields_ = [
- ("ItemID", c_int),
- ("ItemCount", c_ushort),
- ("IsBind", c_ubyte),
- ]
-
- 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.ItemID = 0
- self.ItemCount = 0
- self.IsBind = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCCrossActGubaoItem)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AA 83 古宝养成跨服活动信息 //tagMCCrossActGubaoInfo:
- ItemID:%d,
- ItemCount:%d,
- IsBind:%d
- '''\
- %(
- self.ItemID,
- self.ItemCount,
- self.IsBind
- )
- return DumpString
-
-
-class tagMCCrossActGubaoAwardEx(Structure):
- NeedScore = 0 #(DWORD NeedScore)// 额外奖励所需积分
- Count = 0 #(BYTE Count)// 额外奖励物品数
- AwardItemList = list() #(vector<tagMCCrossActGubaoItem> AwardItemList)// 额外奖励物品列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCCrossActGubaoItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- return _pos
-
- def Clear(self):
- self.NeedScore = 0
- self.Count = 0
- self.AwardItemList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- NeedScore:%d,
- Count:%d,
- AwardItemList:%s
- '''\
- %(
- self.NeedScore,
- self.Count,
- "..."
- )
- return DumpString
-
-
-class tagMCCrossActGubaoBillard(Structure):
- Rank = 0 #(DWORD Rank)// 名次,1-代表第一名;支持夸段,如1,3 代表第1名,第2~3名
- Count = 0 #(BYTE Count)// 奖励物品数
- AwardItemList = list() #(vector<tagMCCrossActGubaoItem> AwardItemList)// 奖励物品列表
- NeedScore = 0 #(DWORD NeedScore)// 上榜所需积分
- CountEx = 0 #(BYTE CountEx)// 额外奖励数
- AwardItemExList = list() #(vector<tagMCCrossActGubaoAwardEx> AwardItemExList)// 额外奖励列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.Rank,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCCrossActGubaoItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.CountEx,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.CountEx):
- temAwardItemExList = tagMCCrossActGubaoAwardEx()
- _pos = temAwardItemExList.ReadData(_lpData, _pos)
- self.AwardItemExList.append(temAwardItemExList)
- return _pos
-
- def Clear(self):
- self.Rank = 0
- self.Count = 0
- self.AwardItemList = list()
- self.NeedScore = 0
- self.CountEx = 0
- self.AwardItemExList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
- length += 4
- length += 1
- for i in range(self.CountEx):
- length += self.AwardItemExList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.Rank)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.CountEx)
- for i in range(self.CountEx):
- data = CommFunc.WriteString(data, self.AwardItemExList[i].GetLength(), self.AwardItemExList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Rank:%d,
- Count:%d,
- AwardItemList:%s,
- NeedScore:%d,
- CountEx:%d,
- AwardItemExList:%s
- '''\
- %(
- self.Rank,
- self.Count,
- "...",
- self.NeedScore,
- self.CountEx,
- "..."
- )
- return DumpString
-
-
-class tagMCCrossActGubaoInfo(Structure):
- Head = tagHead()
- ServerInfoLen = 0 #(BYTE ServerInfoLen)
- ServerIDRangeInfo = "" #(String ServerIDRangeInfo)//开放该活动的服务器ID范围列表,json格式 [[IDA, IDB], ...], [] 为全服
- GroupValue1 = 0 #(BYTE GroupValue1)// 活动榜单分组值1,用于查询对应榜单
- StartDate = "" #(char StartDate[10])// 开始日期 y-m-d
- EndtDate = "" #(char EndtDate[10])// 结束日期 y-m-d
- JoinStartTime = "" #(char JoinStartTime[5])// 参与开始时间点 mm:ss
- JoinEndTime = "" #(char JoinEndTime[5])// 参与结束时间点 mm:ss
- PersonalBillCount = 0 #(BYTE PersonalBillCount)
- PersonalBillboardInfoList = list() #(vector<tagMCCrossActGubaoBillard> PersonalBillboardInfoList)// 个人榜单奖励信息列表,如果没有代表本次活动没有该榜奖励
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x83
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.ServerInfoLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.ServerIDRangeInfo,_pos = CommFunc.ReadString(_lpData, _pos,self.ServerInfoLen)
- self.GroupValue1,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.StartDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.EndtDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.JoinStartTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.JoinEndTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.PersonalBillCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.PersonalBillCount):
- temPersonalBillboardInfoList = tagMCCrossActGubaoBillard()
- _pos = temPersonalBillboardInfoList.ReadData(_lpData, _pos)
- self.PersonalBillboardInfoList.append(temPersonalBillboardInfoList)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x83
- self.ServerInfoLen = 0
- self.ServerIDRangeInfo = ""
- self.GroupValue1 = 0
- self.StartDate = ""
- self.EndtDate = ""
- self.JoinStartTime = ""
- self.JoinEndTime = ""
- self.PersonalBillCount = 0
- self.PersonalBillboardInfoList = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += len(self.ServerIDRangeInfo)
- length += 1
- length += 10
- length += 10
- length += 5
- length += 5
- length += 1
- for i in range(self.PersonalBillCount):
- length += self.PersonalBillboardInfoList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.ServerInfoLen)
- data = CommFunc.WriteString(data, self.ServerInfoLen, self.ServerIDRangeInfo)
- data = CommFunc.WriteBYTE(data, self.GroupValue1)
- data = CommFunc.WriteString(data, 10, self.StartDate)
- data = CommFunc.WriteString(data, 10, self.EndtDate)
- data = CommFunc.WriteString(data, 5, self.JoinStartTime)
- data = CommFunc.WriteString(data, 5, self.JoinEndTime)
- data = CommFunc.WriteBYTE(data, self.PersonalBillCount)
- for i in range(self.PersonalBillCount):
- data = CommFunc.WriteString(data, self.PersonalBillboardInfoList[i].GetLength(), self.PersonalBillboardInfoList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- ServerInfoLen:%d,
- ServerIDRangeInfo:%s,
- GroupValue1:%d,
- StartDate:%s,
- EndtDate:%s,
- JoinStartTime:%s,
- JoinEndTime:%s,
- PersonalBillCount:%d,
- PersonalBillboardInfoList:%s
- '''\
- %(
- self.Head.OutputString(),
- self.ServerInfoLen,
- self.ServerIDRangeInfo,
- self.GroupValue1,
- self.StartDate,
- self.EndtDate,
- self.JoinStartTime,
- self.JoinEndTime,
- self.PersonalBillCount,
- "..."
- )
- return DumpString
-
-
-m_NAtagMCCrossActGubaoInfo=tagMCCrossActGubaoInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCCrossActGubaoInfo.Head.Cmd,m_NAtagMCCrossActGubaoInfo.Head.SubCmd))] = m_NAtagMCCrossActGubaoInfo
-
-
-#------------------------------------------------------
-# AA 86 骑宠养成跨服活动信息 #tagMCCrossActHorsePetTrainInfo
-
-class tagMCCrossActHorsePetTrainItem(Structure):
- _pack_ = 1
- _fields_ = [
- ("ItemID", c_int),
- ("ItemCount", c_ushort),
- ("IsBind", c_ubyte),
- ]
-
- 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.ItemID = 0
- self.ItemCount = 0
- self.IsBind = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCCrossActHorsePetTrainItem)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AA 86 骑宠养成跨服活动信息 //tagMCCrossActHorsePetTrainInfo:
- ItemID:%d,
- ItemCount:%d,
- IsBind:%d
- '''\
- %(
- self.ItemID,
- self.ItemCount,
- self.IsBind
- )
- return DumpString
-
-
-class tagMCCrossActHorsePetTrainAwardEx(Structure):
- NeedScore = 0 #(DWORD NeedScore)// 额外奖励所需积分
- Count = 0 #(BYTE Count)// 额外奖励物品数
- AwardItemList = list() #(vector<tagMCCrossActHorsePetTrainItem> AwardItemList)// 额外奖励物品列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCCrossActHorsePetTrainItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- return _pos
-
- def Clear(self):
- self.NeedScore = 0
- self.Count = 0
- self.AwardItemList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- NeedScore:%d,
- Count:%d,
- AwardItemList:%s
- '''\
- %(
- self.NeedScore,
- self.Count,
- "..."
- )
- return DumpString
-
-
-class tagMCCrossActHorsePetTrainBillard(Structure):
- Rank = 0 #(DWORD Rank)// 名次,1-代表第一名;支持夸段,如1,3 代表第1名,第2~3名
- Count = 0 #(BYTE Count)// 奖励物品数
- AwardItemList = list() #(vector<tagMCCrossActHorsePetTrainItem> AwardItemList)// 奖励物品列表
- NeedScore = 0 #(DWORD NeedScore)// 上榜所需积分
- CountEx = 0 #(BYTE CountEx)// 额外奖励数
- AwardItemExList = list() #(vector<tagMCCrossActHorsePetTrainAwardEx> AwardItemExList)// 额外奖励列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.Rank,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCCrossActHorsePetTrainItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.CountEx,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.CountEx):
- temAwardItemExList = tagMCCrossActHorsePetTrainAwardEx()
- _pos = temAwardItemExList.ReadData(_lpData, _pos)
- self.AwardItemExList.append(temAwardItemExList)
- return _pos
-
- def Clear(self):
- self.Rank = 0
- self.Count = 0
- self.AwardItemList = list()
- self.NeedScore = 0
- self.CountEx = 0
- self.AwardItemExList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
- length += 4
- length += 1
- for i in range(self.CountEx):
- length += self.AwardItemExList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.Rank)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.CountEx)
- for i in range(self.CountEx):
- data = CommFunc.WriteString(data, self.AwardItemExList[i].GetLength(), self.AwardItemExList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Rank:%d,
- Count:%d,
- AwardItemList:%s,
- NeedScore:%d,
- CountEx:%d,
- AwardItemExList:%s
- '''\
- %(
- self.Rank,
- self.Count,
- "...",
- self.NeedScore,
- self.CountEx,
- "..."
- )
- return DumpString
-
-
-class tagMCCrossActHorsePetTrainInfo(Structure):
- Head = tagHead()
- ServerInfoLen = 0 #(BYTE ServerInfoLen)
- ServerIDRangeInfo = "" #(String ServerIDRangeInfo)//开放该活动的服务器ID范围列表,json格式 [[IDA, IDB], ...], [] 为全服
- GroupValue1 = 0 #(BYTE GroupValue1)// 活动榜单分组值1,用于查询对应榜单
- StartDate = "" #(char StartDate[10])// 开始日期 y-m-d
- EndtDate = "" #(char EndtDate[10])// 结束日期 y-m-d
- JoinStartTime = "" #(char JoinStartTime[5])// 参与开始时间点 mm:ss
- JoinEndTime = "" #(char JoinEndTime[5])// 参与结束时间点 mm:ss
- PersonalBillCount = 0 #(BYTE PersonalBillCount)
- PersonalBillboardInfoList = list() #(vector<tagMCCrossActHorsePetTrainBillard> PersonalBillboardInfoList)// 个人榜单奖励信息列表,如果没有代表本次活动没有该榜奖励
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x86
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.ServerInfoLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.ServerIDRangeInfo,_pos = CommFunc.ReadString(_lpData, _pos,self.ServerInfoLen)
- self.GroupValue1,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.StartDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.EndtDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.JoinStartTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.JoinEndTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.PersonalBillCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.PersonalBillCount):
- temPersonalBillboardInfoList = tagMCCrossActHorsePetTrainBillard()
- _pos = temPersonalBillboardInfoList.ReadData(_lpData, _pos)
- self.PersonalBillboardInfoList.append(temPersonalBillboardInfoList)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x86
- self.ServerInfoLen = 0
- self.ServerIDRangeInfo = ""
- self.GroupValue1 = 0
- self.StartDate = ""
- self.EndtDate = ""
- self.JoinStartTime = ""
- self.JoinEndTime = ""
- self.PersonalBillCount = 0
- self.PersonalBillboardInfoList = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += len(self.ServerIDRangeInfo)
- length += 1
- length += 10
- length += 10
- length += 5
- length += 5
- length += 1
- for i in range(self.PersonalBillCount):
- length += self.PersonalBillboardInfoList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.ServerInfoLen)
- data = CommFunc.WriteString(data, self.ServerInfoLen, self.ServerIDRangeInfo)
- data = CommFunc.WriteBYTE(data, self.GroupValue1)
- data = CommFunc.WriteString(data, 10, self.StartDate)
- data = CommFunc.WriteString(data, 10, self.EndtDate)
- data = CommFunc.WriteString(data, 5, self.JoinStartTime)
- data = CommFunc.WriteString(data, 5, self.JoinEndTime)
- data = CommFunc.WriteBYTE(data, self.PersonalBillCount)
- for i in range(self.PersonalBillCount):
- data = CommFunc.WriteString(data, self.PersonalBillboardInfoList[i].GetLength(), self.PersonalBillboardInfoList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- ServerInfoLen:%d,
- ServerIDRangeInfo:%s,
- GroupValue1:%d,
- StartDate:%s,
- EndtDate:%s,
- JoinStartTime:%s,
- JoinEndTime:%s,
- PersonalBillCount:%d,
- PersonalBillboardInfoList:%s
- '''\
- %(
- self.Head.OutputString(),
- self.ServerInfoLen,
- self.ServerIDRangeInfo,
- self.GroupValue1,
- self.StartDate,
- self.EndtDate,
- self.JoinStartTime,
- self.JoinEndTime,
- self.PersonalBillCount,
- "..."
- )
- return DumpString
-
-
-m_NAtagMCCrossActHorsePetTrainInfo=tagMCCrossActHorsePetTrainInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCCrossActHorsePetTrainInfo.Head.Cmd,m_NAtagMCCrossActHorsePetTrainInfo.Head.SubCmd))] = m_NAtagMCCrossActHorsePetTrainInfo
-
-
-#------------------------------------------------------
# AA 90 炼器跨服活动信息 #tagMCCrossActLianqiInfo
class tagMCCrossActLianqiItem(Structure):
@@ -32628,314 +28926,6 @@
m_NAtagMCActLianqiPlayerInfo=tagMCActLianqiPlayerInfo()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActLianqiPlayerInfo.Head.Cmd,m_NAtagMCActLianqiPlayerInfo.Head.SubCmd))] = m_NAtagMCActLianqiPlayerInfo
-
-
-#------------------------------------------------------
-# AA 80 仙匣秘境跨服活动信息 #tagMCCrossActXianXiaMJInfo
-
-class tagMCCrossActXianXiaMJItem(Structure):
- _pack_ = 1
- _fields_ = [
- ("ItemID", c_int),
- ("ItemCount", c_ushort),
- ("IsBind", c_ubyte),
- ]
-
- 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.ItemID = 0
- self.ItemCount = 0
- self.IsBind = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCCrossActXianXiaMJItem)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AA 80 仙匣秘境跨服活动信息 //tagMCCrossActXianXiaMJInfo:
- ItemID:%d,
- ItemCount:%d,
- IsBind:%d
- '''\
- %(
- self.ItemID,
- self.ItemCount,
- self.IsBind
- )
- return DumpString
-
-
-class tagMCCrossActXianXiaMJAwardEx(Structure):
- NeedScore = 0 #(DWORD NeedScore)// 额外奖励所需积分
- Count = 0 #(BYTE Count)// 额外奖励物品数
- AwardItemList = list() #(vector<tagMCCrossActXianXiaMJItem> AwardItemList)// 额外奖励物品列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCCrossActXianXiaMJItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- return _pos
-
- def Clear(self):
- self.NeedScore = 0
- self.Count = 0
- self.AwardItemList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- NeedScore:%d,
- Count:%d,
- AwardItemList:%s
- '''\
- %(
- self.NeedScore,
- self.Count,
- "..."
- )
- return DumpString
-
-
-class tagMCCrossActXianXiaMJBillard(Structure):
- Rank = 0 #(DWORD Rank)// 名次,1-代表第一名;支持夸段,如1,3 代表第1名,第2~3名
- Count = 0 #(BYTE Count)// 奖励物品数
- AwardItemList = list() #(vector<tagMCCrossActXianXiaMJItem> AwardItemList)// 奖励物品列表
- NeedScore = 0 #(DWORD NeedScore)// 上榜所需积分
- CountEx = 0 #(BYTE CountEx)// 额外奖励数
- AwardItemExList = list() #(vector<tagMCCrossActXianXiaMJAwardEx> AwardItemExList)// 额外奖励列表
- data = None
-
- def __init__(self):
- self.Clear()
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- self.Rank,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- temAwardItemList = tagMCCrossActXianXiaMJItem()
- _pos = temAwardItemList.ReadData(_lpData, _pos)
- self.AwardItemList.append(temAwardItemList)
- self.NeedScore,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.CountEx,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.CountEx):
- temAwardItemExList = tagMCCrossActXianXiaMJAwardEx()
- _pos = temAwardItemExList.ReadData(_lpData, _pos)
- self.AwardItemExList.append(temAwardItemExList)
- return _pos
-
- def Clear(self):
- self.Rank = 0
- self.Count = 0
- self.AwardItemList = list()
- self.NeedScore = 0
- self.CountEx = 0
- self.AwardItemExList = list()
- return
-
- def GetLength(self):
- length = 0
- length += 4
- length += 1
- for i in range(self.Count):
- length += self.AwardItemList[i].GetLength()
- length += 4
- length += 1
- for i in range(self.CountEx):
- length += self.AwardItemExList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteDWORD(data, self.Rank)
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteString(data, self.AwardItemList[i].GetLength(), self.AwardItemList[i].GetBuffer())
- data = CommFunc.WriteDWORD(data, self.NeedScore)
- data = CommFunc.WriteBYTE(data, self.CountEx)
- for i in range(self.CountEx):
- data = CommFunc.WriteString(data, self.AwardItemExList[i].GetLength(), self.AwardItemExList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Rank:%d,
- Count:%d,
- AwardItemList:%s,
- NeedScore:%d,
- CountEx:%d,
- AwardItemExList:%s
- '''\
- %(
- self.Rank,
- self.Count,
- "...",
- self.NeedScore,
- self.CountEx,
- "..."
- )
- return DumpString
-
-
-class tagMCCrossActXianXiaMJInfo(Structure):
- Head = tagHead()
- ServerInfoLen = 0 #(BYTE ServerInfoLen)
- ServerIDRangeInfo = "" #(String ServerIDRangeInfo)//开放该活动的服务器ID范围列表,json格式 [[IDA, IDB], ...], [] 为全服
- GroupValue1 = 0 #(BYTE GroupValue1)// 活动榜单分组值1,用于查询对应榜单
- StartDate = "" #(char StartDate[10])// 开始日期 y-m-d
- EndtDate = "" #(char EndtDate[10])// 结束日期 y-m-d
- JoinStartTime = "" #(char JoinStartTime[5])// 参与开始时间点 mm:ss
- JoinEndTime = "" #(char JoinEndTime[5])// 参与结束时间点 mm:ss
- IsDayReset = 0 #(BYTE IsDayReset)// 是否每天重置
- PersonalBillCount = 0 #(BYTE PersonalBillCount)
- PersonalBillboardInfoList = list() #(vector<tagMCCrossActXianXiaMJBillard> PersonalBillboardInfoList)// 个人榜单奖励信息列表,如果没有代表本次活动没有该榜奖励
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x80
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.ServerInfoLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.ServerIDRangeInfo,_pos = CommFunc.ReadString(_lpData, _pos,self.ServerInfoLen)
- self.GroupValue1,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.StartDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.EndtDate,_pos = CommFunc.ReadString(_lpData, _pos,10)
- self.JoinStartTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.JoinEndTime,_pos = CommFunc.ReadString(_lpData, _pos,5)
- self.IsDayReset,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.PersonalBillCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.PersonalBillCount):
- temPersonalBillboardInfoList = tagMCCrossActXianXiaMJBillard()
- _pos = temPersonalBillboardInfoList.ReadData(_lpData, _pos)
- self.PersonalBillboardInfoList.append(temPersonalBillboardInfoList)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xAA
- self.Head.SubCmd = 0x80
- self.ServerInfoLen = 0
- self.ServerIDRangeInfo = ""
- self.GroupValue1 = 0
- self.StartDate = ""
- self.EndtDate = ""
- self.JoinStartTime = ""
- self.JoinEndTime = ""
- self.IsDayReset = 0
- self.PersonalBillCount = 0
- self.PersonalBillboardInfoList = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += len(self.ServerIDRangeInfo)
- length += 1
- length += 10
- length += 10
- length += 5
- length += 5
- length += 1
- length += 1
- for i in range(self.PersonalBillCount):
- length += self.PersonalBillboardInfoList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.ServerInfoLen)
- data = CommFunc.WriteString(data, self.ServerInfoLen, self.ServerIDRangeInfo)
- data = CommFunc.WriteBYTE(data, self.GroupValue1)
- data = CommFunc.WriteString(data, 10, self.StartDate)
- data = CommFunc.WriteString(data, 10, self.EndtDate)
- data = CommFunc.WriteString(data, 5, self.JoinStartTime)
- data = CommFunc.WriteString(data, 5, self.JoinEndTime)
- data = CommFunc.WriteBYTE(data, self.IsDayReset)
- data = CommFunc.WriteBYTE(data, self.PersonalBillCount)
- for i in range(self.PersonalBillCount):
- data = CommFunc.WriteString(data, self.PersonalBillboardInfoList[i].GetLength(), self.PersonalBillboardInfoList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- ServerInfoLen:%d,
- ServerIDRangeInfo:%s,
- GroupValue1:%d,
- StartDate:%s,
- EndtDate:%s,
- JoinStartTime:%s,
- JoinEndTime:%s,
- IsDayReset:%d,
- PersonalBillCount:%d,
- PersonalBillboardInfoList:%s
- '''\
- %(
- self.Head.OutputString(),
- self.ServerInfoLen,
- self.ServerIDRangeInfo,
- self.GroupValue1,
- self.StartDate,
- self.EndtDate,
- self.JoinStartTime,
- self.JoinEndTime,
- self.IsDayReset,
- self.PersonalBillCount,
- "..."
- )
- return DumpString
-
-
-m_NAtagMCCrossActXianXiaMJInfo=tagMCCrossActXianXiaMJInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCCrossActXianXiaMJInfo.Head.Cmd,m_NAtagMCCrossActXianXiaMJInfo.Head.SubCmd))] = m_NAtagMCCrossActXianXiaMJInfo
#------------------------------------------------------
@@ -40240,7 +36230,7 @@
("CampID", c_ubyte), # 营地ID,从1开始
("GoldID", c_ubyte), # 淘金ID,为0时代表该营地为空
("RefreshCnt", c_ushort), # 已刷新次数
- ("EndTime", c_int), # 预计完成时的时间戳,为0时代表还未开始淘金,通过该时间进行倒计时,完成时需发送操作完成淘金
+ ("EndTime", c_int), # 预计完成时的时间戳,为0时代表还未开始淘金,通过该时间进行倒计时
("WorkerCnt", c_ubyte), # 使用监工数
]
@@ -41492,6 +37482,8 @@
("BookInitState", c_ubyte), # 图鉴激活状态:0-未激活;1-可激活;2-已激活
("BookStarLV", c_ushort), # 图鉴星级等级
("BookBreakLV", c_ushort), # 图鉴突破等级
+ ("BookStarLVH", c_ushort), # 图鉴星级历史最高等级
+ ("BookBreakLVH", c_ushort), # 图鉴突破历史最高等级
]
def __init__(self):
@@ -41509,6 +37501,8 @@
self.BookInitState = 0
self.BookStarLV = 0
self.BookBreakLV = 0
+ self.BookStarLVH = 0
+ self.BookBreakLVH = 0
return
def GetLength(self):
@@ -41523,14 +37517,18 @@
SkinState:%d,
BookInitState:%d,
BookStarLV:%d,
- BookBreakLV:%d
+ BookBreakLV:%d,
+ BookStarLVH:%d,
+ BookBreakLVH:%d
'''\
%(
self.HeroID,
self.SkinState,
self.BookInitState,
self.BookStarLV,
- self.BookBreakLV
+ self.BookBreakLV,
+ self.BookStarLVH,
+ self.BookBreakLVH
)
return DumpString
--
Gitblit v1.8.0