From 8a0a844c31126b274f268fe5333c19aef50dd0f8 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 11 十二月 2024 14:55:42 +0800
Subject: [PATCH] 10297 【越南】【英语】【砍树】【tqxbqy】轮回殿-服务端(轮回殿活动时间表增加配置轮回类型对应的CTGID跟商店类型)

---
 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 092117d..c1e1b01 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -38701,6 +38701,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):
@@ -38718,6 +38721,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):
@@ -38727,6 +38735,9 @@
         self.RoundMax = 0
         self.AwardCount = 0
         self.AwardList = list()
+        self.CTGIDCount = 0
+        self.CTGIDList = list()
+        self.ShopType = 0
         return
 
     def GetLength(self):
@@ -38738,6 +38749,9 @@
         length += 1
         for i in range(self.AwardCount):
             length += self.AwardList[i].GetLength()
+        length += 1
+        length += 2 * self.CTGIDCount
+        length += 2
 
         return length
 
@@ -38750,6 +38764,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):
@@ -38759,7 +38777,10 @@
                                 AwardTypeValue:%d,
                                 RoundMax:%d,
                                 AwardCount:%d,
-                                AwardList:%s
+                                AwardList:%s,
+                                CTGIDCount:%d,
+                                CTGIDList:%s,
+                                ShopType:%d
                                 '''\
                                 %(
                                 self.RoundType,
@@ -38767,7 +38788,10 @@
                                 self.AwardTypeValue,
                                 self.RoundMax,
                                 self.AwardCount,
-                                "..."
+                                "...",
+                                self.CTGIDCount,
+                                "...",
+                                self.ShopType
                                 )
         return DumpString
 

--
Gitblit v1.8.0