From 167357e8425d0dc12f41ed5fdfd4d95f2c2a5aaf Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 29 五月 2025 19:19:20 +0800 Subject: [PATCH] 16 卡牌服务端(删除旧版xml任务、镖车等不需要内容) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 360 ------------------------------------------------------------ 1 files changed, 0 insertions(+), 360 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py index a8b7ed3..b3da437 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py @@ -2175,54 +2175,6 @@ #------------------------------------------------------ -# AE 07 运镖时间倒计时结束 #tagCGTruckTimeEnd - -class tagCGTruckTimeEnd(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xAE - self.SubCmd = 0x07 - 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 = 0xAE - self.SubCmd = 0x07 - return - - def GetLength(self): - return sizeof(tagCGTruckTimeEnd) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// AE 07 运镖时间倒计时结束 //tagCGTruckTimeEnd: - Cmd:%s, - SubCmd:%s - '''\ - %( - self.Cmd, - self.SubCmd - ) - return DumpString - - -m_NAtagCGTruckTimeEnd=tagCGTruckTimeEnd() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGTruckTimeEnd.Cmd,m_NAtagCGTruckTimeEnd.SubCmd))] = m_NAtagCGTruckTimeEnd - - -#------------------------------------------------------ # B0 13 取消协助Boss #tagCGCancelAssistBoss class tagCGCancelAssistBoss(Structure): @@ -18390,318 +18342,6 @@ m_NAtagCMDiceEx=tagCMDiceEx() ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMDiceEx.Cmd,m_NAtagCMDiceEx.SubCmd))] = m_NAtagCMDiceEx - - -#------------------------------------------------------ -# AE 05 自动运镖 #tagPyAutoTruck - -class tagPyAutoTruck(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ("Type", c_ubyte), - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xAE - self.SubCmd = 0x05 - 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 = 0xAE - self.SubCmd = 0x05 - self.Type = 0 - return - - def GetLength(self): - return sizeof(tagPyAutoTruck) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// AE 05 自动运镖 //tagPyAutoTruck: - Cmd:%s, - SubCmd:%s, - Type:%d - '''\ - %( - self.Cmd, - self.SubCmd, - self.Type - ) - return DumpString - - -m_NAtagPyAutoTruck=tagPyAutoTruck() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagPyAutoTruck.Cmd,m_NAtagPyAutoTruck.SubCmd))] = m_NAtagPyAutoTruck - - -#------------------------------------------------------ -# AE 02 购买镖车等级#tagPyBuyTruckLV - -class tagPyBuyTruckLV(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ("TruckLV", c_ubyte), #镖车等级 - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xAE - self.SubCmd = 0x02 - 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 = 0xAE - self.SubCmd = 0x02 - self.TruckLV = 0 - return - - def GetLength(self): - return sizeof(tagPyBuyTruckLV) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// AE 02 购买镖车等级//tagPyBuyTruckLV: - Cmd:%s, - SubCmd:%s, - TruckLV:%d - '''\ - %( - self.Cmd, - self.SubCmd, - self.TruckLV - ) - return DumpString - - -m_NAtagPyBuyTruckLV=tagPyBuyTruckLV() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagPyBuyTruckLV.Cmd,m_NAtagPyBuyTruckLV.SubCmd))] = m_NAtagPyBuyTruckLV - - -#------------------------------------------------------ -# AE 06 立即完成运镖 #tagPyOverTruck - -class tagPyOverTruck(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xAE - self.SubCmd = 0x06 - 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 = 0xAE - self.SubCmd = 0x06 - return - - def GetLength(self): - return sizeof(tagPyOverTruck) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// AE 06 立即完成运镖 //tagPyOverTruck: - Cmd:%s, - SubCmd:%s - '''\ - %( - self.Cmd, - self.SubCmd - ) - return DumpString - - -m_NAtagPyOverTruck=tagPyOverTruck() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagPyOverTruck.Cmd,m_NAtagPyOverTruck.SubCmd))] = m_NAtagPyOverTruck - - -#------------------------------------------------------ -# AE 04 查询劫镖次数#tagPyQueryDestroyTruckCnt - -class tagPyQueryDestroyTruckCnt(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xAE - self.SubCmd = 0x04 - 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 = 0xAE - self.SubCmd = 0x04 - return - - def GetLength(self): - return sizeof(tagPyQueryDestroyTruckCnt) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// AE 04 查询劫镖次数//tagPyQueryDestroyTruckCnt: - Cmd:%s, - SubCmd:%s - '''\ - %( - self.Cmd, - self.SubCmd - ) - return DumpString - - -m_NAtagPyQueryDestroyTruckCnt=tagPyQueryDestroyTruckCnt() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagPyQueryDestroyTruckCnt.Cmd,m_NAtagPyQueryDestroyTruckCnt.SubCmd))] = m_NAtagPyQueryDestroyTruckCnt - - -#------------------------------------------------------ -# AE 03 查询镖车等级#tagPyQueryTruckLV - -class tagPyQueryTruckLV(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xAE - 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 = 0xAE - self.SubCmd = 0x03 - return - - def GetLength(self): - return sizeof(tagPyQueryTruckLV) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// AE 03 查询镖车等级//tagPyQueryTruckLV: - Cmd:%s, - SubCmd:%s - '''\ - %( - self.Cmd, - self.SubCmd - ) - return DumpString - - -m_NAtagPyQueryTruckLV=tagPyQueryTruckLV() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagPyQueryTruckLV.Cmd,m_NAtagPyQueryTruckLV.SubCmd))] = m_NAtagPyQueryTruckLV - - -#------------------------------------------------------ -# AE 01 刷新镖车等级#tagPyRefurbishTruckLV - -class tagPyRefurbishTruckLV(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ("CostType", c_ubyte), #消耗类型: 0-道具; 1-货币 - ("MoneyType", c_ubyte), #花费金钱类型 - ("ItemID", c_int), #使用的道具ID - ("IsAutoBuy", c_ubyte), #道具刷新时是否自动购买; 0-否;1-是 - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xAE - self.SubCmd = 0x01 - 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 = 0xAE - self.SubCmd = 0x01 - self.CostType = 0 - self.MoneyType = 0 - self.ItemID = 0 - self.IsAutoBuy = 0 - return - - def GetLength(self): - return sizeof(tagPyRefurbishTruckLV) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// AE 01 刷新镖车等级//tagPyRefurbishTruckLV: - Cmd:%s, - SubCmd:%s, - CostType:%d, - MoneyType:%d, - ItemID:%d, - IsAutoBuy:%d - '''\ - %( - self.Cmd, - self.SubCmd, - self.CostType, - self.MoneyType, - self.ItemID, - self.IsAutoBuy - ) - return DumpString - - -m_NAtagPyRefurbishTruckLV=tagPyRefurbishTruckLV() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagPyRefurbishTruckLV.Cmd,m_NAtagPyRefurbishTruckLV.SubCmd))] = m_NAtagPyRefurbishTruckLV #------------------------------------------------------ -- Gitblit v1.8.0