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 | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
index 2654c9c..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,
@@ -19725,8 +19732,7 @@
class tagSCRenameResult(Structure):
Head = tagHead()
- PlayerName = "" #(char PlayerName[33])//size = 14
- Result = 0 #(BYTE Result)//角色改名结果
+ PlayerName = "" #(char PlayerName[33])// 新名字
data = None
def __init__(self):
@@ -19739,7 +19745,6 @@
self.Clear()
_pos = self.Head.ReadData(_lpData, _pos)
self.PlayerName,_pos = CommFunc.ReadString(_lpData, _pos,33)
- self.Result,_pos = CommFunc.ReadBYTE(_lpData, _pos)
return _pos
def Clear(self):
@@ -19748,14 +19753,12 @@
self.Head.Cmd = 0xA9
self.Head.SubCmd = 0x21
self.PlayerName = ""
- self.Result = 0
return
def GetLength(self):
length = 0
length += self.Head.GetLength()
length += 33
- length += 1
return length
@@ -19763,19 +19766,16 @@
data = ''
data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
data = CommFunc.WriteString(data, 33, self.PlayerName)
- data = CommFunc.WriteBYTE(data, self.Result)
return data
def OutputString(self):
DumpString = '''
Head:%s,
- PlayerName:%s,
- Result:%d
+ PlayerName:%s
'''\
%(
self.Head.OutputString(),
- self.PlayerName,
- self.Result
+ self.PlayerName
)
return DumpString
--
Gitblit v1.8.0