From 549dc6df101d84e373bc751b8155cbb466d59707 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 16 十月 2025 14:44:53 +0800
Subject: [PATCH] 66 【公会】基础主体-服务端(搜索结果A523增加名次信息;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py | 116 ++++++++++++++++++++++++++++++++--------------------------
1 files changed, 64 insertions(+), 52 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
index 465a0be..7e7309c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -13270,6 +13270,7 @@
# A5 23 搜索家族返回列表 #tagMCFamilyViewList
class tagMCFamilyView(Structure):
+ Rank = 0 #(WORD Rank)//名次,从1开始
FamilyID = 0 #(DWORD FamilyID)//家族ID
FamilyNameLen = 0 #(BYTE FamilyNameLen)
FamilyName = "" #(String FamilyName)//size = FamilyNameLen
@@ -13293,6 +13294,7 @@
def ReadData(self, _lpData, _pos=0, _Len=0):
self.Clear()
+ self.Rank,_pos = CommFunc.ReadWORD(_lpData, _pos)
self.FamilyID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
self.FamilyNameLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
self.FamilyName,_pos = CommFunc.ReadString(_lpData, _pos,self.FamilyNameLen)
@@ -13311,6 +13313,7 @@
return _pos
def Clear(self):
+ self.Rank = 0
self.FamilyID = 0
self.FamilyNameLen = 0
self.FamilyName = ""
@@ -13330,6 +13333,7 @@
def GetLength(self):
length = 0
+ length += 2
length += 4
length += 1
length += len(self.FamilyName)
@@ -13350,6 +13354,7 @@
def GetBuffer(self):
data = ''
+ data = CommFunc.WriteWORD(data, self.Rank)
data = CommFunc.WriteDWORD(data, self.FamilyID)
data = CommFunc.WriteBYTE(data, self.FamilyNameLen)
data = CommFunc.WriteString(data, self.FamilyNameLen, self.FamilyName)
@@ -13369,6 +13374,7 @@
def OutputString(self):
DumpString = '''
+ Rank:%d,
FamilyID:%d,
FamilyNameLen:%d,
FamilyName:%s,
@@ -13386,6 +13392,7 @@
MemberCount:%d
'''\
%(
+ self.Rank,
self.FamilyID,
self.FamilyNameLen,
self.FamilyName,
@@ -19721,6 +19728,63 @@
#------------------------------------------------------
+# A9 21 角色改名结果 #tagSCRenameResult
+
+class tagSCRenameResult(Structure):
+ Head = tagHead()
+ PlayerName = "" #(char PlayerName[33])// 新名字
+ data = None
+
+ def __init__(self):
+ self.Clear()
+ self.Head.Cmd = 0xA9
+ self.Head.SubCmd = 0x21
+ return
+
+ def ReadData(self, _lpData, _pos=0, _Len=0):
+ self.Clear()
+ _pos = self.Head.ReadData(_lpData, _pos)
+ self.PlayerName,_pos = CommFunc.ReadString(_lpData, _pos,33)
+ return _pos
+
+ def Clear(self):
+ self.Head = tagHead()
+ self.Head.Clear()
+ self.Head.Cmd = 0xA9
+ self.Head.SubCmd = 0x21
+ self.PlayerName = ""
+ return
+
+ def GetLength(self):
+ length = 0
+ length += self.Head.GetLength()
+ length += 33
+
+ return length
+
+ def GetBuffer(self):
+ data = ''
+ data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
+ data = CommFunc.WriteString(data, 33, self.PlayerName)
+ return data
+
+ def OutputString(self):
+ DumpString = '''
+ Head:%s,
+ PlayerName:%s
+ '''\
+ %(
+ self.Head.OutputString(),
+ self.PlayerName
+ )
+ return DumpString
+
+
+m_NAtagSCRenameResult=tagSCRenameResult()
+ChNetPackDict[eval("0x%02x%02x"%(m_NAtagSCRenameResult.Head.Cmd,m_NAtagSCRenameResult.Head.SubCmd))] = m_NAtagSCRenameResult
+
+
+#------------------------------------------------------
# A9 06 商城全服购买次数通知 #tagGCStoreServerBuyCntInfo
class tagGCStoreServerBuyCnt(Structure):
@@ -19826,58 +19890,6 @@
m_NAtagGCStoreServerBuyCntInfo=tagGCStoreServerBuyCntInfo()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCStoreServerBuyCntInfo.Head.Cmd,m_NAtagGCStoreServerBuyCntInfo.Head.SubCmd))] = m_NAtagGCStoreServerBuyCntInfo
-
-
-#------------------------------------------------------
-#A9 21 角色改名结果 #tagUpdatePlayerNameResult
-
-class tagUpdatePlayerNameResult(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("Result", c_ubyte), #角色改名结果
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA9
- self.SubCmd = 0x21
- 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 = 0xA9
- self.SubCmd = 0x21
- self.Result = 0
- return
-
- def GetLength(self):
- return sizeof(tagUpdatePlayerNameResult)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''//A9 21 角色改名结果 //tagUpdatePlayerNameResult:
- Cmd:%s,
- SubCmd:%s,
- Result:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.Result
- )
- return DumpString
-
-
-m_NAtagUpdatePlayerNameResult=tagUpdatePlayerNameResult()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagUpdatePlayerNameResult.Cmd,m_NAtagUpdatePlayerNameResult.SubCmd))] = m_NAtagUpdatePlayerNameResult
#------------------------------------------------------
--
Gitblit v1.8.0