xdh
2019-01-23 542b896965d8b73ce4434de75c7eb232378c0a64
6001 【后端】【1.5.100】七日巡礼增加条件(封包)
2个文件已修改
120 ■■■■■ 已修改文件
ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py 116 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py
@@ -23970,8 +23970,8 @@
    _pack_ = 1
    _fields_ = [
                  ("TemplateID", c_ushort),    # 模板ID
                  ("CurTimes", c_ushort),    #已完成次数
                  ("GotTimes", c_ushort),    #已领取次数
                  ("CurTimes", c_int),    #已完成次数
                  ("GotTimes", c_int),    #已领取次数
                  ]
    def __init__(self):
@@ -28057,6 +28057,118 @@
#------------------------------------------------------
# B4 13 通知玩家所有已学技能 #tagMCPlayerSkills
class  tagPlayerSkill(Structure):
    _pack_ = 1
    _fields_ = [
                  ("SkillID", c_int),    #技能ID
                  ("RemainTime", c_int),    #剩余时间
                  ("Proficiency", c_int),    #熟练度
                  ]
    def __init__(self):
        self.Clear()
        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.SkillID = 0
        self.RemainTime = 0
        self.Proficiency = 0
        return
    def GetLength(self):
        return sizeof(tagPlayerSkill)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// B4 13 通知玩家所有已学技能 //tagMCPlayerSkills:
                                SkillID:%d,
                                RemainTime:%d,
                                Proficiency:%d
                                '''\
                                %(
                                self.SkillID,
                                self.RemainTime,
                                self.Proficiency
                                )
        return DumpString
class  tagMCPlayerSkills(Structure):
    Head = tagHead()
    Count = 0    #(WORD Count)//技能个数
    Skills = list()    #(vector<tagPlayerSkill> Skills)// 技能数据
    data = None
    def __init__(self):
        self.Clear()
        self.Head.Cmd = 0xB4
        self.Head.SubCmd = 0x13
        return
    def ReadData(self, _lpData, _pos=0, _Len=0):
        self.Clear()
        _pos = self.Head.ReadData(_lpData, _pos)
        self.Count,_pos = CommFunc.ReadWORD(_lpData, _pos)
        for i in range(self.Count):
            temSkills = tagPlayerSkill()
            _pos = temSkills.ReadData(_lpData, _pos)
            self.Skills.append(temSkills)
        return _pos
    def Clear(self):
        self.Head = tagHead()
        self.Head.Clear()
        self.Head.Cmd = 0xB4
        self.Head.SubCmd = 0x13
        self.Count = 0
        self.Skills = list()
        return
    def GetLength(self):
        length = 0
        length += self.Head.GetLength()
        length += 2
        for i in range(self.Count):
            length += self.Skills[i].GetLength()
        return length
    def GetBuffer(self):
        data = ''
        data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
        data = CommFunc.WriteWORD(data, self.Count)
        for i in range(self.Count):
            data = CommFunc.WriteString(data, self.Skills[i].GetLength(), self.Skills[i].GetBuffer())
        return data
    def OutputString(self):
        DumpString = '''
                                Head:%s,
                                Count:%d,
                                Skills:%s
                                '''\
                                %(
                                self.Head.OutputString(),
                                self.Count,
                                "..."
                                )
        return DumpString
m_NAtagMCPlayerSkills=tagMCPlayerSkills()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCPlayerSkills.Head.Cmd,m_NAtagMCPlayerSkills.Head.SubCmd))] = m_NAtagMCPlayerSkills
#------------------------------------------------------
#B4 0A 玩家移动 #tagMCPYPlayerMove
class  tagMCPYPlayerMove(Structure):
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -23970,8 +23970,8 @@
    _pack_ = 1
    _fields_ = [
                  ("TemplateID", c_ushort),    # 模板ID
                  ("CurTimes", c_ushort),    #已完成次数
                  ("GotTimes", c_ushort),    #已领取次数
                  ("CurTimes", c_int),    #已完成次数
                  ("GotTimes", c_int),    #已领取次数
                  ]
    def __init__(self):