From 36d2a039e8fc31fd212ed381d843fafc43aa054b Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 30 五月 2025 11:27:44 +0800 Subject: [PATCH] 16 卡牌服务端(删除旧版交易所、拍卖行、答题等部分不需要内容;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py | 168 -------------------------------------------------------- 1 files changed, 0 insertions(+), 168 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py index dfe7086..3a5a7e5 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py @@ -23693,62 +23693,6 @@ #------------------------------------------------------ -# A3 24 通知绑玉转盘结果 #tagMCBindJadeWheelResult - -class tagMCBindJadeWheelResult(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ("Index", c_ubyte), # 格子 - ("Cnt", c_ubyte), #今日已转次数 - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xA3 - self.SubCmd = 0x24 - 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 = 0xA3 - self.SubCmd = 0x24 - self.Index = 0 - self.Cnt = 0 - return - - def GetLength(self): - return sizeof(tagMCBindJadeWheelResult) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// A3 24 通知绑玉转盘结果 //tagMCBindJadeWheelResult: - Cmd:%s, - SubCmd:%s, - Index:%d, - Cnt:%d - '''\ - %( - self.Cmd, - self.SubCmd, - self.Index, - self.Cnt - ) - return DumpString - - -m_NAtagMCBindJadeWheelResult=tagMCBindJadeWheelResult() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCBindJadeWheelResult.Cmd,m_NAtagMCBindJadeWheelResult.SubCmd))] = m_NAtagMCBindJadeWheelResult - - -#------------------------------------------------------ #A3 B7 当日累计攻击boss次数 #tagMCBOSSAttactCnt class tagMCBossCntInfo(Structure): @@ -53812,58 +53756,6 @@ #------------------------------------------------------ -# AB 23 摇骰子奖励回包 #tagMCDiceAward - -class tagMCDiceAward(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ("AwardCnt", c_ubyte), # 太极数量 - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xAB - self.SubCmd = 0x23 - 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 = 0xAB - self.SubCmd = 0x23 - self.AwardCnt = 0 - return - - def GetLength(self): - return sizeof(tagMCDiceAward) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// AB 23 摇骰子奖励回包 //tagMCDiceAward: - Cmd:%s, - SubCmd:%s, - AwardCnt:%d - '''\ - %( - self.Cmd, - self.SubCmd, - self.AwardCnt - ) - return DumpString - - -m_NAtagMCDiceAward=tagMCDiceAward() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCDiceAward.Cmd,m_NAtagMCDiceAward.SubCmd))] = m_NAtagMCDiceAward - - -#------------------------------------------------------ # AB 25 节日红包信息 #tagMCFeastRedPackInfo class tagMCFeastRedPackInfo(Structure): @@ -54161,66 +54053,6 @@ m_NAtagMCRefineGiftInfo=tagMCRefineGiftInfo() ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCRefineGiftInfo.Cmd,m_NAtagMCRefineGiftInfo.SubCmd))] = m_NAtagMCRefineGiftInfo - - -#------------------------------------------------------ -# AB 22 摇骰子结果 #tagMCDiceExResult - -class tagMCDiceExResult(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ("ResultNum", c_int), # 骰子结果 - ("DiceType", c_ubyte), # 0-正常 1-改投 2-重置 - ("UseFreeCnt", c_ubyte), # 改投使用次数 - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xAB - self.SubCmd = 0x22 - 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 = 0xAB - self.SubCmd = 0x22 - self.ResultNum = 0 - self.DiceType = 0 - self.UseFreeCnt = 0 - return - - def GetLength(self): - return sizeof(tagMCDiceExResult) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// AB 22 摇骰子结果 //tagMCDiceExResult: - Cmd:%s, - SubCmd:%s, - ResultNum:%d, - DiceType:%d, - UseFreeCnt:%d - '''\ - %( - self.Cmd, - self.SubCmd, - self.ResultNum, - self.DiceType, - self.UseFreeCnt - ) - return DumpString - - -m_NAtagMCDiceExResult=tagMCDiceExResult() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCDiceExResult.Cmd,m_NAtagMCDiceExResult.SubCmd))] = m_NAtagMCDiceExResult #------------------------------------------------------ -- Gitblit v1.8.0