From 4a5b10c5ca95f49cf3700619e1033da645c9de89 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期五, 23 十一月 2018 11:37:37 +0800 Subject: [PATCH] 4969 上古战场退出副本清除buff --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 116 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 114 insertions(+), 2 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py index 4c5a166..09463a3 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/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): @@ -8849,6 +8901,58 @@ #------------------------------------------------------ +# A5 56 神兵激活 #tagCMGodWeaponActivate + +class tagCMGodWeaponActivate(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("WeaponType", c_int), # 神兵类型 + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xA5 + self.SubCmd = 0x56 + 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 = 0xA5 + self.SubCmd = 0x56 + self.WeaponType = 0 + return + + def GetLength(self): + return sizeof(tagCMGodWeaponActivate) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// A5 56 神兵激活 //tagCMGodWeaponActivate: + Cmd:%s, + SubCmd:%s, + WeaponType:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.WeaponType + ) + return DumpString + + +m_NAtagCMGodWeaponActivate=tagCMGodWeaponActivate() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGodWeaponActivate.Cmd,m_NAtagCMGodWeaponActivate.SubCmd))] = m_NAtagCMGodWeaponActivate + + +#------------------------------------------------------ # A5 55 神兵升级 #tagCMGodWeaponPlus class tagCMGodWeaponPlus(Structure): @@ -8858,6 +8962,8 @@ ("SubCmd", c_ubyte), ("WeaponType", c_int), # 神兵类型 ("ItemID", c_int), #消耗的物品ID + ("ItemCount", c_ubyte), #消耗个数,默认1 + ("IsAutoBuy", c_ubyte), #是否自动购买,默认0 ] def __init__(self): @@ -8876,6 +8982,8 @@ self.SubCmd = 0x55 self.WeaponType = 0 self.ItemID = 0 + self.ItemCount = 0 + self.IsAutoBuy = 0 return def GetLength(self): @@ -8889,13 +8997,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