From 771a8e3afe51b7e15a7d77f06cf44c92e9acaf23 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期四, 15 十一月 2018 15:54:39 +0800 Subject: [PATCH] 4817 子 【开发】【1.2】【1.3】Boss之家疲劳值配置去除后Boss复活无法复活Boss之家Boss问题修复(封包修改) --- ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py | 64 +++++++++++++++++++++++++++++++- 1 files changed, 62 insertions(+), 2 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py index 4c5a166..a462748 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py @@ -4755,6 +4755,58 @@ #------------------------------------------------------ +# A2 30 设置聊天气泡框 #tagCMSetChatBubbleBox + +class tagCMSetChatBubbleBox(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("BubbleBoxType", c_ubyte), #气泡框类型 + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xA2 + self.SubCmd = 0x30 + 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 = 0x30 + self.BubbleBoxType = 0 + return + + def GetLength(self): + return sizeof(tagCMSetChatBubbleBox) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// A2 30 设置聊天气泡框 //tagCMSetChatBubbleBox: + Cmd:%s, + SubCmd:%s, + BubbleBoxType:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.BubbleBoxType + ) + return DumpString + + +m_NAtagCMSetChatBubbleBox=tagCMSetChatBubbleBox() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMSetChatBubbleBox.Cmd,m_NAtagCMSetChatBubbleBox.SubCmd))] = m_NAtagCMSetChatBubbleBox + + +#------------------------------------------------------ # A2 22 设置引导成功 #tagCMSetGuideOK class tagCMSetGuideOK(Structure): @@ -8858,6 +8910,8 @@ ("SubCmd", c_ubyte), ("WeaponType", c_int), # 神兵类型 ("ItemID", c_int), #消耗的物品ID + ("ItemCount", c_ubyte), #消耗个数,默认1 + ("IsAutoBuy", c_ubyte), #是否自动购买,默认0 ] def __init__(self): @@ -8876,6 +8930,8 @@ self.SubCmd = 0x55 self.WeaponType = 0 self.ItemID = 0 + self.ItemCount = 0 + self.IsAutoBuy = 0 return def GetLength(self): @@ -8889,13 +8945,17 @@ Cmd:%s, SubCmd:%s, WeaponType:%d, - ItemID:%d + ItemID:%d, + ItemCount:%d, + IsAutoBuy:%d '''\ %( self.Cmd, self.SubCmd, self.WeaponType, - self.ItemID + self.ItemID, + self.ItemCount, + self.IsAutoBuy ) return DumpString -- Gitblit v1.8.0