ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
@@ -12731,84 +12731,6 @@
#------------------------------------------------------
# AB 06 活动物品兑换 #tagCMExchangeActionItem
class  tagCMExchangeActionItem(Structure):
    Head = tagHead()
    ActionKeyLen = 0    #(BYTE ActionKeyLen)
    ActionKey = ""    #(String ActionKey)
    ItemID = 0    #(DWORD ItemID)// 兑换的目标物品ID
    ExcCnt = 0    #(WORD ExcCnt)// 兑换个数,默认1个
    data = None
    def __init__(self):
        self.Clear()
        self.Head.Cmd = 0xAB
        self.Head.SubCmd = 0x06
        return
    def ReadData(self, _lpData, _pos=0, _Len=0):
        self.Clear()
        _pos = self.Head.ReadData(_lpData, _pos)
        self.ActionKeyLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
        self.ActionKey,_pos = CommFunc.ReadString(_lpData, _pos,self.ActionKeyLen)
        self.ItemID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
        self.ExcCnt,_pos = CommFunc.ReadWORD(_lpData, _pos)
        return _pos
    def Clear(self):
        self.Head = tagHead()
        self.Head.Clear()
        self.Head.Cmd = 0xAB
        self.Head.SubCmd = 0x06
        self.ActionKeyLen = 0
        self.ActionKey = ""
        self.ItemID = 0
        self.ExcCnt = 0
        return
    def GetLength(self):
        length = 0
        length += self.Head.GetLength()
        length += 1
        length += len(self.ActionKey)
        length += 4
        length += 2
        return length
    def GetBuffer(self):
        data = ''
        data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
        data = CommFunc.WriteBYTE(data, self.ActionKeyLen)
        data = CommFunc.WriteString(data, self.ActionKeyLen, self.ActionKey)
        data = CommFunc.WriteDWORD(data, self.ItemID)
        data = CommFunc.WriteWORD(data, self.ExcCnt)
        return data
    def OutputString(self):
        DumpString = '''
                                Head:%s,
                                ActionKeyLen:%d,
                                ActionKey:%s,
                                ItemID:%d,
                                ExcCnt:%d
                                '''\
                                %(
                                self.Head.OutputString(),
                                self.ActionKeyLen,
                                self.ActionKey,
                                self.ItemID,
                                self.ExcCnt
                                )
        return DumpString
m_NAtagCMExchangeActionItem=tagCMExchangeActionItem()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMExchangeActionItem.Head.Cmd,m_NAtagCMExchangeActionItem.Head.SubCmd))] = m_NAtagCMExchangeActionItem
#------------------------------------------------------
# AB 07 领取节日登陆奖励 #tagCMGetFestivalLoginAward
class  tagCMGetFestivalLoginAward(Structure):