From 378c281fc81dd9a136421503cc8cb267c0eaf995 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期日, 28 九月 2025 16:13:24 +0800 Subject: [PATCH] 16 卡牌服务端(删除副本鼓舞、副本buff;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py | 220 ------------------------------------------------------- 1 files changed, 0 insertions(+), 220 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py index 7cce16d..1bf9608 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py @@ -5370,114 +5370,6 @@ #------------------------------------------------------ -#A3 0A 副本鼓舞信息通知 #tagMCFBEncourageInfo - -class tagMCFBEncourageCnt(Structure): - _pack_ = 1 - _fields_ = [ - ("MoneyType", c_ubyte), # 金钱类型 - ("EncourageCnt", c_ubyte), # 当前鼓舞次数 - ] - - def __init__(self): - self.Clear() - 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.MoneyType = 0 - self.EncourageCnt = 0 - return - - def GetLength(self): - return sizeof(tagMCFBEncourageCnt) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''//A3 0A 副本鼓舞信息通知 //tagMCFBEncourageInfo: - MoneyType:%d, - EncourageCnt:%d - '''\ - %( - self.MoneyType, - self.EncourageCnt - ) - return DumpString - - -class tagMCFBEncourageInfo(Structure): - Head = tagHead() - Cnt = 0 #(BYTE Cnt)// - InfoList = list() #(vector<tagMCFBEncourageCnt> InfoList)// 次数信息 - data = None - - def __init__(self): - self.Clear() - self.Head.Cmd = 0xA3 - self.Head.SubCmd = 0x0A - return - - def ReadData(self, _lpData, _pos=0, _Len=0): - self.Clear() - _pos = self.Head.ReadData(_lpData, _pos) - self.Cnt,_pos = CommFunc.ReadBYTE(_lpData, _pos) - for i in range(self.Cnt): - temInfoList = tagMCFBEncourageCnt() - _pos = temInfoList.ReadData(_lpData, _pos) - self.InfoList.append(temInfoList) - return _pos - - def Clear(self): - self.Head = tagHead() - self.Head.Clear() - self.Head.Cmd = 0xA3 - self.Head.SubCmd = 0x0A - self.Cnt = 0 - self.InfoList = list() - return - - def GetLength(self): - length = 0 - length += self.Head.GetLength() - length += 1 - for i in range(self.Cnt): - length += self.InfoList[i].GetLength() - - return length - - def GetBuffer(self): - data = '' - data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer()) - data = CommFunc.WriteBYTE(data, self.Cnt) - for i in range(self.Cnt): - data = CommFunc.WriteString(data, self.InfoList[i].GetLength(), self.InfoList[i].GetBuffer()) - return data - - def OutputString(self): - DumpString = ''' - Head:%s, - Cnt:%d, - InfoList:%s - '''\ - %( - self.Head.OutputString(), - self.Cnt, - "..." - ) - return DumpString - - -m_NAtagMCFBEncourageInfo=tagMCFBEncourageInfo() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCFBEncourageInfo.Head.Cmd,m_NAtagMCFBEncourageInfo.Head.SubCmd))] = m_NAtagMCFBEncourageInfo - - -#------------------------------------------------------ #A3 04 玩家扫荡信息 #tagMCFBWipeOutData class tagMCFBData(Structure): @@ -39167,118 +39059,6 @@ m_NAtagMCAddXianyuanCoinMsg=tagMCAddXianyuanCoinMsg() ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCAddXianyuanCoinMsg.Head.Cmd,m_NAtagMCAddXianyuanCoinMsg.Head.SubCmd))] = m_NAtagMCAddXianyuanCoinMsg - - -#------------------------------------------------------ -# B2 15 副本买buff信息通知 #tagMCFBBuyBuffInfo - -class tagMCFBBuyBuffTime(Structure): - _pack_ = 1 - _fields_ = [ - ("MapID", c_int), - ("MoneyCnt", c_ushort), - ("BuyTime", c_int), - ] - - def __init__(self): - self.Clear() - 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.MapID = 0 - self.MoneyCnt = 0 - self.BuyTime = 0 - return - - def GetLength(self): - return sizeof(tagMCFBBuyBuffTime) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// B2 15 副本买buff信息通知 //tagMCFBBuyBuffInfo: - MapID:%d, - MoneyCnt:%d, - BuyTime:%d - '''\ - %( - self.MapID, - self.MoneyCnt, - self.BuyTime - ) - return DumpString - - -class tagMCFBBuyBuffInfo(Structure): - Head = tagHead() - Cnt = 0 #(BYTE Cnt) - InfoList = list() #(vector<tagMCFBBuyBuffTime> InfoList) - data = None - - def __init__(self): - self.Clear() - self.Head.Cmd = 0xB2 - self.Head.SubCmd = 0x15 - return - - def ReadData(self, _lpData, _pos=0, _Len=0): - self.Clear() - _pos = self.Head.ReadData(_lpData, _pos) - self.Cnt,_pos = CommFunc.ReadBYTE(_lpData, _pos) - for i in range(self.Cnt): - temInfoList = tagMCFBBuyBuffTime() - _pos = temInfoList.ReadData(_lpData, _pos) - self.InfoList.append(temInfoList) - return _pos - - def Clear(self): - self.Head = tagHead() - self.Head.Clear() - self.Head.Cmd = 0xB2 - self.Head.SubCmd = 0x15 - self.Cnt = 0 - self.InfoList = list() - return - - def GetLength(self): - length = 0 - length += self.Head.GetLength() - length += 1 - for i in range(self.Cnt): - length += self.InfoList[i].GetLength() - - return length - - def GetBuffer(self): - data = '' - data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer()) - data = CommFunc.WriteBYTE(data, self.Cnt) - for i in range(self.Cnt): - data = CommFunc.WriteString(data, self.InfoList[i].GetLength(), self.InfoList[i].GetBuffer()) - return data - - def OutputString(self): - DumpString = ''' - Head:%s, - Cnt:%d, - InfoList:%s - '''\ - %( - self.Head.OutputString(), - self.Cnt, - "..." - ) - return DumpString - - -m_NAtagMCFBBuyBuffInfo=tagMCFBBuyBuffInfo() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCFBBuyBuffInfo.Head.Cmd,m_NAtagMCFBBuyBuffInfo.Head.SubCmd))] = m_NAtagMCFBBuyBuffInfo #------------------------------------------------------ -- Gitblit v1.8.0