From 69be13fbdb796c5a6cdc49fe4ed358d22f1edcb1 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 19 七月 2024 11:20:42 +0800 Subject: [PATCH] 10215 10213 【越南】【主干】【港台】【砍树】古宝升星效果与古宝共鸣(去除古宝共鸣手动激活流程) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py | 108 ------------------------------------------------------ 1 files changed, 0 insertions(+), 108 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py index 5d17e1a..e4de1b3 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py @@ -23117,114 +23117,6 @@ #------------------------------------------------------ -# A3 CF 古宝共鸣信息 #tagMCGubaoResonanceInfo - -class tagMCGubaoResonance(Structure): - _pack_ = 1 - _fields_ = [ - ("ResonanceID", c_ushort), # 共鸣ID - ("ResonanceStar", 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.ResonanceID = 0 - self.ResonanceStar = 0 - return - - def GetLength(self): - return sizeof(tagMCGubaoResonance) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// A3 CF 古宝共鸣信息 //tagMCGubaoResonanceInfo: - ResonanceID:%d, - ResonanceStar:%d - '''\ - %( - self.ResonanceID, - self.ResonanceStar - ) - return DumpString - - -class tagMCGubaoResonanceInfo(Structure): - Head = tagHead() - Count = 0 #(BYTE Count) - ResonanceInfoList = list() #(vector<tagMCGubaoResonance> ResonanceInfoList) - data = None - - def __init__(self): - self.Clear() - self.Head.Cmd = 0xA3 - self.Head.SubCmd = 0xCF - return - - def ReadData(self, _lpData, _pos=0, _Len=0): - self.Clear() - _pos = self.Head.ReadData(_lpData, _pos) - self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos) - for i in range(self.Count): - temResonanceInfoList = tagMCGubaoResonance() - _pos = temResonanceInfoList.ReadData(_lpData, _pos) - self.ResonanceInfoList.append(temResonanceInfoList) - return _pos - - def Clear(self): - self.Head = tagHead() - self.Head.Clear() - self.Head.Cmd = 0xA3 - self.Head.SubCmd = 0xCF - self.Count = 0 - self.ResonanceInfoList = list() - return - - def GetLength(self): - length = 0 - length += self.Head.GetLength() - length += 1 - for i in range(self.Count): - length += self.ResonanceInfoList[i].GetLength() - - return length - - def GetBuffer(self): - data = '' - data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer()) - data = CommFunc.WriteBYTE(data, self.Count) - for i in range(self.Count): - data = CommFunc.WriteString(data, self.ResonanceInfoList[i].GetLength(), self.ResonanceInfoList[i].GetBuffer()) - return data - - def OutputString(self): - DumpString = ''' - Head:%s, - Count:%d, - ResonanceInfoList:%s - '''\ - %( - self.Head.OutputString(), - self.Count, - "..." - ) - return DumpString - - -m_NAtagMCGubaoResonanceInfo=tagMCGubaoResonanceInfo() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCGubaoResonanceInfo.Head.Cmd,m_NAtagMCGubaoResonanceInfo.Head.SubCmd))] = m_NAtagMCGubaoResonanceInfo - - -#------------------------------------------------------ # A3 28 历史累积充值奖励领取记录 #tagMCHistoryReChargeAwardRecord class tagMCHistoryReChargeAwardRecord(Structure): -- Gitblit v1.8.0