From 88650853f1898815f4612280dd2ffc85af9ddd80 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期四, 25 四月 2019 16:57:33 +0800 Subject: [PATCH] 6607 【2.0】【后端】技能升级功能改版 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py index e8f8f90..1d77aca 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py @@ -10992,6 +10992,58 @@ #------------------------------------------------------ +# A5 16 选择技能五行专精 #tagCMSelectSkillElement + +class tagCMSelectSkillElement(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("SkillTypeID", c_int), # 专精技能ID + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xA5 + 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 = 0xA5 + self.SubCmd = 0x16 + self.SkillTypeID = 0 + return + + def GetLength(self): + return sizeof(tagCMSelectSkillElement) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// A5 16 选择技能五行专精 //tagCMSelectSkillElement: + Cmd:%s, + SubCmd:%s, + SkillTypeID:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.SkillTypeID + ) + return DumpString + + +m_NAtagCMSelectSkillElement=tagCMSelectSkillElement() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMSelectSkillElement.Cmd,m_NAtagCMSelectSkillElement.SubCmd))] = m_NAtagCMSelectSkillElement + + +#------------------------------------------------------ # A5 17 绑玉转盘开始 #tagCMStartBindJadeWheel class tagCMStartBindJadeWheel(Structure): -- Gitblit v1.8.0