ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py
@@ -3767,6 +3767,66 @@
#------------------------------------------------------
# C0 04 查看跨服排行榜 #tagCGViewCrossBillboard
class  tagCGViewCrossBillboard(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("Type", c_ubyte),    #榜单类型
                  ("GroupValue1", c_ubyte),    # 分组值1
                  ("GroupValue2", c_ubyte),    # 分组值2,与分组值1组合归为同组榜单数据
                  ]
    def __init__(self):
        self.Clear()
        self.Cmd = 0xC0
        self.SubCmd = 0x04
        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 = 0xC0
        self.SubCmd = 0x04
        self.Type = 0
        self.GroupValue1 = 0
        self.GroupValue2 = 0
        return
    def GetLength(self):
        return sizeof(tagCGViewCrossBillboard)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// C0 04 查看跨服排行榜 //tagCGViewCrossBillboard:
                                Cmd:%s,
                                SubCmd:%s,
                                Type:%d,
                                GroupValue1:%d,
                                GroupValue2:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.Type,
                                self.GroupValue1,
                                self.GroupValue2
                                )
        return DumpString
m_NAtagCGViewCrossBillboard=tagCGViewCrossBillboard()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGViewCrossBillboard.Cmd,m_NAtagCGViewCrossBillboard.SubCmd))] = m_NAtagCGViewCrossBillboard
#------------------------------------------------------
# C0 01 查看跨服竞技场赛季排行榜 #tagCGViewCrossPKBillboard
class  tagCGViewCrossPKBillboard(Structure):
@@ -13146,6 +13206,62 @@
#------------------------------------------------------
# AA 09 集字活动兑换 #tagCMActCollectWordsExchange
class  tagCMActCollectWordsExchange(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("ActNum", c_ubyte),    #活动编号,1 或 2,相互独立的活动,可同时开启
                  ("ExchangeNum", c_ubyte),    #兑换编号
                  ]
    def __init__(self):
        self.Clear()
        self.Cmd = 0xAA
        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 = 0xAA
        self.SubCmd = 0x09
        self.ActNum = 0
        self.ExchangeNum = 0
        return
    def GetLength(self):
        return sizeof(tagCMActCollectWordsExchange)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// AA 09 集字活动兑换 //tagCMActCollectWordsExchange:
                                Cmd:%s,
                                SubCmd:%s,
                                ActNum:%d,
                                ExchangeNum:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.ActNum,
                                self.ExchangeNum
                                )
        return DumpString
m_NAtagCMActCollectWordsExchange=tagCMActCollectWordsExchange()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMActCollectWordsExchange.Cmd,m_NAtagCMActCollectWordsExchange.SubCmd))] = m_NAtagCMActCollectWordsExchange
#------------------------------------------------------
# AA 07 许愿池活动刷新奖池 #tagCMActWishingRefresh
class  tagCMActWishingRefresh(Structure):
@@ -16679,7 +16795,7 @@
class  tagCMBiddingAuctionItem(Structure):
    Head = tagHead()
    ItemGUID = ""    #(char ItemGUID[40])
    BiddingPrice = 0    #(WORD BiddingPrice)//竞价价格
    BiddingPrice = 0    #(DWORD BiddingPrice)//竞价价格
    data = None
    def __init__(self):
@@ -16692,7 +16808,7 @@
        self.Clear()
        _pos = self.Head.ReadData(_lpData, _pos)
        self.ItemGUID,_pos = CommFunc.ReadString(_lpData, _pos,40)
        self.BiddingPrice,_pos = CommFunc.ReadWORD(_lpData, _pos)
        self.BiddingPrice,_pos = CommFunc.ReadDWORD(_lpData, _pos)
        return _pos
    def Clear(self):
@@ -16708,7 +16824,7 @@
        length = 0
        length += self.Head.GetLength()
        length += 40
        length += 2
        length += 4
        return length
@@ -16716,7 +16832,7 @@
        data = ''
        data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
        data = CommFunc.WriteString(data, 40, self.ItemGUID)
        data = CommFunc.WriteWORD(data, self.BiddingPrice)
        data = CommFunc.WriteDWORD(data, self.BiddingPrice)
        return data
    def OutputString(self):
@@ -16895,6 +17011,7 @@
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("ItemIndex", c_ubyte),    #物品在背包中索引
                  ("SellCount", c_ushort),    #上架个数,0代表全部上架
                  ]
    def __init__(self):
@@ -16912,6 +17029,7 @@
        self.Cmd = 0xB5
        self.SubCmd = 0x13
        self.ItemIndex = 0
        self.SellCount = 0
        return
    def GetLength(self):
@@ -16924,12 +17042,14 @@
        DumpString = '''// B5 13 拍卖行上架拍品 //tagCMSellAuctionItem:
                                Cmd:%s,
                                SubCmd:%s,
                                ItemIndex:%d
                                ItemIndex:%d,
                                SellCount:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.ItemIndex
                                self.ItemIndex,
                                self.SellCount
                                )
        return DumpString