From daedb61b798873f6fc475172583ad9f8c8b3408d Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 23 五月 2022 18:03:58 +0800 Subject: [PATCH] 9480 【BT6】【后端】炼体系统 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 56 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py index aaff9fe..14ebe55 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py @@ -19339,6 +19339,62 @@ #------------------------------------------------------ +# A3 55 炼体信息 #tagMCLianTiInfo + +class tagMCLianTiInfo(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("LianTiLV", c_ubyte), #炼体等级 + ("EatItemCount", c_int), #当前等级已吃丹个数 + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xA3 + 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 = 0xA3 + self.SubCmd = 0x55 + self.LianTiLV = 0 + self.EatItemCount = 0 + return + + def GetLength(self): + return sizeof(tagMCLianTiInfo) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// A3 55 炼体信息 //tagMCLianTiInfo: + Cmd:%s, + SubCmd:%s, + LianTiLV:%d, + EatItemCount:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.LianTiLV, + self.EatItemCount + ) + return DumpString + + +m_NAtagMCLianTiInfo=tagMCLianTiInfo() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCLianTiInfo.Cmd,m_NAtagMCLianTiInfo.SubCmd))] = m_NAtagMCLianTiInfo + + +#------------------------------------------------------ # A3 52 法宝等级信息 #tagMCMagicWeaponLVInfo class tagMCMagicWeaponInfo(Structure): -- Gitblit v1.8.0