From f89c256bdd2ca24698018ad0ad1767c5682f5ffc Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 12 二月 2026 20:18:06 +0800
Subject: [PATCH] 66 【公会】基础主体-服务端(跨服中心GM命令找不到crossPlayer时直接注册;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 1528 ----------------------------------------------------------
1 files changed, 0 insertions(+), 1,528 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
index 7f6125f..8bb63c4 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
@@ -331,58 +331,6 @@
#------------------------------------------------------
-# A1 21 转职业 #tagCMChangeJob
-
-class tagCMChangeJob(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("TagJob", c_ubyte),
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA1
- self.SubCmd = 0x21
- 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 = 0xA1
- self.SubCmd = 0x21
- self.TagJob = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMChangeJob)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A1 21 转职业 //tagCMChangeJob:
- Cmd:%s,
- SubCmd:%s,
- TagJob:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.TagJob
- )
- return DumpString
-
-
-m_NAtagCMChangeJob=tagCMChangeJob()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMChangeJob.Cmd,m_NAtagCMChangeJob.SubCmd))] = m_NAtagCMChangeJob
-
-
-#------------------------------------------------------
# A1 25 代币购买充值商品编号商品 #tagCMCoinBuyOrderInfo
class tagCMCoinBuyOrderInfo(Structure):
@@ -461,66 +409,6 @@
#------------------------------------------------------
-# A1 20 货币兑换 #tagCMMoneyExchange
-
-class tagCMMoneyExchange(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("SrcMoneyType", c_ubyte), # 源货币类型
- ("TagMoneyType", c_ubyte), # 目标货币类型
- ("ExchangeValue", c_int), # 兑换数量(消耗源货币的数量)
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA1
- self.SubCmd = 0x20
- 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 = 0xA1
- self.SubCmd = 0x20
- self.SrcMoneyType = 0
- self.TagMoneyType = 0
- self.ExchangeValue = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMMoneyExchange)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A1 20 货币兑换 //tagCMMoneyExchange:
- Cmd:%s,
- SubCmd:%s,
- SrcMoneyType:%d,
- TagMoneyType:%d,
- ExchangeValue:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.SrcMoneyType,
- self.TagMoneyType,
- self.ExchangeValue
- )
- return DumpString
-
-
-m_NAtagCMMoneyExchange=tagCMMoneyExchange()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMMoneyExchange.Cmd,m_NAtagCMMoneyExchange.SubCmd))] = m_NAtagCMMoneyExchange
-
-
-#------------------------------------------------------
# A1 23 查询充值次数 #tagCMQueryCoinToGoldCount
class tagCMQueryCoinToGoldCount(Structure):
@@ -570,54 +458,6 @@
m_NAtagCMQueryCoinToGoldCount=tagCMQueryCoinToGoldCount()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMQueryCoinToGoldCount.Cmd,m_NAtagCMQueryCoinToGoldCount.SubCmd))] = m_NAtagCMQueryCoinToGoldCount
-
-
-#------------------------------------------------------
-# A1 08 刷新主服角色信息 #tagCMRefreshMainServerRole
-
-class tagCMRefreshMainServerRole(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA1
- self.SubCmd = 0x08
- 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 = 0xA1
- self.SubCmd = 0x08
- return
-
- def GetLength(self):
- return sizeof(tagCMRefreshMainServerRole)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A1 08 刷新主服角色信息 //tagCMRefreshMainServerRole:
- Cmd:%s,
- SubCmd:%s
- '''\
- %(
- self.Cmd,
- self.SubCmd
- )
- return DumpString
-
-
-m_NAtagCMRefreshMainServerRole=tagCMRefreshMainServerRole()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMRefreshMainServerRole.Cmd,m_NAtagCMRefreshMainServerRole.SubCmd))] = m_NAtagCMRefreshMainServerRole
#------------------------------------------------------
@@ -5414,331 +5254,6 @@
#------------------------------------------------------
-# A5 C2 神兽变更助战状态 #tagCMDogzBattleStateChange
-
-class tagCMDogzBattleStateChange(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("DogzID", c_ubyte), # 神兽ID
- ("BatteState", c_ubyte), #助战状态,0-召回,1-助战
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA5
- self.SubCmd = 0xC2
- 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 = 0xC2
- self.DogzID = 0
- self.BatteState = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMDogzBattleStateChange)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A5 C2 神兽变更助战状态 //tagCMDogzBattleStateChange:
- Cmd:%s,
- SubCmd:%s,
- DogzID:%d,
- BatteState:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.DogzID,
- self.BatteState
- )
- return DumpString
-
-
-m_NAtagCMDogzBattleStateChange=tagCMDogzBattleStateChange()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMDogzBattleStateChange.Cmd,m_NAtagCMDogzBattleStateChange.SubCmd))] = m_NAtagCMDogzBattleStateChange
-
-
-#------------------------------------------------------
-# A5 C3 神兽购买助战位 #tagCMDogzBuyBatteCount
-
-class tagCMDogzBuyBatteCount(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA5
- 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 = 0xA5
- self.SubCmd = 0xC3
- return
-
- def GetLength(self):
- return sizeof(tagCMDogzBuyBatteCount)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A5 C3 神兽购买助战位 //tagCMDogzBuyBatteCount:
- Cmd:%s,
- SubCmd:%s
- '''\
- %(
- self.Cmd,
- self.SubCmd
- )
- return DumpString
-
-
-m_NAtagCMDogzBuyBatteCount=tagCMDogzBuyBatteCount()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMDogzBuyBatteCount.Cmd,m_NAtagCMDogzBuyBatteCount.SubCmd))] = m_NAtagCMDogzBuyBatteCount
-
-
-#------------------------------------------------------
-# A5 C0 神兽穿戴装备 #tagCMDogzEquipItem
-
-class tagCMDogzEquipItem(Structure):
- Head = tagHead()
- DogzID = 0 #(BYTE DogzID)// 神兽ID
- EquipIndexCount = 0 #(BYTE EquipIndexCount)
- EquipIndexList = list() #(vector<BYTE> EquipIndexList)//神兽装备所在神兽背包索引列表
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xA5
- self.Head.SubCmd = 0xC0
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.DogzID,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.EquipIndexCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.EquipIndexCount):
- value,_pos=CommFunc.ReadBYTE(_lpData,_pos)
- self.EquipIndexList.append(value)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xA5
- self.Head.SubCmd = 0xC0
- self.DogzID = 0
- self.EquipIndexCount = 0
- self.EquipIndexList = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += 1
- length += 1 * self.EquipIndexCount
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.DogzID)
- data = CommFunc.WriteBYTE(data, self.EquipIndexCount)
- for i in range(self.EquipIndexCount):
- data = CommFunc.WriteBYTE(data, self.EquipIndexList[i])
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- DogzID:%d,
- EquipIndexCount:%d,
- EquipIndexList:%s
- '''\
- %(
- self.Head.OutputString(),
- self.DogzID,
- self.EquipIndexCount,
- "..."
- )
- return DumpString
-
-
-m_NAtagCMDogzEquipItem=tagCMDogzEquipItem()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMDogzEquipItem.Head.Cmd,m_NAtagCMDogzEquipItem.Head.SubCmd))] = m_NAtagCMDogzEquipItem
-
-
-#------------------------------------------------------
-# A5 C4 神兽装备强化 #tagCMDogzEquipPlus
-
-class tagCMDogzEquipPlus(Structure):
- Head = tagHead()
- EquipIndex = 0 #(BYTE EquipIndex)//神兽装备背包中索引
- IndexCount = 0 #(BYTE IndexCount)//材料所在神兽物品背包索引的数量
- IndexList = list() #(vector<BYTE> IndexList)//材料所在神兽物品背包索引列表
- IndexUseCountList = list() #(vector<DWORD> IndexUseCountList)//材料所在神兽物品背包索引对应使用个数列表
- IsDouble = 0 #(BYTE IsDouble)//是否双倍强化
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xA5
- self.Head.SubCmd = 0xC4
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.EquipIndex,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.IndexCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.IndexCount):
- value,_pos=CommFunc.ReadBYTE(_lpData,_pos)
- self.IndexList.append(value)
- for i in range(self.IndexCount):
- value,_pos=CommFunc.ReadDWORD(_lpData,_pos)
- self.IndexUseCountList.append(value)
- self.IsDouble,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xA5
- self.Head.SubCmd = 0xC4
- self.EquipIndex = 0
- self.IndexCount = 0
- self.IndexList = list()
- self.IndexUseCountList = list()
- self.IsDouble = 0
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += 1
- length += 1 * self.IndexCount
- length += 4 * self.IndexCount
- length += 1
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.EquipIndex)
- data = CommFunc.WriteBYTE(data, self.IndexCount)
- for i in range(self.IndexCount):
- data = CommFunc.WriteBYTE(data, self.IndexList[i])
- for i in range(self.IndexCount):
- data = CommFunc.WriteDWORD(data, self.IndexUseCountList[i])
- data = CommFunc.WriteBYTE(data, self.IsDouble)
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- EquipIndex:%d,
- IndexCount:%d,
- IndexList:%s,
- IndexUseCountList:%s,
- IsDouble:%d
- '''\
- %(
- self.Head.OutputString(),
- self.EquipIndex,
- self.IndexCount,
- "...",
- "...",
- self.IsDouble
- )
- return DumpString
-
-
-m_NAtagCMDogzEquipPlus=tagCMDogzEquipPlus()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMDogzEquipPlus.Head.Cmd,m_NAtagCMDogzEquipPlus.Head.SubCmd))] = m_NAtagCMDogzEquipPlus
-
-
-#------------------------------------------------------
-# A5 C1 神兽卸下装备 #tagCMDogzUnEquipItem
-
-class tagCMDogzUnEquipItem(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("DogzID", c_ubyte), # 神兽ID
- ("EquipPlace", c_ubyte), #卸下的装备位, 0代表卸下全部
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA5
- self.SubCmd = 0xC1
- 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 = 0xC1
- self.DogzID = 0
- self.EquipPlace = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMDogzUnEquipItem)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A5 C1 神兽卸下装备 //tagCMDogzUnEquipItem:
- Cmd:%s,
- SubCmd:%s,
- DogzID:%d,
- EquipPlace:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.DogzID,
- self.EquipPlace
- )
- return DumpString
-
-
-m_NAtagCMDogzUnEquipItem=tagCMDogzUnEquipItem()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMDogzUnEquipItem.Cmd,m_NAtagCMDogzUnEquipItem.SubCmd))] = m_NAtagCMDogzUnEquipItem
-
-
-#------------------------------------------------------
# A5 C5 装备部位升星 #tagCMEquipPartStarUp
class tagCMEquipPartStarUp(Structure):
@@ -5894,62 +5409,6 @@
#------------------------------------------------------
-# A5 32 法器升级 #tagCMFaQiLVUp
-
-class tagCMFaQiLVUp(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("UseItemCnt", c_ushort), #消耗材料个数
- ("IsAutoBuy", c_ubyte), #是否自动购买
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA5
- self.SubCmd = 0x32
- 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 = 0x32
- self.UseItemCnt = 0
- self.IsAutoBuy = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMFaQiLVUp)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A5 32 法器升级 //tagCMFaQiLVUp:
- Cmd:%s,
- SubCmd:%s,
- UseItemCnt:%d,
- IsAutoBuy:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.UseItemCnt,
- self.IsAutoBuy
- )
- return DumpString
-
-
-m_NAtagCMFaQiLVUp=tagCMFaQiLVUp()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMFaQiLVUp.Cmd,m_NAtagCMFaQiLVUp.SubCmd))] = m_NAtagCMFaQiLVUp
-
-
-#------------------------------------------------------
# A5 41 领取投资理财回报 #tagCMGetInvestReward
class tagCMGetInvestReward(Structure):
@@ -6059,110 +5518,6 @@
m_NAtagCMGoldInvest=tagCMGoldInvest()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGoldInvest.Cmd,m_NAtagCMGoldInvest.SubCmd))] = m_NAtagCMGoldInvest
-
-
-#------------------------------------------------------
-# A5 34 炼体突破 #tagCMLianTiLVUp
-
-class tagCMLianTiLVUp(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA5
- self.SubCmd = 0x34
- 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 = 0x34
- return
-
- def GetLength(self):
- return sizeof(tagCMLianTiLVUp)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A5 34 炼体突破 //tagCMLianTiLVUp:
- Cmd:%s,
- SubCmd:%s
- '''\
- %(
- self.Cmd,
- self.SubCmd
- )
- return DumpString
-
-
-m_NAtagCMLianTiLVUp=tagCMLianTiLVUp()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMLianTiLVUp.Cmd,m_NAtagCMLianTiLVUp.SubCmd))] = m_NAtagCMLianTiLVUp
-
-
-#------------------------------------------------------
-# A5 33 炼体提升 #tagCMLianTiUp
-
-class tagCMLianTiUp(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("UseItemCnt", c_int), #消耗材料个数
- ("IsAutoBuy", c_ubyte), #是否自动购买
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA5
- self.SubCmd = 0x33
- 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 = 0x33
- self.UseItemCnt = 0
- self.IsAutoBuy = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMLianTiUp)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A5 33 炼体提升 //tagCMLianTiUp:
- Cmd:%s,
- SubCmd:%s,
- UseItemCnt:%d,
- IsAutoBuy:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.UseItemCnt,
- self.IsAutoBuy
- )
- return DumpString
-
-
-m_NAtagCMLianTiUp=tagCMLianTiUp()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMLianTiUp.Cmd,m_NAtagCMLianTiUp.SubCmd))] = m_NAtagCMLianTiUp
#------------------------------------------------------
@@ -8293,58 +7648,6 @@
#------------------------------------------------------
-# A9 07 点赞仙宫 #tagCGLikeXiangong
-
-class tagCGLikeXiangong(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("XiangongID", c_ushort), # 仙宫ID,为0时代表每日的仙宫点赞
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA9
- 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 = 0xA9
- self.SubCmd = 0x07
- self.XiangongID = 0
- return
-
- def GetLength(self):
- return sizeof(tagCGLikeXiangong)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A9 07 点赞仙宫 //tagCGLikeXiangong:
- Cmd:%s,
- SubCmd:%s,
- XiangongID:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.XiangongID
- )
- return DumpString
-
-
-m_NAtagCGLikeXiangong=tagCGLikeXiangong()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGLikeXiangong.Cmd,m_NAtagCGLikeXiangong.SubCmd))] = m_NAtagCGLikeXiangong
-
-
-#------------------------------------------------------
# A9 A5 查看竞技场对战玩家最新信息 #tagCGQueryArenaBattlePlayer
class tagCGQueryArenaBattlePlayer(Structure):
@@ -8662,58 +7965,6 @@
m_NAtagCGQueryRecommendFriends=tagCGQueryRecommendFriends()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGQueryRecommendFriends.Cmd,m_NAtagCGQueryRecommendFriends.SubCmd))] = m_NAtagCGQueryRecommendFriends
-
-
-#------------------------------------------------------
-# A9 06 查看仙宫仙名录 #tagCGQueryXiangongRecPlayers
-
-class tagCGQueryXiangongRecPlayers(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("XiangongID", c_ushort), # 仙宫ID
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA9
- self.SubCmd = 0x06
- 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 = 0x06
- self.XiangongID = 0
- return
-
- def GetLength(self):
- return sizeof(tagCGQueryXiangongRecPlayers)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A9 06 查看仙宫仙名录 //tagCGQueryXiangongRecPlayers:
- Cmd:%s,
- SubCmd:%s,
- XiangongID:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.XiangongID
- )
- return DumpString
-
-
-m_NAtagCGQueryXiangongRecPlayers=tagCGQueryXiangongRecPlayers()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGQueryXiangongRecPlayers.Cmd,m_NAtagCGQueryXiangongRecPlayers.SubCmd))] = m_NAtagCGQueryXiangongRecPlayers
#------------------------------------------------------
@@ -9701,73 +8952,6 @@
#------------------------------------------------------
-# B2 11 激活功能系统特权奖励 #tagCMActivateFuncSysPrivilege
-
-class tagCMActivateFuncSysPrivilege(Structure):
- Head = tagHead()
- ActivateCount = 0 #(BYTE ActivateCount)// 激活个数
- ActivateFuncSysIDList = list() #(vector<BYTE> ActivateFuncSysIDList)// 激活功能系统ID列表,全部激活则需要发所有ID列表
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xB2
- self.Head.SubCmd = 0x11
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.ActivateCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.ActivateCount):
- value,_pos=CommFunc.ReadBYTE(_lpData,_pos)
- self.ActivateFuncSysIDList.append(value)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xB2
- self.Head.SubCmd = 0x11
- self.ActivateCount = 0
- self.ActivateFuncSysIDList = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += 1 * self.ActivateCount
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.ActivateCount)
- for i in range(self.ActivateCount):
- data = CommFunc.WriteBYTE(data, self.ActivateFuncSysIDList[i])
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- ActivateCount:%d,
- ActivateFuncSysIDList:%s
- '''\
- %(
- self.Head.OutputString(),
- self.ActivateCount,
- "..."
- )
- return DumpString
-
-
-m_NAtagCMActivateFuncSysPrivilege=tagCMActivateFuncSysPrivilege()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMActivateFuncSysPrivilege.Head.Cmd,m_NAtagCMActivateFuncSysPrivilege.Head.SubCmd))] = m_NAtagCMActivateFuncSysPrivilege
-
-
-#------------------------------------------------------
# B2 06 玩家加点 #tagCMAddPoint
class tagCMAddPoint(Structure):
@@ -10316,62 +9500,6 @@
m_NAtagCSFuncPresetUpdName=tagCSFuncPresetUpdName()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCSFuncPresetUpdName.Head.Cmd,m_NAtagCSFuncPresetUpdName.Head.SubCmd))] = m_NAtagCSFuncPresetUpdName
-
-
-#------------------------------------------------------
-# B2 12 领取功能系统特权奖励 #tagCMGetFuncSysPrivilegeAward
-
-class tagCMGetFuncSysPrivilegeAward(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("FuncSysID", c_ubyte), # 功能系统ID
- ("DayNum", c_ubyte), # 第X天,1为第1天
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB2
- self.SubCmd = 0x12
- 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 = 0x12
- self.FuncSysID = 0
- self.DayNum = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMGetFuncSysPrivilegeAward)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B2 12 领取功能系统特权奖励 //tagCMGetFuncSysPrivilegeAward:
- Cmd:%s,
- SubCmd:%s,
- FuncSysID:%d,
- DayNum:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.FuncSysID,
- self.DayNum
- )
- return DumpString
-
-
-m_NAtagCMGetFuncSysPrivilegeAward=tagCMGetFuncSysPrivilegeAward()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGetFuncSysPrivilegeAward.Cmd,m_NAtagCMGetFuncSysPrivilegeAward.SubCmd))] = m_NAtagCMGetFuncSysPrivilegeAward
#------------------------------------------------------
@@ -11863,606 +10991,6 @@
#------------------------------------------------------
-# B3 19 提升魅力等级 #tagCGCharmLVUp
-
-class tagCGCharmLVUp(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB3
- self.SubCmd = 0x19
- 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 = 0xB3
- self.SubCmd = 0x19
- return
-
- def GetLength(self):
- return sizeof(tagCGCharmLVUp)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B3 19 提升魅力等级 //tagCGCharmLVUp:
- Cmd:%s,
- SubCmd:%s
- '''\
- %(
- self.Cmd,
- self.SubCmd
- )
- return DumpString
-
-
-m_NAtagCGCharmLVUp=tagCGCharmLVUp()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGCharmLVUp.Cmd,m_NAtagCGCharmLVUp.SubCmd))] = m_NAtagCGCharmLVUp
-
-
-#------------------------------------------------------
-# B3 09 魅力贡献榜查看 #tagCGCharmOfferBillboardQuery
-
-class tagCGCharmOfferBillboardQuery(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("PlayerID", c_int), # 魅力玩家ID
- ("QueryType", c_ubyte), # 查看类型: 1-总榜,2-周榜,3-日榜
- ("QueryCount", c_ubyte), # 查看名次数量,最大255
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB3
- self.SubCmd = 0x09
- 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 = 0xB3
- self.SubCmd = 0x09
- self.PlayerID = 0
- self.QueryType = 0
- self.QueryCount = 0
- return
-
- def GetLength(self):
- return sizeof(tagCGCharmOfferBillboardQuery)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B3 09 魅力贡献榜查看 //tagCGCharmOfferBillboardQuery:
- Cmd:%s,
- SubCmd:%s,
- PlayerID:%d,
- QueryType:%d,
- QueryCount:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.PlayerID,
- self.QueryType,
- self.QueryCount
- )
- return DumpString
-
-
-m_NAtagCGCharmOfferBillboardQuery=tagCGCharmOfferBillboardQuery()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGCharmOfferBillboardQuery.Cmd,m_NAtagCGCharmOfferBillboardQuery.SubCmd))] = m_NAtagCGCharmOfferBillboardQuery
-
-
-#------------------------------------------------------
-# B3 17 情戒解锁 #tagCMLoveRingUnlock
-
-class tagCMLoveRingUnlock(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB3
- self.SubCmd = 0x17
- 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 = 0xB3
- self.SubCmd = 0x17
- return
-
- def GetLength(self):
- return sizeof(tagCMLoveRingUnlock)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B3 17 情戒解锁 //tagCMLoveRingUnlock:
- Cmd:%s,
- SubCmd:%s
- '''\
- %(
- self.Cmd,
- self.SubCmd
- )
- return DumpString
-
-
-m_NAtagCMLoveRingUnlock=tagCMLoveRingUnlock()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMLoveRingUnlock.Cmd,m_NAtagCMLoveRingUnlock.SubCmd))] = m_NAtagCMLoveRingUnlock
-
-
-#------------------------------------------------------
-# B3 18 情戒升级 #tagCMLoveRingUp
-
-class tagCMLoveRingUp(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("UseItemCnt", c_int), #消耗材料个数
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB3
- self.SubCmd = 0x18
- 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 = 0xB3
- self.SubCmd = 0x18
- self.UseItemCnt = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMLoveRingUp)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B3 18 情戒升级 //tagCMLoveRingUp:
- Cmd:%s,
- SubCmd:%s,
- UseItemCnt:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.UseItemCnt
- )
- return DumpString
-
-
-m_NAtagCMLoveRingUp=tagCMLoveRingUp()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMLoveRingUp.Cmd,m_NAtagCMLoveRingUp.SubCmd))] = m_NAtagCMLoveRingUp
-
-
-#------------------------------------------------------
-# B3 15 离婚 #tagCMMarryBreak
-
-class tagCMMarryBreak(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("BreakType", c_ubyte), # 0-和平离婚;1-强制离婚
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB3
- self.SubCmd = 0x15
- 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 = 0xB3
- self.SubCmd = 0x15
- self.BreakType = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMMarryBreak)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B3 15 离婚 //tagCMMarryBreak:
- Cmd:%s,
- SubCmd:%s,
- BreakType:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.BreakType
- )
- return DumpString
-
-
-m_NAtagCMMarryBreak=tagCMMarryBreak()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMMarryBreak.Cmd,m_NAtagCMMarryBreak.SubCmd))] = m_NAtagCMMarryBreak
-
-
-#------------------------------------------------------
-# B3 16 和平离婚回应 #tagGCMarryBreakResponse
-
-class tagGCMarryBreakResponse(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("IsOK", c_ubyte), # 是否同意,0-否,1-是
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB3
- self.SubCmd = 0x16
- 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 = 0xB3
- self.SubCmd = 0x16
- self.IsOK = 0
- return
-
- def GetLength(self):
- return sizeof(tagGCMarryBreakResponse)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B3 16 和平离婚回应 //tagGCMarryBreakResponse:
- Cmd:%s,
- SubCmd:%s,
- IsOK:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.IsOK
- )
- return DumpString
-
-
-m_NAtagGCMarryBreakResponse=tagGCMarryBreakResponse()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCMarryBreakResponse.Cmd,m_NAtagGCMarryBreakResponse.SubCmd))] = m_NAtagGCMarryBreakResponse
-
-
-#------------------------------------------------------
-# B3 14 购买婚礼烟花 #tagCMMarryBuyFireworks
-
-class tagCMMarryBuyFireworks(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("PlayerIDA", c_int), # 喜糖所属玩家IDA
- ("PlayerIDB", c_int), # 喜糖所属玩家IDB
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB3
- self.SubCmd = 0x14
- 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 = 0xB3
- self.SubCmd = 0x14
- self.PlayerIDA = 0
- self.PlayerIDB = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMMarryBuyFireworks)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B3 14 购买婚礼烟花 //tagCMMarryBuyFireworks:
- Cmd:%s,
- SubCmd:%s,
- PlayerIDA:%d,
- PlayerIDB:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.PlayerIDA,
- self.PlayerIDB
- )
- return DumpString
-
-
-m_NAtagCMMarryBuyFireworks=tagCMMarryBuyFireworks()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMMarryBuyFireworks.Cmd,m_NAtagCMMarryBuyFireworks.SubCmd))] = m_NAtagCMMarryBuyFireworks
-
-
-#------------------------------------------------------
-# B3 13 吃喜糖 #tagCMMarryEatCandy
-
-class tagCMMarryEatCandy(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("PlayerIDA", c_int), # 喜糖所属玩家IDA
- ("PlayerIDB", c_int), # 喜糖所属玩家IDB
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB3
- 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 = 0xB3
- self.SubCmd = 0x13
- self.PlayerIDA = 0
- self.PlayerIDB = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMMarryEatCandy)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B3 13 吃喜糖 //tagCMMarryEatCandy:
- Cmd:%s,
- SubCmd:%s,
- PlayerIDA:%d,
- PlayerIDB:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.PlayerIDA,
- self.PlayerIDB
- )
- return DumpString
-
-
-m_NAtagCMMarryEatCandy=tagCMMarryEatCandy()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMMarryEatCandy.Cmd,m_NAtagCMMarryEatCandy.SubCmd))] = m_NAtagCMMarryEatCandy
-
-
-#------------------------------------------------------
-# B3 11 提亲 #tagCMMarryReq
-
-class tagCMMarryReq(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("TagPlayerID", c_int), # 目标玩家ID
- ("BridePriceID", c_ubyte), # 聘礼ID
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB3
- self.SubCmd = 0x11
- 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 = 0xB3
- self.SubCmd = 0x11
- self.TagPlayerID = 0
- self.BridePriceID = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMMarryReq)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B3 11 提亲 //tagCMMarryReq:
- Cmd:%s,
- SubCmd:%s,
- TagPlayerID:%d,
- BridePriceID:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.TagPlayerID,
- self.BridePriceID
- )
- return DumpString
-
-
-m_NAtagCMMarryReq=tagCMMarryReq()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMMarryReq.Cmd,m_NAtagCMMarryReq.SubCmd))] = m_NAtagCMMarryReq
-
-
-#------------------------------------------------------
-# B3 12 提亲回应 #tagCGMarryResponse
-
-class tagCGMarryResponse(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("ReqPlayerID", c_int), # 提亲的玩家ID
- ("IsOK", c_ubyte), # 是否同意,0-否,1-是
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB3
- self.SubCmd = 0x12
- 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 = 0xB3
- self.SubCmd = 0x12
- self.ReqPlayerID = 0
- self.IsOK = 0
- return
-
- def GetLength(self):
- return sizeof(tagCGMarryResponse)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B3 12 提亲回应 //tagCGMarryResponse:
- Cmd:%s,
- SubCmd:%s,
- ReqPlayerID:%d,
- IsOK:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.ReqPlayerID,
- self.IsOK
- )
- return DumpString
-
-
-m_NAtagCGMarryResponse=tagCGMarryResponse()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGMarryResponse.Cmd,m_NAtagCGMarryResponse.SubCmd))] = m_NAtagCGMarryResponse
-
-
-#------------------------------------------------------
-# B3 10 送礼物 #tagCMSendGifts
-
-class tagCMSendGifts(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("TagPlayerID", c_int), # 目标玩家ID
- ("GiftNum", c_ushort), # 赠送礼物编号
- ("GiftCount", c_int), # 赠送礼物数量
- ("IsAutoBuy", c_ubyte), # 是否自动购买
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB3
- self.SubCmd = 0x10
- 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 = 0xB3
- self.SubCmd = 0x10
- self.TagPlayerID = 0
- self.GiftNum = 0
- self.GiftCount = 0
- self.IsAutoBuy = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMSendGifts)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B3 10 送礼物 //tagCMSendGifts:
- Cmd:%s,
- SubCmd:%s,
- TagPlayerID:%d,
- GiftNum:%d,
- GiftCount:%d,
- IsAutoBuy:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.TagPlayerID,
- self.GiftNum,
- self.GiftCount,
- self.IsAutoBuy
- )
- return DumpString
-
-
-m_NAtagCMSendGifts=tagCMSendGifts()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMSendGifts.Cmd,m_NAtagCMSendGifts.SubCmd))] = m_NAtagCMSendGifts
-
-
-#------------------------------------------------------
#B3 04 加入黑名单 #tagCGAddBlackList
class tagCGAddBlackList(Structure):
@@ -13900,62 +12428,6 @@
m_NAtagCMUseSkillEx=tagCMUseSkillEx()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMUseSkillEx.Cmd,m_NAtagCMUseSkillEx.SubCmd))] = m_NAtagCMUseSkillEx
-
-
-#------------------------------------------------------
-# B4 0D 战斗印记 #tagCMYinji
-
-class tagCMYinji(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("Count", c_ubyte),
- ("Type", c_ubyte), # 0 加,1减
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xB4
- self.SubCmd = 0x0D
- 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 = 0xB4
- self.SubCmd = 0x0D
- self.Count = 0
- self.Type = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMYinji)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// B4 0D 战斗印记 //tagCMYinji:
- Cmd:%s,
- SubCmd:%s,
- Count:%d,
- Type:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.Count,
- self.Type
- )
- return DumpString
-
-
-m_NAtagCMYinji=tagCMYinji()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMYinji.Cmd,m_NAtagCMYinji.SubCmd))] = m_NAtagCMYinji
#------------------------------------------------------
--
Gitblit v1.8.0