From 14c1220f82e00ffea6f2759e8ff11d99606220bb Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 14 十月 2021 14:48:11 +0800 Subject: [PATCH] 9300 【BT5】【主干】【后端】新增:法器进阶 --- 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 72b4c21..d7a20ed 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py @@ -16345,6 +16345,62 @@ #------------------------------------------------------ +# A3 54 法器信息 #tagMCFaQiInfo + +class tagMCFaQiInfo(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("LV", c_ubyte), #等阶 + ("EatItemCount", c_int), #当前阶已吃丹个数 + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xA3 + self.SubCmd = 0x54 + 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 = 0x54 + self.LV = 0 + self.EatItemCount = 0 + return + + def GetLength(self): + return sizeof(tagMCFaQiInfo) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// A3 54 法器信息 //tagMCFaQiInfo: + Cmd:%s, + SubCmd:%s, + LV:%d, + EatItemCount:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.LV, + self.EatItemCount + ) + return DumpString + + +m_NAtagMCFaQiInfo=tagMCFaQiInfo() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCFaQiInfo.Cmd,m_NAtagMCFaQiInfo.SubCmd))] = m_NAtagMCFaQiInfo + + +#------------------------------------------------------ #A3 0A 副本鼓舞信息通知 #tagMCFBEncourageInfo class tagMCFBEncourageCnt(Structure): -- Gitblit v1.8.0