From ea6258d69e06fd1eba3292673a1ad064b9983232 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 16 七月 2024 16:50:22 +0800 Subject: [PATCH] 10215 10213 【越南】【主干】【港台】【砍树】古宝升星效果与古宝共鸣(增加古宝星级属性;增加古宝共鸣;增加boss最终伤害属性;) --- ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py index cb3d74e..4366091 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py @@ -18925,6 +18925,58 @@ #------------------------------------------------------ +# B2 15 古宝共鸣激活 #tagCMGubaoResonanceActivate + +class tagCMGubaoResonanceActivate(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("ResonanceID", c_ushort), # 共鸣ID + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xB2 + self.SubCmd = 0x15 + 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 = 0xB2 + self.SubCmd = 0x15 + self.ResonanceID = 0 + return + + def GetLength(self): + return sizeof(tagCMGubaoResonanceActivate) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// B2 15 古宝共鸣激活 //tagCMGubaoResonanceActivate: + Cmd:%s, + SubCmd:%s, + ResonanceID:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.ResonanceID + ) + return DumpString + + +m_NAtagCMGubaoResonanceActivate=tagCMGubaoResonanceActivate() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGubaoResonanceActivate.Cmd,m_NAtagCMGubaoResonanceActivate.SubCmd))] = m_NAtagCMGubaoResonanceActivate + + +#------------------------------------------------------ # B2 17 古宝升星 #tagCMGubaoStarUp class tagCMGubaoStarUp(Structure): -- Gitblit v1.8.0