From 718f530accc19969f39d1a8ce199fe947508e29a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 16 十月 2025 19:19:09 +0800
Subject: [PATCH] 237 【福利内容】每日任务/每周任务/章节奖励-服务端(每日任务、每周奖励;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 977 +++++++--------------------------------------------------
1 files changed, 120 insertions(+), 857 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
index 80e970a..0d42cf8 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
@@ -1031,58 +1031,6 @@
#------------------------------------------------------
-# A2 36 聊天气泡框升星 #tagCMChatBubbleBoxStarUP
-
-class tagCMChatBubbleBoxStarUP(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("BoxID", c_ubyte), #气泡ID
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA2
- self.SubCmd = 0x36
- 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 = 0xA2
- self.SubCmd = 0x36
- self.BoxID = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMChatBubbleBoxStarUP)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A2 36 聊天气泡框升星 //tagCMChatBubbleBoxStarUP:
- Cmd:%s,
- SubCmd:%s,
- BoxID:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.BoxID
- )
- return DumpString
-
-
-m_NAtagCMChatBubbleBoxStarUP=tagCMChatBubbleBoxStarUP()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMChatBubbleBoxStarUP.Cmd,m_NAtagCMChatBubbleBoxStarUP.SubCmd))] = m_NAtagCMChatBubbleBoxStarUP
-
-
-#------------------------------------------------------
# A2 24 触碰NPC #tagCMTouchNPC
class tagCMTouchNPC(Structure):
@@ -1962,58 +1910,6 @@
m_NAtagCMSelectRealmDifficulty=tagCMSelectRealmDifficulty()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMSelectRealmDifficulty.Cmd,m_NAtagCMSelectRealmDifficulty.SubCmd))] = m_NAtagCMSelectRealmDifficulty
-
-
-#------------------------------------------------------
-# A2 30 设置聊天气泡框 #tagCMSetChatBubbleBox
-
-class tagCMSetChatBubbleBox(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("BubbleBoxType", c_ubyte), #气泡框类型
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA2
- self.SubCmd = 0x30
- 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 = 0xA2
- self.SubCmd = 0x30
- self.BubbleBoxType = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMSetChatBubbleBox)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A2 30 设置聊天气泡框 //tagCMSetChatBubbleBox:
- Cmd:%s,
- SubCmd:%s,
- BubbleBoxType:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.BubbleBoxType
- )
- return DumpString
-
-
-m_NAtagCMSetChatBubbleBox=tagCMSetChatBubbleBox()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMSetChatBubbleBox.Cmd,m_NAtagCMSetChatBubbleBox.SubCmd))] = m_NAtagCMSetChatBubbleBox
#------------------------------------------------------
@@ -5384,62 +5280,6 @@
#------------------------------------------------------
-# A5 25 购买日常活动次数 #tagCMBuyDailyActionCnt
-
-class tagCMBuyDailyActionCnt(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("ActionID", c_int), # ID
- ("AddType", c_ubyte), # 0-花仙玉 1-用物品
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA5
- self.SubCmd = 0x25
- 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 = 0xA5
- self.SubCmd = 0x25
- self.ActionID = 0
- self.AddType = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMBuyDailyActionCnt)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A5 25 购买日常活动次数 //tagCMBuyDailyActionCnt:
- Cmd:%s,
- SubCmd:%s,
- ActionID:%d,
- AddType:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.ActionID,
- self.AddType
- )
- return DumpString
-
-
-m_NAtagCMBuyDailyActionCnt=tagCMBuyDailyActionCnt()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMBuyDailyActionCnt.Cmd,m_NAtagCMBuyDailyActionCnt.SubCmd))] = m_NAtagCMBuyDailyActionCnt
-
-
-#------------------------------------------------------
#A5 75 购买副本进入次数#tagCMBuyEnterCount
class tagCMBuyEnterCount(Structure):
@@ -8237,58 +8077,6 @@
#------------------------------------------------------
-# A5 36 称号升星 #tagCMTitleStarUp
-
-class tagCMTitleStarUp(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("TitleID", c_int), #称号ID
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA5
- self.SubCmd = 0x36
- 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 = 0xA5
- self.SubCmd = 0x36
- self.TitleID = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMTitleStarUp)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A5 36 称号升星 //tagCMTitleStarUp:
- Cmd:%s,
- SubCmd:%s,
- TitleID:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.TitleID
- )
- return DumpString
-
-
-m_NAtagCMTitleStarUp=tagCMTitleStarUp()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMTitleStarUp.Cmd,m_NAtagCMTitleStarUp.SubCmd))] = m_NAtagCMTitleStarUp
-
-
-#------------------------------------------------------
# A5 73 解锁命格孔 #tagCMUnLockBirthChartHole
class tagCMUnLockBirthChartHole(Structure):
@@ -8453,52 +8241,64 @@
# A6 24 修改家族徽章 #tagCMChangeFamilyEmblem
class tagCMChangeFamilyEmblem(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("EmblemID", c_ubyte), # 更换的徽章ID
- ]
+ Head = tagHead()
+ EmblemID = 0 #(BYTE EmblemID)// 更换的徽章ID
+ EmblemWord = "" #(char EmblemWord[3])// 徽章文字
+ data = None
def __init__(self):
self.Clear()
- self.Cmd = 0xA6
- self.SubCmd = 0x24
+ self.Head.Cmd = 0xA6
+ self.Head.SubCmd = 0x24
return
- def ReadData(self, stringData, _pos=0, _len=0):
+ def ReadData(self, _lpData, _pos=0, _Len=0):
self.Clear()
- memmove(addressof(self), stringData[_pos:], self.GetLength())
- return _pos + self.GetLength()
+ _pos = self.Head.ReadData(_lpData, _pos)
+ self.EmblemID,_pos = CommFunc.ReadBYTE(_lpData, _pos)
+ self.EmblemWord,_pos = CommFunc.ReadString(_lpData, _pos,3)
+ return _pos
def Clear(self):
- self.Cmd = 0xA6
- self.SubCmd = 0x24
+ self.Head = tagHead()
+ self.Head.Clear()
+ self.Head.Cmd = 0xA6
+ self.Head.SubCmd = 0x24
self.EmblemID = 0
+ self.EmblemWord = ""
return
def GetLength(self):
- return sizeof(tagCMChangeFamilyEmblem)
+ length = 0
+ length += self.Head.GetLength()
+ length += 1
+ length += 3
+
+ return length
def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
+ data = ''
+ data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
+ data = CommFunc.WriteBYTE(data, self.EmblemID)
+ data = CommFunc.WriteString(data, 3, self.EmblemWord)
+ return data
def OutputString(self):
- DumpString = '''// A6 24 修改家族徽章 //tagCMChangeFamilyEmblem:
- Cmd:%s,
- SubCmd:%s,
- EmblemID:%d
+ DumpString = '''
+ Head:%s,
+ EmblemID:%d,
+ EmblemWord:%s
'''\
%(
- self.Cmd,
- self.SubCmd,
- self.EmblemID
+ self.Head.OutputString(),
+ self.EmblemID,
+ self.EmblemWord
)
return DumpString
m_NAtagCMChangeFamilyEmblem=tagCMChangeFamilyEmblem()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMChangeFamilyEmblem.Cmd,m_NAtagCMChangeFamilyEmblem.SubCmd))] = m_NAtagCMChangeFamilyEmblem
+ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMChangeFamilyEmblem.Head.Cmd,m_NAtagCMChangeFamilyEmblem.Head.SubCmd))] = m_NAtagCMChangeFamilyEmblem
#------------------------------------------------------
@@ -8751,6 +8551,7 @@
Head = tagHead()
Name = "" #(char Name[33])
EmblemID = 0 #(WORD EmblemID)//选择徽章ID,解锁仙盟等级为1级的均为可选ID
+ EmblemWord = "" #(char EmblemWord[3])//徽章文字
data = None
def __init__(self):
@@ -8764,6 +8565,7 @@
_pos = self.Head.ReadData(_lpData, _pos)
self.Name,_pos = CommFunc.ReadString(_lpData, _pos,33)
self.EmblemID,_pos = CommFunc.ReadWORD(_lpData, _pos)
+ self.EmblemWord,_pos = CommFunc.ReadString(_lpData, _pos,3)
return _pos
def Clear(self):
@@ -8773,6 +8575,7 @@
self.Head.SubCmd = 0x04
self.Name = ""
self.EmblemID = 0
+ self.EmblemWord = ""
return
def GetLength(self):
@@ -8780,6 +8583,7 @@
length += self.Head.GetLength()
length += 33
length += 2
+ length += 3
return length
@@ -8788,18 +8592,21 @@
data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
data = CommFunc.WriteString(data, 33, self.Name)
data = CommFunc.WriteWORD(data, self.EmblemID)
+ data = CommFunc.WriteString(data, 3, self.EmblemWord)
return data
def OutputString(self):
DumpString = '''
Head:%s,
Name:%s,
- EmblemID:%d
+ EmblemID:%d,
+ EmblemWord:%s
'''\
%(
self.Head.OutputString(),
self.Name,
- self.EmblemID
+ self.EmblemID,
+ self.EmblemWord
)
return DumpString
@@ -8858,139 +8665,6 @@
m_NAtagCMDeleteFamilyMember=tagCMDeleteFamilyMember()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMDeleteFamilyMember.Cmd,m_NAtagCMDeleteFamilyMember.SubCmd))] = m_NAtagCMDeleteFamilyMember
-
-
-#------------------------------------------------------
-# A6 06 家族兑换活跃令 #tagCMFamilyActivityExchange
-
-class tagCMFamilyActivityExchange(Structure):
- Head = tagHead()
- Count = 0 #(BYTE Count)//材料所在背包索引的数量
- IndexList = list() #(vector<WORD> IndexList)//材料所在背包索引列表
- ItemIDList = list() #(vector<DWORD> ItemIDList)//材料所在背包物品ID列表
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xA6
- self.Head.SubCmd = 0x06
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.Count):
- value,_pos=CommFunc.ReadWORD(_lpData,_pos)
- self.IndexList.append(value)
- for i in range(self.Count):
- value,_pos=CommFunc.ReadDWORD(_lpData,_pos)
- self.ItemIDList.append(value)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xA6
- self.Head.SubCmd = 0x06
- self.Count = 0
- self.IndexList = list()
- self.ItemIDList = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += 2 * self.Count
- length += 4 * self.Count
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.Count)
- for i in range(self.Count):
- data = CommFunc.WriteWORD(data, self.IndexList[i])
- for i in range(self.Count):
- data = CommFunc.WriteDWORD(data, self.ItemIDList[i])
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- Count:%d,
- IndexList:%s,
- ItemIDList:%s
- '''\
- %(
- self.Head.OutputString(),
- self.Count,
- "...",
- "..."
- )
- return DumpString
-
-
-m_NAtagCMFamilyActivityExchange=tagCMFamilyActivityExchange()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMFamilyActivityExchange.Head.Cmd,m_NAtagCMFamilyActivityExchange.Head.SubCmd))] = m_NAtagCMFamilyActivityExchange
-
-
-#------------------------------------------------------
-# A6 13 家族事务操作 #tagCMFamilyAffairOP
-
-class tagCMFamilyAffairOP(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("OPType", c_ubyte), # 操作类型:1-刷新事务;2-开始事务;3-领取事务奖励;
- ("AffairID", c_ushort), # 事务ID,可选
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA6
- self.SubCmd = 0x13
- 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 = 0xA6
- self.SubCmd = 0x13
- self.OPType = 0
- self.AffairID = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMFamilyAffairOP)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A6 13 家族事务操作 //tagCMFamilyAffairOP:
- Cmd:%s,
- SubCmd:%s,
- OPType:%d,
- AffairID:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.OPType,
- self.AffairID
- )
- return DumpString
-
-
-m_NAtagCMFamilyAffairOP=tagCMFamilyAffairOP()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMFamilyAffairOP.Cmd,m_NAtagCMFamilyAffairOP.SubCmd))] = m_NAtagCMFamilyAffairOP
#------------------------------------------------------
@@ -9616,58 +9290,6 @@
m_NAtagCMSendFamilyRedPacket=tagCMSendFamilyRedPacket()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMSendFamilyRedPacket.Head.Cmd,m_NAtagCMSendFamilyRedPacket.Head.SubCmd))] = m_NAtagCMSendFamilyRedPacket
-
-
-#------------------------------------------------------
-# A6 07 自身家族科技等级提升 #tagCMFamilyTechLVUP
-
-class tagCMFamilyTechLVUP(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("TechID", c_int), # 科技ID
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA6
- self.SubCmd = 0x07
- 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 = 0xA6
- self.SubCmd = 0x07
- self.TechID = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMFamilyTechLVUP)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A6 07 自身家族科技等级提升 //tagCMFamilyTechLVUP:
- Cmd:%s,
- SubCmd:%s,
- TechID:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.TechID
- )
- return DumpString
-
-
-m_NAtagCMFamilyTechLVUP=tagCMFamilyTechLVUP()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMFamilyTechLVUP.Cmd,m_NAtagCMFamilyTechLVUP.SubCmd))] = m_NAtagCMFamilyTechLVUP
#------------------------------------------------------
@@ -12106,154 +11728,6 @@
#------------------------------------------------------
-# B0 29 活跃放置明细查询 #tagCMActivityPlaceQuery
-
-class tagCMActivityPlaceQuery(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB0
- self.SubCmd = 0x29
- 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 = 0xB0
- self.SubCmd = 0x29
- return
-
- def GetLength(self):
- return sizeof(tagCMActivityPlaceQuery)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B0 29 活跃放置明细查询 //tagCMActivityPlaceQuery:
- Cmd:%s,
- SubCmd:%s
- '''\
- %(
- self.Cmd,
- self.SubCmd
- )
- return DumpString
-
-
-m_NAtagCMActivityPlaceQuery=tagCMActivityPlaceQuery()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMActivityPlaceQuery.Cmd,m_NAtagCMActivityPlaceQuery.SubCmd))] = m_NAtagCMActivityPlaceQuery
-
-
-#------------------------------------------------------
-# B0 28 活跃放置快速完成 #tagCMActivityPlaceQuickFinish
-
-class tagCMActivityPlaceQuickFinish(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("FinishCount", c_ubyte), #完成次数
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB0
- self.SubCmd = 0x28
- 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 = 0xB0
- self.SubCmd = 0x28
- self.FinishCount = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMActivityPlaceQuickFinish)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B0 28 活跃放置快速完成 //tagCMActivityPlaceQuickFinish:
- Cmd:%s,
- SubCmd:%s,
- FinishCount:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.FinishCount
- )
- return DumpString
-
-
-m_NAtagCMActivityPlaceQuickFinish=tagCMActivityPlaceQuickFinish()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMActivityPlaceQuickFinish.Cmd,m_NAtagCMActivityPlaceQuickFinish.SubCmd))] = m_NAtagCMActivityPlaceQuickFinish
-
-
-#------------------------------------------------------
-# B0 27 活跃放置启动 #tagCMActivityPlaceStart
-
-class tagCMActivityPlaceStart(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB0
- self.SubCmd = 0x27
- 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 = 0xB0
- self.SubCmd = 0x27
- return
-
- def GetLength(self):
- return sizeof(tagCMActivityPlaceStart)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B0 27 活跃放置启动 //tagCMActivityPlaceStart:
- Cmd:%s,
- SubCmd:%s
- '''\
- %(
- self.Cmd,
- self.SubCmd
- )
- return DumpString
-
-
-m_NAtagCMActivityPlaceStart=tagCMActivityPlaceStart()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMActivityPlaceStart.Cmd,m_NAtagCMActivityPlaceStart.SubCmd))] = m_NAtagCMActivityPlaceStart
-
-
-#------------------------------------------------------
# B0 13 取消协助Boss #tagCGCancelAssistBoss
class tagCGCancelAssistBoss(Structure):
@@ -13228,214 +12702,6 @@
#------------------------------------------------------
-# B2 26 头像幻化 #tagCMFaceChange
-
-class tagCMFaceChange(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("FaceID", c_int), # 幻化的ID
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB2
- self.SubCmd = 0x26
- 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 = 0xB2
- self.SubCmd = 0x26
- self.FaceID = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMFaceChange)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B2 26 头像幻化 //tagCMFaceChange:
- Cmd:%s,
- SubCmd:%s,
- FaceID:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.FaceID
- )
- return DumpString
-
-
-m_NAtagCMFaceChange=tagCMFaceChange()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMFaceChange.Cmd,m_NAtagCMFaceChange.SubCmd))] = m_NAtagCMFaceChange
-
-
-#------------------------------------------------------
-# B2 28 头像框幻化 #tagCMFacePicChange
-
-class tagCMFacePicChange(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("FacePicID", c_int), # 幻化的ID
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB2
- self.SubCmd = 0x28
- 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 = 0xB2
- self.SubCmd = 0x28
- self.FacePicID = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMFacePicChange)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B2 28 头像框幻化 //tagCMFacePicChange:
- Cmd:%s,
- SubCmd:%s,
- FacePicID:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.FacePicID
- )
- return DumpString
-
-
-m_NAtagCMFacePicChange=tagCMFacePicChange()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMFacePicChange.Cmd,m_NAtagCMFacePicChange.SubCmd))] = m_NAtagCMFacePicChange
-
-
-#------------------------------------------------------
-# B2 29 头像框升星 #tagCMFacePicStarUP
-
-class tagCMFacePicStarUP(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("FacePicID", c_int),
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB2
- self.SubCmd = 0x29
- 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 = 0xB2
- self.SubCmd = 0x29
- self.FacePicID = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMFacePicStarUP)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B2 29 头像框升星 //tagCMFacePicStarUP:
- Cmd:%s,
- SubCmd:%s,
- FacePicID:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.FacePicID
- )
- return DumpString
-
-
-m_NAtagCMFacePicStarUP=tagCMFacePicStarUP()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMFacePicStarUP.Cmd,m_NAtagCMFacePicStarUP.SubCmd))] = m_NAtagCMFacePicStarUP
-
-
-#------------------------------------------------------
-# B2 27 头像升星 #tagCMFaceStarUP
-
-class tagCMFaceStarUP(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("FaceID", c_int),
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB2
- self.SubCmd = 0x27
- 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 = 0xB2
- self.SubCmd = 0x27
- self.FaceID = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMFaceStarUP)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B2 27 头像升星 //tagCMFaceStarUP:
- Cmd:%s,
- SubCmd:%s,
- FaceID:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.FaceID
- )
- return DumpString
-
-
-m_NAtagCMFaceStarUP=tagCMFaceStarUP()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMFaceStarUP.Cmd,m_NAtagCMFaceStarUP.SubCmd))] = m_NAtagCMFaceStarUP
-
-
-#------------------------------------------------------
# B2 12 领取功能系统特权奖励 #tagCMGetFuncSysPrivilegeAward
class tagCMGetFuncSysPrivilegeAward(Structure):
@@ -13598,15 +12864,18 @@
#------------------------------------------------------
# B2 17 古宝升星 #tagCMGubaoStarUp
-class tagCMGubaoPieceUse(Structure):
+class tagCMGubaoStarUp(Structure):
_pack_ = 1
_fields_ = [
- ("GubaoID", c_ushort), # 通用碎片古宝ID
- ("PieceCount", c_ushort), # 使用碎片个数
+ ("Cmd", c_ubyte),
+ ("SubCmd", c_ubyte),
+ ("GubaoID", c_ushort),
]
def __init__(self):
self.Clear()
+ self.Cmd = 0xB2
+ self.SubCmd = 0x17
return
def ReadData(self, stringData, _pos=0, _len=0):
@@ -13615,99 +12884,33 @@
return _pos + self.GetLength()
def Clear(self):
+ self.Cmd = 0xB2
+ self.SubCmd = 0x17
self.GubaoID = 0
- self.PieceCount = 0
return
def GetLength(self):
- return sizeof(tagCMGubaoPieceUse)
+ return sizeof(tagCMGubaoStarUp)
def GetBuffer(self):
return string_at(addressof(self), self.GetLength())
def OutputString(self):
DumpString = '''// B2 17 古宝升星 //tagCMGubaoStarUp:
- GubaoID:%d,
- PieceCount:%d
+ Cmd:%s,
+ SubCmd:%s,
+ GubaoID:%d
'''\
%(
- self.GubaoID,
- self.PieceCount
- )
- return DumpString
-
-
-class tagCMGubaoStarUp(Structure):
- Head = tagHead()
- GubaoID = 0 #(WORD GubaoID)
- PieceSelectCount = 0 #(BYTE PieceSelectCount)
- CommPieceUseList = list() #(vector<tagCMGubaoPieceUse> CommPieceUseList)// 通用古宝碎片使用列表
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xB2
- self.Head.SubCmd = 0x17
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.GubaoID,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.PieceSelectCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.PieceSelectCount):
- temCommPieceUseList = tagCMGubaoPieceUse()
- _pos = temCommPieceUseList.ReadData(_lpData, _pos)
- self.CommPieceUseList.append(temCommPieceUseList)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xB2
- self.Head.SubCmd = 0x17
- self.GubaoID = 0
- self.PieceSelectCount = 0
- self.CommPieceUseList = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 2
- length += 1
- for i in range(self.PieceSelectCount):
- length += self.CommPieceUseList[i].GetLength()
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteWORD(data, self.GubaoID)
- data = CommFunc.WriteBYTE(data, self.PieceSelectCount)
- for i in range(self.PieceSelectCount):
- data = CommFunc.WriteString(data, self.CommPieceUseList[i].GetLength(), self.CommPieceUseList[i].GetBuffer())
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- GubaoID:%d,
- PieceSelectCount:%d,
- CommPieceUseList:%s
- '''\
- %(
- self.Head.OutputString(),
- self.GubaoID,
- self.PieceSelectCount,
- "..."
+ self.Cmd,
+ self.SubCmd,
+ self.GubaoID
)
return DumpString
m_NAtagCMGubaoStarUp=tagCMGubaoStarUp()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGubaoStarUp.Head.Cmd,m_NAtagCMGubaoStarUp.Head.SubCmd))] = m_NAtagCMGubaoStarUp
+ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGubaoStarUp.Cmd,m_NAtagCMGubaoStarUp.SubCmd))] = m_NAtagCMGubaoStarUp
#------------------------------------------------------
@@ -14347,6 +13550,66 @@
#------------------------------------------------------
+# B2 25 幻境阁操作 #tagCSHJGOP
+
+class tagCSHJGOP(Structure):
+ _pack_ = 1
+ _fields_ = [
+ ("Cmd", c_ubyte),
+ ("SubCmd", c_ubyte),
+ ("Type", c_ubyte), # 类型 1-形象;2-头像;3-头像框;4-气泡;5-称号
+ ("OPType", c_ubyte), # 操作 1-激活;2-佩戴;3-卸下;4-升星
+ ("OPID", c_int), # 操作对应的ID,如形象ID等
+ ]
+
+ def __init__(self):
+ self.Clear()
+ self.Cmd = 0xB2
+ self.SubCmd = 0x25
+ 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 = 0xB2
+ self.SubCmd = 0x25
+ self.Type = 0
+ self.OPType = 0
+ self.OPID = 0
+ return
+
+ def GetLength(self):
+ return sizeof(tagCSHJGOP)
+
+ def GetBuffer(self):
+ return string_at(addressof(self), self.GetLength())
+
+ def OutputString(self):
+ DumpString = '''// B2 25 幻境阁操作 //tagCSHJGOP:
+ Cmd:%s,
+ SubCmd:%s,
+ Type:%d,
+ OPType:%d,
+ OPID:%d
+ '''\
+ %(
+ self.Cmd,
+ self.SubCmd,
+ self.Type,
+ self.OPType,
+ self.OPID
+ )
+ return DumpString
+
+
+m_NAtagCSHJGOP=tagCSHJGOP()
+ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCSHJGOP.Cmd,m_NAtagCSHJGOP.SubCmd))] = m_NAtagCSHJGOP
+
+
+#------------------------------------------------------
# B2 07 重置加点 #tagCMResetAttrPoint
class tagCMResetAttrPoint(Structure):
--
Gitblit v1.8.0