hxp
2025-10-30 47eb171907516123892ea3f5d1888c6394c72382
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
@@ -6567,122 +6567,6 @@
#------------------------------------------------------
# A5 56 神兵激活 #tagCMGodWeaponActivate
class  tagCMGodWeaponActivate(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("WeaponType", c_int),    # 神兵类型
                  ]
    def __init__(self):
        self.Clear()
        self.Cmd = 0xA5
        self.SubCmd = 0x56
        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 = 0x56
        self.WeaponType = 0
        return
    def GetLength(self):
        return sizeof(tagCMGodWeaponActivate)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// A5 56 神兵激活 //tagCMGodWeaponActivate:
                                Cmd:%s,
                                SubCmd:%s,
                                WeaponType:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.WeaponType
                                )
        return DumpString
m_NAtagCMGodWeaponActivate=tagCMGodWeaponActivate()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGodWeaponActivate.Cmd,m_NAtagCMGodWeaponActivate.SubCmd))] = m_NAtagCMGodWeaponActivate
#------------------------------------------------------
# A5 55 神兵升级 #tagCMGodWeaponPlus
class  tagCMGodWeaponPlus(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("WeaponType", c_int),    # 神兵类型
                  ("ItemID", c_int),    #消耗的物品ID
                  ("ItemCount", c_ubyte),    #消耗个数,默认1
                  ("IsAutoBuy", c_ubyte),    #是否自动购买,默认0
                  ]
    def __init__(self):
        self.Clear()
        self.Cmd = 0xA5
        self.SubCmd = 0x55
        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 = 0x55
        self.WeaponType = 0
        self.ItemID = 0
        self.ItemCount = 0
        self.IsAutoBuy = 0
        return
    def GetLength(self):
        return sizeof(tagCMGodWeaponPlus)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// A5 55 神兵升级 //tagCMGodWeaponPlus:
                                Cmd:%s,
                                SubCmd:%s,
                                WeaponType:%d,
                                ItemID:%d,
                                ItemCount:%d,
                                IsAutoBuy:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.WeaponType,
                                self.ItemID,
                                self.ItemCount,
                                self.IsAutoBuy
                                )
        return DumpString
m_NAtagCMGodWeaponPlus=tagCMGodWeaponPlus()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGodWeaponPlus.Cmd,m_NAtagCMGodWeaponPlus.SubCmd))] = m_NAtagCMGodWeaponPlus
#------------------------------------------------------
# A5 40 投资理财 #tagCMGoldInvest
class  tagCMGoldInvest(Structure):
@@ -8243,66 +8127,6 @@
#------------------------------------------------------
# A6 15 传功操作 #tagCMChuangongOP
class  tagCMChuangongOP(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("OPType", c_ubyte),    # 操作类型:1-邀请;2-回应;3-领奖;
                  ("PlayerID", c_int),    # 目标玩家ID;回应时为邀请方玩家ID
                  ("OPData", c_ubyte),    # 操作数据,可选:回应时为是否同意
                  ]
    def __init__(self):
        self.Clear()
        self.Cmd = 0xA6
        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 = 0xA6
        self.SubCmd = 0x15
        self.OPType = 0
        self.PlayerID = 0
        self.OPData = 0
        return
    def GetLength(self):
        return sizeof(tagCMChuangongOP)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// A6 15 传功操作 //tagCMChuangongOP:
                                Cmd:%s,
                                SubCmd:%s,
                                OPType:%d,
                                PlayerID:%d,
                                OPData:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.OPType,
                                self.PlayerID,
                                self.OPData
                                )
        return DumpString
m_NAtagCMChuangongOP=tagCMChuangongOP()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMChuangongOP.Cmd,m_NAtagCMChuangongOP.SubCmd))] = m_NAtagCMChuangongOP
#------------------------------------------------------
# A6 11 家族改名 #tagCMRenameFamily
class  tagCMRenameFamily(Structure):
@@ -8546,6 +8370,58 @@
m_NAtagCMFamilyMoneyDonate=tagCMFamilyMoneyDonate()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMFamilyMoneyDonate.Cmd,m_NAtagCMFamilyMoneyDonate.SubCmd))] = m_NAtagCMFamilyMoneyDonate
#------------------------------------------------------
# A6 13 公会讨伐 #tagCSFamilyTaofaOP
class  tagCSFamilyTaofaOP(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("OpType", c_ubyte),    # 操作:0-斩杀攻击;1-布阵
                  ]
    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
        return
    def GetLength(self):
        return sizeof(tagCSFamilyTaofaOP)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// A6 13 公会讨伐 //tagCSFamilyTaofaOP:
                                Cmd:%s,
                                SubCmd:%s,
                                OpType:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.OpType
                                )
        return DumpString
m_NAtagCSFamilyTaofaOP=tagCSFamilyTaofaOP()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCSFamilyTaofaOP.Cmd,m_NAtagCSFamilyTaofaOP.SubCmd))] = m_NAtagCSFamilyTaofaOP
#------------------------------------------------------
@@ -11017,66 +10893,6 @@
m_NAtagCMStartLuckyTreasure=tagCMStartLuckyTreasure()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMStartLuckyTreasure.Cmd,m_NAtagCMStartLuckyTreasure.SubCmd))] = m_NAtagCMStartLuckyTreasure
#------------------------------------------------------
# AB 11 开服活动奖励 #tagCMOpenServerCampaignAward
class  tagCMOpenServerCampaignAward(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("CampaignType", c_int),    #活动类型
                  ("AwardType", c_ubyte),    #奖励类型,1-排行,2-目标
                  ("AwardIndex", c_ubyte),    #目标奖励索引,领取目标奖励时用,目标条件在目标奖励列表中索引
                  ]
    def __init__(self):
        self.Clear()
        self.Cmd = 0xAB
        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 = 0xAB
        self.SubCmd = 0x11
        self.CampaignType = 0
        self.AwardType = 0
        self.AwardIndex = 0
        return
    def GetLength(self):
        return sizeof(tagCMOpenServerCampaignAward)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// AB 11 开服活动奖励 //tagCMOpenServerCampaignAward:
                                Cmd:%s,
                                SubCmd:%s,
                                CampaignType:%d,
                                AwardType:%d,
                                AwardIndex:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.CampaignType,
                                self.AwardType,
                                self.AwardIndex
                                )
        return DumpString
m_NAtagCMOpenServerCampaignAward=tagCMOpenServerCampaignAward()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMOpenServerCampaignAward.Cmd,m_NAtagCMOpenServerCampaignAward.SubCmd))] = m_NAtagCMOpenServerCampaignAward
#------------------------------------------------------