From fc2b1c80a0c1a93030aacf5ba458d04f6179071f Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 13 十一月 2018 20:30:50 +0800 Subject: [PATCH] 2250 【1.2】队伍分线成员管理异常 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChGameToMapPyPack.py | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 60 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChGameToMapPyPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChGameToMapPyPack.py index c47d050..7aea670 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChGameToMapPyPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChGameToMapPyPack.py @@ -101,6 +101,66 @@ return DumpString #------------------------------------------------------ +# 05 03 玩家离开队伍 #tagGMPlayerLeaveTeam + +class tagGMPlayerLeaveTeam(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("PlayerID", c_int), + ("CopyMapID", c_int), + ("TeamID", c_int), + ] + + def __init__(self): + self.Clear() + self.Cmd = 0x05 + self.SubCmd = 0x03 + 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 = 0x05 + self.SubCmd = 0x03 + self.PlayerID = 0 + self.CopyMapID = 0 + self.TeamID = 0 + return + + def GetLength(self): + return sizeof(tagGMPlayerLeaveTeam) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// 05 03 玩家离开队伍 //tagGMPlayerLeaveTeam: + Cmd:%s, + SubCmd:%s, + PlayerID:%d, + CopyMapID:%d, + TeamID:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.PlayerID, + self.CopyMapID, + self.TeamID + ) + return DumpString + + +m_NAtagGMPlayerLeaveTeam=tagGMPlayerLeaveTeam() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGMPlayerLeaveTeam.Cmd,m_NAtagGMPlayerLeaveTeam.SubCmd))] = m_NAtagGMPlayerLeaveTeam + + +#------------------------------------------------------ # 05 02 队伍信息刷新 #tagGMTeamInfo class tagGMTeamMemInfo(Structure): -- Gitblit v1.8.0