From 3432541b467d53ffe4ed3872c734e76638e30df8 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 24 十月 2025 17:58:12 +0800
Subject: [PATCH] 302 【公会】BOSS讨伐-服务端
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 228 +++++++++++++--------------------------------------------
1 files changed, 52 insertions(+), 176 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
index 31f66a2..4d3eaf0 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
@@ -6567,122 +6567,6 @@
#------------------------------------------------------
-# A5 56 神兵激活 #tagCMGodWeaponActivate
-
-class tagCMGodWeaponActivate(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("WeaponType", c_int), # 神兵类型
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA5
- self.SubCmd = 0x56
- 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 = 0x56
- self.WeaponType = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMGodWeaponActivate)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A5 56 神兵激活 //tagCMGodWeaponActivate:
- Cmd:%s,
- SubCmd:%s,
- WeaponType:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.WeaponType
- )
- return DumpString
-
-
-m_NAtagCMGodWeaponActivate=tagCMGodWeaponActivate()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGodWeaponActivate.Cmd,m_NAtagCMGodWeaponActivate.SubCmd))] = m_NAtagCMGodWeaponActivate
-
-
-#------------------------------------------------------
-# A5 55 神兵升级 #tagCMGodWeaponPlus
-
-class tagCMGodWeaponPlus(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("WeaponType", c_int), # 神兵类型
- ("ItemID", c_int), #消耗的物品ID
- ("ItemCount", c_ubyte), #消耗个数,默认1
- ("IsAutoBuy", c_ubyte), #是否自动购买,默认0
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA5
- self.SubCmd = 0x55
- 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 = 0x55
- self.WeaponType = 0
- self.ItemID = 0
- self.ItemCount = 0
- self.IsAutoBuy = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMGodWeaponPlus)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A5 55 神兵升级 //tagCMGodWeaponPlus:
- Cmd:%s,
- SubCmd:%s,
- WeaponType:%d,
- ItemID:%d,
- ItemCount:%d,
- IsAutoBuy:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.WeaponType,
- self.ItemID,
- self.ItemCount,
- self.IsAutoBuy
- )
- return DumpString
-
-
-m_NAtagCMGodWeaponPlus=tagCMGodWeaponPlus()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGodWeaponPlus.Cmd,m_NAtagCMGodWeaponPlus.SubCmd))] = m_NAtagCMGodWeaponPlus
-
-
-#------------------------------------------------------
# A5 40 投资理财 #tagCMGoldInvest
class tagCMGoldInvest(Structure):
@@ -8243,66 +8127,6 @@
#------------------------------------------------------
-# A6 15 传功操作 #tagCMChuangongOP
-
-class tagCMChuangongOP(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("OPType", c_ubyte), # 操作类型:1-邀请;2-回应;3-领奖;
- ("PlayerID", c_int), # 目标玩家ID;回应时为邀请方玩家ID
- ("OPData", c_ubyte), # 操作数据,可选:回应时为是否同意
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA6
- self.SubCmd = 0x15
- 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 = 0xA6
- self.SubCmd = 0x15
- self.OPType = 0
- self.PlayerID = 0
- self.OPData = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMChuangongOP)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A6 15 传功操作 //tagCMChuangongOP:
- Cmd:%s,
- SubCmd:%s,
- OPType:%d,
- PlayerID:%d,
- OPData:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.OPType,
- self.PlayerID,
- self.OPData
- )
- return DumpString
-
-
-m_NAtagCMChuangongOP=tagCMChuangongOP()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMChuangongOP.Cmd,m_NAtagCMChuangongOP.SubCmd))] = m_NAtagCMChuangongOP
-
-
-#------------------------------------------------------
# A6 11 家族改名 #tagCMRenameFamily
class tagCMRenameFamily(Structure):
@@ -8549,6 +8373,58 @@
#------------------------------------------------------
+# A6 13 公会讨伐 #tagCSFamilyTaofaOP
+
+class tagCSFamilyTaofaOP(Structure):
+ _pack_ = 1
+ _fields_ = [
+ ("Cmd", c_ubyte),
+ ("SubCmd", c_ubyte),
+ ("OpType", c_ubyte), # 操作:0-斩杀攻击;1-布阵
+ ]
+
+ def __init__(self):
+ self.Clear()
+ self.Cmd = 0xA6
+ self.SubCmd = 0x13
+ 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 = 0xA6
+ self.SubCmd = 0x13
+ self.OpType = 0
+ return
+
+ def GetLength(self):
+ return sizeof(tagCSFamilyTaofaOP)
+
+ def GetBuffer(self):
+ return string_at(addressof(self), self.GetLength())
+
+ def OutputString(self):
+ DumpString = '''// A6 13 公会讨伐 //tagCSFamilyTaofaOP:
+ Cmd:%s,
+ SubCmd:%s,
+ OpType:%d
+ '''\
+ %(
+ self.Cmd,
+ self.SubCmd,
+ self.OpType
+ )
+ return DumpString
+
+
+m_NAtagCSFamilyTaofaOP=tagCSFamilyTaofaOP()
+ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCSFamilyTaofaOP.Cmd,m_NAtagCSFamilyTaofaOP.SubCmd))] = m_NAtagCSFamilyTaofaOP
+
+
+#------------------------------------------------------
# A6 26 请求家族成员列表 #tagCMGetFamilyInfo
class tagCMGetFamilyInfo(Structure):
--
Gitblit v1.8.0