hxp
2026-01-07 b0a1a6c78f4f7b3a2b83544b9e1bb664878179fc
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
@@ -15177,6 +15177,66 @@
#------------------------------------------------------
# B4 16 查看NPC属性 #tagCSViewNPCAttr
class  tagCSViewNPCAttr(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("MapID", c_int),    # 自定义地图ID,可用于绑定战斗地图场景功能(如主线boss、爬塔、竞技场等)
                  ("FuncLineID", c_int),    # MapID对应的扩展值,如具体某个关卡等
                  ("ViewNPCID", c_int),    # 指定查看某个NPCID,发0则查看该关卡阵容所有NPC
                  ]
    def __init__(self):
        self.Clear()
        self.Cmd = 0xB4
        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 = 0xB4
        self.SubCmd = 0x16
        self.MapID = 0
        self.FuncLineID = 0
        self.ViewNPCID = 0
        return
    def GetLength(self):
        return sizeof(tagCSViewNPCAttr)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// B4 16 查看NPC属性 //tagCSViewNPCAttr:
                                Cmd:%s,
                                SubCmd:%s,
                                MapID:%d,
                                FuncLineID:%d,
                                ViewNPCID:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.MapID,
                                self.FuncLineID,
                                self.ViewNPCID
                                )
        return DumpString
m_NAtagCSViewNPCAttr=tagCSViewNPCAttr()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCSViewNPCAttr.Cmd,m_NAtagCSViewNPCAttr.SubCmd))] = m_NAtagCSViewNPCAttr
#------------------------------------------------------
# B5 18 拍卖行修改关注物品 #tagCGAttentionAuctionItemChange
class  tagCGAttentionAuctionItemChange(Structure):