From 37aa5270481da4755df79f4b1a100c1c5a36899a Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 11 四月 2025 16:56:42 +0800 Subject: [PATCH] 10367 【越南】【英语】【BT】【砍树】仙盟攻城战-服务端(优化仙盟充值协助支持配置关联的充值ID列表即商城类型;充值协助支持记录领取的成员明细;攻城战结束支持回收相关道具;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py | 28 ++++++++++++++++++++++++++-- 1 files changed, 26 insertions(+), 2 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py index f2c193d..26f9776 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py @@ -37737,6 +37737,9 @@ LimitLV = 0 #(WORD LimitLV)// 限制等级 AwardCount = 0 #(BYTE AwardCount) AwardInfoList = list() #(vector<tagMCActFamilyCTGAssistAward> AwardInfoList)// 互助奖励列表 + CTGIDCount = 0 #(BYTE CTGIDCount) + CTGIDList = list() #(vector<WORD> CTGIDList)// CTGID列表;总购买次数前端自己统计,直接取CTGID对应的累计购买次数累加 + ShopType = 0 #(WORD ShopType)// 开放商店类型 data = None def __init__(self): @@ -37758,6 +37761,11 @@ temAwardInfoList = tagMCActFamilyCTGAssistAward() _pos = temAwardInfoList.ReadData(_lpData, _pos) self.AwardInfoList.append(temAwardInfoList) + self.CTGIDCount,_pos = CommFunc.ReadBYTE(_lpData, _pos) + for i in range(self.CTGIDCount): + value,_pos=CommFunc.ReadWORD(_lpData,_pos) + self.CTGIDList.append(value) + self.ShopType,_pos = CommFunc.ReadWORD(_lpData, _pos) return _pos def Clear(self): @@ -37772,6 +37780,9 @@ self.LimitLV = 0 self.AwardCount = 0 self.AwardInfoList = list() + self.CTGIDCount = 0 + self.CTGIDList = list() + self.ShopType = 0 return def GetLength(self): @@ -37785,6 +37796,9 @@ length += 1 for i in range(self.AwardCount): length += self.AwardInfoList[i].GetLength() + length += 1 + length += 2 * self.CTGIDCount + length += 2 return length @@ -37799,6 +37813,10 @@ data = CommFunc.WriteBYTE(data, self.AwardCount) for i in range(self.AwardCount): data = CommFunc.WriteString(data, self.AwardInfoList[i].GetLength(), self.AwardInfoList[i].GetBuffer()) + data = CommFunc.WriteBYTE(data, self.CTGIDCount) + for i in range(self.CTGIDCount): + data = CommFunc.WriteWORD(data, self.CTGIDList[i]) + data = CommFunc.WriteWORD(data, self.ShopType) return data def OutputString(self): @@ -37810,7 +37828,10 @@ IsDayReset:%d, LimitLV:%d, AwardCount:%d, - AwardInfoList:%s + AwardInfoList:%s, + CTGIDCount:%d, + CTGIDList:%s, + ShopType:%d '''\ %( self.Head.OutputString(), @@ -37820,7 +37841,10 @@ self.IsDayReset, self.LimitLV, self.AwardCount, - "..." + "...", + self.CTGIDCount, + "...", + self.ShopType ) return DumpString -- Gitblit v1.8.0