From c15c8f7eab589727de0195c40862e9afe08e890b Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 20 三月 2019 18:23:37 +0800 Subject: [PATCH] 6373 【后端】【2.0】删除无用功能代码、封包、配置(页游特惠活动相关) --- ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py | 384 ------------------------------------------------------ 1 files changed, 0 insertions(+), 384 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py index 4adb114..9c57157 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py @@ -1785,58 +1785,6 @@ #------------------------------------------------------ -# AD 01 查询特惠活动信息 #tagCGQueryTeHuiActivetyInfo - -class tagCGQueryTeHuiActivetyInfo(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ("ActivityType", c_ubyte), # 活动类型 - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xAD - 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 = 0xAD - self.SubCmd = 0x01 - self.ActivityType = 0 - return - - def GetLength(self): - return sizeof(tagCGQueryTeHuiActivetyInfo) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// AD 01 查询特惠活动信息 //tagCGQueryTeHuiActivetyInfo: - Cmd:%s, - SubCmd:%s, - ActivityType:%d - '''\ - %( - self.Cmd, - self.SubCmd, - self.ActivityType - ) - return DumpString - - -m_NAtagCGQueryTeHuiActivetyInfo=tagCGQueryTeHuiActivetyInfo() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGQueryTeHuiActivetyInfo.Cmd,m_NAtagCGQueryTeHuiActivetyInfo.SubCmd))] = m_NAtagCGQueryTeHuiActivetyInfo - - -#------------------------------------------------------ # AE 07 运镖时间倒计时结束 #tagCGTruckTimeEnd class tagCGTruckTimeEnd(Structure): @@ -3999,66 +3947,6 @@ #------------------------------------------------------ -# A2 08 购买自定义商店物品 #tagCMBuyShopItem - -class tagCMBuyShopItem(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ("ShopID", c_int), - ("ItemShopIndex", c_ushort), - ("BuyCount", c_ushort), #购买数量 - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xA2 - self.SubCmd = 0x08 - 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 = 0xA2 - self.SubCmd = 0x08 - self.ShopID = 0 - self.ItemShopIndex = 0 - self.BuyCount = 0 - return - - def GetLength(self): - return sizeof(tagCMBuyShopItem) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// A2 08 购买自定义商店物品 //tagCMBuyShopItem: - Cmd:%s, - SubCmd:%s, - ShopID:%d, - ItemShopIndex:%d, - BuyCount:%d - '''\ - %( - self.Cmd, - self.SubCmd, - self.ShopID, - self.ItemShopIndex, - self.BuyCount - ) - return DumpString - - -m_NAtagCMBuyShopItem=tagCMBuyShopItem() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMBuyShopItem.Cmd,m_NAtagCMBuyShopItem.SubCmd))] = m_NAtagCMBuyShopItem - - -#------------------------------------------------------ # A2 10 清除副本CD#tagCMClearFBCD class tagCMClearFBCD(Structure): @@ -5041,58 +4929,6 @@ #------------------------------------------------------ -# A2 07 请求自定义商店物品信息 #tagCMQueryShopItem - -class tagCMQueryShopItem(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ("ShopID", c_int), - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xA2 - 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 = 0xA2 - self.SubCmd = 0x07 - self.ShopID = 0 - return - - def GetLength(self): - return sizeof(tagCMQueryShopItem) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// A2 07 请求自定义商店物品信息 //tagCMQueryShopItem: - Cmd:%s, - SubCmd:%s, - ShopID:%d - '''\ - %( - self.Cmd, - self.SubCmd, - self.ShopID - ) - return DumpString - - -m_NAtagCMQueryShopItem=tagCMQueryShopItem() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMQueryShopItem.Cmd,m_NAtagCMQueryShopItem.SubCmd))] = m_NAtagCMQueryShopItem - - -#------------------------------------------------------ # A2 06 快速完成任务#tagCMQuickFinishMission class tagCMQuickFinishMission(Structure): @@ -5194,58 +5030,6 @@ m_NAtagCMRefreshMysticalShop=tagCMRefreshMysticalShop() ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMRefreshMysticalShop.Cmd,m_NAtagCMRefreshMysticalShop.SubCmd))] = m_NAtagCMRefreshMysticalShop - - -#------------------------------------------------------ -# A2 14 刷新定时神秘商店物品#tagCMRefreshShopItem - -class tagCMRefreshShopItem(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ("ShopID", c_int), - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xA2 - self.SubCmd = 0x14 - 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 = 0xA2 - self.SubCmd = 0x14 - self.ShopID = 0 - return - - def GetLength(self): - return sizeof(tagCMRefreshShopItem) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// A2 14 刷新定时神秘商店物品//tagCMRefreshShopItem: - Cmd:%s, - SubCmd:%s, - ShopID:%d - '''\ - %( - self.Cmd, - self.SubCmd, - self.ShopID - ) - return DumpString - - -m_NAtagCMRefreshShopItem=tagCMRefreshShopItem() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMRefreshShopItem.Cmd,m_NAtagCMRefreshShopItem.SubCmd))] = m_NAtagCMRefreshShopItem #------------------------------------------------------ @@ -12828,174 +12612,6 @@ m_NAtagCMFlashSaleAppointment=tagCMFlashSaleAppointment() ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMFlashSaleAppointment.Cmd,m_NAtagCMFlashSaleAppointment.SubCmd))] = m_NAtagCMFlashSaleAppointment - - -#------------------------------------------------------ -# AA 02 领取升阶功能特惠奖励 #tagCMGetClassUPDayAward - -class tagCMGetClassUPDayAward(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ("DayType", c_ubyte), # 升阶日类型 - ("ClassLV", c_ubyte), # 阶级 - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xAA - 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 = 0xAA - self.SubCmd = 0x02 - self.DayType = 0 - self.ClassLV = 0 - return - - def GetLength(self): - return sizeof(tagCMGetClassUPDayAward) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// AA 02 领取升阶功能特惠奖励 //tagCMGetClassUPDayAward: - Cmd:%s, - SubCmd:%s, - DayType:%d, - ClassLV:%d - '''\ - %( - self.Cmd, - self.SubCmd, - self.DayType, - self.ClassLV - ) - return DumpString - - -m_NAtagCMGetClassUPDayAward=tagCMGetClassUPDayAward() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGetClassUPDayAward.Cmd,m_NAtagCMGetClassUPDayAward.SubCmd))] = m_NAtagCMGetClassUPDayAward - - -#------------------------------------------------------ -# AA 04 领取消费奖励 #tagCMGetCostAward - -class tagCMGetCostAward(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ("ActionID", c_int), # 活动ID - ("Index", c_ubyte), # 索引 - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xAA - 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 = 0xAA - self.SubCmd = 0x04 - self.ActionID = 0 - self.Index = 0 - return - - def GetLength(self): - return sizeof(tagCMGetCostAward) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// AA 04 领取消费奖励 //tagCMGetCostAward: - Cmd:%s, - SubCmd:%s, - ActionID:%d, - Index:%d - '''\ - %( - self.Cmd, - self.SubCmd, - self.ActionID, - self.Index - ) - return DumpString - - -m_NAtagCMGetCostAward=tagCMGetCostAward() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGetCostAward.Cmd,m_NAtagCMGetCostAward.SubCmd))] = m_NAtagCMGetCostAward - - -#------------------------------------------------------ -# AA 03 领取充值特惠奖励 #tagCMGetRechargeTeHuiAward - -class tagCMGetRechargeTeHuiAward(Structure): - _pack_ = 1 - _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), - ("ActionID", c_int), # 活动ID - ("Index", c_ubyte), # 规则索引 - ] - - def __init__(self): - self.Clear() - self.Cmd = 0xAA - 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 = 0xAA - self.SubCmd = 0x03 - self.ActionID = 0 - self.Index = 0 - return - - def GetLength(self): - return sizeof(tagCMGetRechargeTeHuiAward) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// AA 03 领取充值特惠奖励 //tagCMGetRechargeTeHuiAward: - Cmd:%s, - SubCmd:%s, - ActionID:%d, - Index:%d - '''\ - %( - self.Cmd, - self.SubCmd, - self.ActionID, - self.Index - ) - return DumpString - - -m_NAtagCMGetRechargeTeHuiAward=tagCMGetRechargeTeHuiAward() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGetRechargeTeHuiAward.Cmd,m_NAtagCMGetRechargeTeHuiAward.SubCmd))] = m_NAtagCMGetRechargeTeHuiAward #------------------------------------------------------ -- Gitblit v1.8.0