From de17a057f7a93fe8c9ccb04dd44023b4c8ed1161 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 26 五月 2025 18:35:49 +0800 Subject: [PATCH] 16 卡牌服务端(仙盟珍宝阁支持;仙盟行为数据查询通知;去除特殊时间5点过天、过周、过月逻辑,统一保留0点触发;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 56 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py index 012c6e3..715a43d 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py @@ -15849,6 +15849,62 @@ #------------------------------------------------------ +# A6 17 查询家族行为信息 #tagCMQueryFamilyAction + +class tagCMQueryFamilyAction(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("ActionType", c_ubyte), # 行为类型 + ("FamilyID", c_int), # 家族ID,发0默认自己家族 + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xA6 + self.SubCmd = 0x17 + 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 = 0x17 + self.ActionType = 0 + self.FamilyID = 0 + return + + def GetLength(self): + return sizeof(tagCMQueryFamilyAction) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// A6 17 查询家族行为信息 //tagCMQueryFamilyAction: + Cmd:%s, + SubCmd:%s, + ActionType:%d, + FamilyID:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.ActionType, + self.FamilyID + ) + return DumpString + + +m_NAtagCMQueryFamilyAction=tagCMQueryFamilyAction() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMQueryFamilyAction.Cmd,m_NAtagCMQueryFamilyAction.SubCmd))] = m_NAtagCMQueryFamilyAction + + +#------------------------------------------------------ # A6 02 申请加入家族#tagCMRequesJoinFamily class tagCMRequesJoinFamily(Structure): -- Gitblit v1.8.0