From 58be2080468a8387a5e7d9b52419a5b3a8952e3d Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 11 十二月 2024 14:59:35 +0800 Subject: [PATCH] 10297 【越南】【英语】【砍树】【tqxbqy】轮回殿-服务端(轮回殿活动时间表增加配置轮回类型对应的CTGID跟商店类型) --- ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py | 28 ++++++++++++++++++++++++++-- 1 files changed, 26 insertions(+), 2 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py index 6d0ddc0..d7ff35e 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py @@ -38680,6 +38680,9 @@ RoundMax = 0 #(BYTE RoundMax)// 最大可循环轮次 AwardCount = 0 #(BYTE AwardCount) AwardList = list() #(vector<tagMCActLunhuidianAward> AwardList)// 每轮奖励列表 + CTGIDCount = 0 #(BYTE CTGIDCount) + CTGIDList = list() #(vector<WORD> CTGIDList)// CTGID列表 + ShopType = 0 #(WORD ShopType)// 开放商店类型,可能为0不开放 data = None def __init__(self): @@ -38697,6 +38700,11 @@ temAwardList = tagMCActLunhuidianAward() _pos = temAwardList.ReadData(_lpData, _pos) self.AwardList.append(temAwardList) + 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): @@ -38706,6 +38714,9 @@ self.RoundMax = 0 self.AwardCount = 0 self.AwardList = list() + self.CTGIDCount = 0 + self.CTGIDList = list() + self.ShopType = 0 return def GetLength(self): @@ -38717,6 +38728,9 @@ length += 1 for i in range(self.AwardCount): length += self.AwardList[i].GetLength() + length += 1 + length += 2 * self.CTGIDCount + length += 2 return length @@ -38729,6 +38743,10 @@ data = CommFunc.WriteBYTE(data, self.AwardCount) for i in range(self.AwardCount): data = CommFunc.WriteString(data, self.AwardList[i].GetLength(), self.AwardList[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): @@ -38738,7 +38756,10 @@ AwardTypeValue:%d, RoundMax:%d, AwardCount:%d, - AwardList:%s + AwardList:%s, + CTGIDCount:%d, + CTGIDList:%s, + ShopType:%d '''\ %( self.RoundType, @@ -38746,7 +38767,10 @@ self.AwardTypeValue, self.RoundMax, self.AwardCount, - "..." + "...", + self.CTGIDCount, + "...", + self.ShopType ) return DumpString -- Gitblit v1.8.0