hxp
2025-10-15 5614ac8b422f5e3ffabe3c7dd5ad4c25efe6ce84
263 【主界面】头像系统(内政-幻境阁系统)-服务端(玩家改名)
1个文件已修改
13 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -19725,8 +19725,7 @@
class  tagSCRenameResult(Structure):
    Head = tagHead()
    PlayerName = ""    #(char PlayerName[33])//size = 14
    Result = 0    #(BYTE Result)//角色改名结果
    PlayerName = ""    #(char PlayerName[33])// 新名字
    data = None
    def __init__(self):
@@ -19739,7 +19738,6 @@
        self.Clear()
        _pos = self.Head.ReadData(_lpData, _pos)
        self.PlayerName,_pos = CommFunc.ReadString(_lpData, _pos,33)
        self.Result,_pos = CommFunc.ReadBYTE(_lpData, _pos)
        return _pos
    def Clear(self):
@@ -19748,14 +19746,12 @@
        self.Head.Cmd = 0xA9
        self.Head.SubCmd = 0x21
        self.PlayerName = ""
        self.Result = 0
        return
    def GetLength(self):
        length = 0
        length += self.Head.GetLength()
        length += 33
        length += 1
        return length
@@ -19763,19 +19759,16 @@
        data = ''
        data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
        data = CommFunc.WriteString(data, 33, self.PlayerName)
        data = CommFunc.WriteBYTE(data, self.Result)
        return data
    def OutputString(self):
        DumpString = '''
                                Head:%s,
                                PlayerName:%s,
                                Result:%d
                                PlayerName:%s
                                '''\
                                %(
                                self.Head.OutputString(),
                                self.PlayerName,
                                self.Result
                                self.PlayerName
                                )
        return DumpString