From b3c6d36f5ae851f09a3c2e73494ff19956b06fb0 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 11 四月 2025 16:56:14 +0800 Subject: [PATCH] 10367 【越南】【英语】【BT】【砍树】仙盟攻城战-服务端(跨服仙盟支持;后台查询区服仙盟支持;活动时间流程支持;攻城战主活动功能完整流程:公示、分组、战备、战斗、榜单、竞猜、领奖等;) --- ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py b/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py index 809da18..d28397e 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/PyGameDataStruct.py @@ -813,8 +813,8 @@ class tagDBCrossBillboard(Structure): _pack_ = 1 _fields_ = [ - ('GroupValue1', ctypes.c_ubyte), - ('GroupValue2', ctypes.c_ubyte), + ('GroupValue1', ctypes.c_ulong), + ('GroupValue2', ctypes.c_ulong), ('BillboardType', ctypes.c_ubyte), ('ID', ctypes.c_ulong), ('ID2', ctypes.c_ulong), @@ -870,8 +870,8 @@ if len(buf) < pos + self.getLength(): return -1 self.clear() - self.GroupValue1, pos = CommFunc.ReadBYTE(buf, pos) - self.GroupValue2, pos = CommFunc.ReadBYTE(buf, pos) + self.GroupValue1, pos = CommFunc.ReadDWORD(buf, pos) + self.GroupValue2, pos = CommFunc.ReadDWORD(buf, pos) self.BillboardType, pos = CommFunc.ReadBYTE(buf, pos) self.ID, pos = CommFunc.ReadDWORD(buf, pos) self.ID2, pos = CommFunc.ReadDWORD(buf, pos) @@ -896,8 +896,8 @@ def getBuffer(self): buf = '' - buf = CommFunc.WriteBYTE(buf, self.GroupValue1) - buf = CommFunc.WriteBYTE(buf, self.GroupValue2) + buf = CommFunc.WriteDWORD(buf, self.GroupValue1) + buf = CommFunc.WriteDWORD(buf, self.GroupValue2) buf = CommFunc.WriteBYTE(buf, self.BillboardType) buf = CommFunc.WriteDWORD(buf, self.ID) buf = CommFunc.WriteDWORD(buf, self.ID2) @@ -921,8 +921,8 @@ def getLength(self): length = 0 - length += sizeof(ctypes.c_ubyte) - length += sizeof(ctypes.c_ubyte) + length += sizeof(ctypes.c_ulong) + length += sizeof(ctypes.c_ulong) length += sizeof(ctypes.c_ubyte) length += sizeof(ctypes.c_ulong) length += sizeof(ctypes.c_ulong) -- Gitblit v1.8.0