From b7df31c585b6d3be25aa618c682996427ce7a40b Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 12 四月 2019 17:13:12 +0800 Subject: [PATCH] 6459 【后端】【2.0】缥缈仙域开发单(增加自定义副本相关封包) --- ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py | 160 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 160 insertions(+), 0 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py index c1f129a..e4a4ae7 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py @@ -3999,6 +3999,54 @@ #------------------------------------------------------ +# A2 33 前端退出自定义场景 #tagCMClientExitCustomScene + +class tagCMClientExitCustomScene(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xA2 + self.SubCmd = 0x33 + 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 = 0xA2 + self.SubCmd = 0x33 + return + + def GetLength(self): + return sizeof(tagCMClientExitCustomScene) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// A2 33 前端退出自定义场景 //tagCMClientExitCustomScene: + Cmd:%s, + SubCmd:%s + '''\ + %( + self.Cmd, + self.SubCmd + ) + return DumpString + + +m_NAtagCMClientExitCustomScene=tagCMClientExitCustomScene() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMClientExitCustomScene.Cmd,m_NAtagCMClientExitCustomScene.SubCmd))] = m_NAtagCMClientExitCustomScene + + +#------------------------------------------------------ # A2 31 前端开始自定义场景 #tagCMClientStartCustomScene class tagCMClientStartCustomScene(Structure): @@ -13435,6 +13483,62 @@ #------------------------------------------------------ +# B1 09 结算自定义副本奖励 #tagCMGiveCustomFBPrize + +class tagCMGiveCustomFBPrize(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("MapID", c_int), + ("FuncLineID", c_ushort), + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xB1 + self.SubCmd = 0x09 + 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 = 0xB1 + self.SubCmd = 0x09 + self.MapID = 0 + self.FuncLineID = 0 + return + + def GetLength(self): + return sizeof(tagCMGiveCustomFBPrize) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// B1 09 结算自定义副本奖励 //tagCMGiveCustomFBPrize: + Cmd:%s, + SubCmd:%s, + MapID:%d, + FuncLineID:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.MapID, + self.FuncLineID + ) + return DumpString + + +m_NAtagCMGiveCustomFBPrize=tagCMGiveCustomFBPrize() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGiveCustomFBPrize.Cmd,m_NAtagCMGiveCustomFBPrize.SubCmd))] = m_NAtagCMGiveCustomFBPrize + + +#------------------------------------------------------ # B1 06 助战召唤 #tagCMHelpBattleCall class tagCMHelpBattleCall(Structure): @@ -13651,6 +13755,62 @@ #------------------------------------------------------ +# B1 08 刷新自定义副本奖励 #tagCMRefreshCustomFBPrize + +class tagCMRefreshCustomFBPrize(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("MapID", c_int), + ("FuncLineID", c_ushort), + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xB1 + self.SubCmd = 0x08 + 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 = 0xB1 + self.SubCmd = 0x08 + self.MapID = 0 + self.FuncLineID = 0 + return + + def GetLength(self): + return sizeof(tagCMRefreshCustomFBPrize) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// B1 08 刷新自定义副本奖励 //tagCMRefreshCustomFBPrize: + Cmd:%s, + SubCmd:%s, + MapID:%d, + FuncLineID:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.MapID, + self.FuncLineID + ) + return DumpString + + +m_NAtagCMRefreshCustomFBPrize=tagCMRefreshCustomFBPrize() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMRefreshCustomFBPrize.Cmd,m_NAtagCMRefreshCustomFBPrize.SubCmd))] = m_NAtagCMRefreshCustomFBPrize + + +#------------------------------------------------------ # B1 03 设置封魔坛多倍击杀 #tagCMSetFMTDouble class tagCMSetFMTDouble(Structure): -- Gitblit v1.8.0