From 7060867c004c3312f409a320623b40b42186f9af Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 20 十月 2025 09:29:43 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(A922同步等级信息)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 197 -------------------------------------------------
1 files changed, 0 insertions(+), 197 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
index 0d42cf8..7b7a484 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
@@ -6574,62 +6574,6 @@
#------------------------------------------------------
-# A5 42 领取成就奖励 #tagMCGetSuccessAward
-
-class tagMCGetSuccessAward(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("SuccID", c_int), #成就ID
- ("IsPassport", c_ubyte), #是否通行证奖励
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA5
- self.SubCmd = 0x42
- 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 = 0xA5
- self.SubCmd = 0x42
- self.SuccID = 0
- self.IsPassport = 0
- return
-
- def GetLength(self):
- return sizeof(tagMCGetSuccessAward)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A5 42 领取成就奖励 //tagMCGetSuccessAward:
- Cmd:%s,
- SubCmd:%s,
- SuccID:%d,
- IsPassport:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.SuccID,
- self.IsPassport
- )
- return DumpString
-
-
-m_NAtagMCGetSuccessAward=tagMCGetSuccessAward()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCGetSuccessAward.Cmd,m_NAtagMCGetSuccessAward.SubCmd))] = m_NAtagMCGetSuccessAward
-
-
-#------------------------------------------------------
# A5 44 通天令领取等级奖励 #tagCMGetTongTianLVAward
class tagCMGetTongTianLVAward(Structure):
@@ -9208,91 +9152,6 @@
#------------------------------------------------------
-# A6 08 发家族红包 #tagCMSendFamilyRedPacket
-
-class tagCMSendFamilyRedPacket(Structure):
- Head = tagHead()
- RedPacketID = 0 #(DWORD RedPacketID)// 红包ID,没有发0
- PacketCnt = 0 #(WORD PacketCnt)// 红包数量
- MoneyNum = 0 #(WORD MoneyNum)//金钱数量
- Wish = "" #(char Wish[33])//祝福语
- IsAnonymous = 0 #(BYTE IsAnonymous)//是否匿名
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xA6
- self.Head.SubCmd = 0x08
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.RedPacketID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.PacketCnt,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.MoneyNum,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.Wish,_pos = CommFunc.ReadString(_lpData, _pos,33)
- self.IsAnonymous,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xA6
- self.Head.SubCmd = 0x08
- self.RedPacketID = 0
- self.PacketCnt = 0
- self.MoneyNum = 0
- self.Wish = ""
- self.IsAnonymous = 0
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 4
- length += 2
- length += 2
- length += 33
- length += 1
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteDWORD(data, self.RedPacketID)
- data = CommFunc.WriteWORD(data, self.PacketCnt)
- data = CommFunc.WriteWORD(data, self.MoneyNum)
- data = CommFunc.WriteString(data, 33, self.Wish)
- data = CommFunc.WriteBYTE(data, self.IsAnonymous)
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- RedPacketID:%d,
- PacketCnt:%d,
- MoneyNum:%d,
- Wish:%s,
- IsAnonymous:%d
- '''\
- %(
- self.Head.OutputString(),
- self.RedPacketID,
- self.PacketCnt,
- self.MoneyNum,
- self.Wish,
- self.IsAnonymous
- )
- return DumpString
-
-
-m_NAtagCMSendFamilyRedPacket=tagCMSendFamilyRedPacket()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMSendFamilyRedPacket.Head.Cmd,m_NAtagCMSendFamilyRedPacket.Head.SubCmd))] = m_NAtagCMSendFamilyRedPacket
-
-
-#------------------------------------------------------
# A6 20 搜索家族列表 #tagCMViewFamilyPage
class tagCMViewFamilyPage(Structure):
@@ -11445,62 +11304,6 @@
m_NAtagCMStartLuckyTreasure=tagCMStartLuckyTreasure()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMStartLuckyTreasure.Cmd,m_NAtagCMStartLuckyTreasure.SubCmd))] = m_NAtagCMStartLuckyTreasure
-
-
-#------------------------------------------------------
-# AB 12 抢红包 #tagCMGrabFamilyRedPacket
-
-class tagCMGrabFamilyRedPacket(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("RedPaketID", c_int), # 红包ID
- ("GetWay", c_ubyte), #获得途径
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xAB
- self.SubCmd = 0x12
- 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 = 0x12
- self.RedPaketID = 0
- self.GetWay = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMGrabFamilyRedPacket)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AB 12 抢红包 //tagCMGrabFamilyRedPacket:
- Cmd:%s,
- SubCmd:%s,
- RedPaketID:%d,
- GetWay:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.RedPaketID,
- self.GetWay
- )
- return DumpString
-
-
-m_NAtagCMGrabFamilyRedPacket=tagCMGrabFamilyRedPacket()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGrabFamilyRedPacket.Cmd,m_NAtagCMGrabFamilyRedPacket.SubCmd))] = m_NAtagCMGrabFamilyRedPacket
#------------------------------------------------------
--
Gitblit v1.8.0