From 320a417a53a57a9cb7d7759f430afe5f6e6399a6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 29 一月 2019 16:28:30 +0800
Subject: [PATCH] 6087 【后端】【1.5.200】春节红包雨活动(额度特效增加红包类型参数)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py |   70 ++++++++++++++++++++++++++++++++--
 1 files changed, 65 insertions(+), 5 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
index f1c93ec..a4a0e09 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -4719,7 +4719,7 @@
 
 class  tagGCFeastRedPacketDay(Structure):
     RedPacketCount = 0    #(BYTE RedPacketCount)
-    RedPacketIDList = list()    #(vector<WORD> RedPacketIDList)// 当日定时发放的系统红包ID列表
+    RedPacketIDList = list()    #(vector<WORD> RedPacketIDList)// 当日定时发放的系统红包表ID列表
     data = None
 
     def __init__(self):
@@ -22732,7 +22732,7 @@
 class  tagMCFeastWeekPartyPlayerInfo(Structure):
     Head = tagHead()
     Count = 0    #(BYTE Count)
-    DayInfoList = list()    #(vector<tagMCWeekPartyDayPlayerInfo> DayInfoList)//活动完成次数信息
+    DayInfoList = list()    #(vector<tagMCFeastWeekPartyDayPlayerInfo> DayInfoList)//活动完成次数信息
     data = None
 
     def __init__(self):
@@ -22746,7 +22746,7 @@
         _pos = self.Head.ReadData(_lpData, _pos)
         self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
         for i in range(self.Count):
-            temDayInfoList = tagMCWeekPartyDayPlayerInfo()
+            temDayInfoList = tagMCFeastWeekPartyDayPlayerInfo()
             _pos = temDayInfoList.ReadData(_lpData, _pos)
             self.DayInfoList.append(temDayInfoList)
         return _pos
@@ -25906,6 +25906,62 @@
 
 
 #------------------------------------------------------
+# AB 25 节日红包信息 #tagMCFeastRedPackInfo
+
+class  tagMCFeastRedPackInfo(Structure):
+    _pack_ = 1
+    _fields_ = [
+                  ("Cmd", c_ubyte),
+                  ("SubCmd", c_ubyte),
+                  ("MoneyNum", c_int),    # 累积抢到多少钱
+                  ("GrabCnt", c_ushort),    # 已抢红包次数
+                  ]
+
+    def __init__(self):
+        self.Clear()
+        self.Cmd = 0xAB
+        self.SubCmd = 0x25
+        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 = 0xAB
+        self.SubCmd = 0x25
+        self.MoneyNum = 0
+        self.GrabCnt = 0
+        return
+
+    def GetLength(self):
+        return sizeof(tagMCFeastRedPackInfo)
+
+    def GetBuffer(self):
+        return string_at(addressof(self), self.GetLength())
+
+    def OutputString(self):
+        DumpString = '''// AB 25 节日红包信息 //tagMCFeastRedPackInfo:
+                                Cmd:%s,
+                                SubCmd:%s,
+                                MoneyNum:%d,
+                                GrabCnt:%d
+                                '''\
+                                %(
+                                self.Cmd,
+                                self.SubCmd,
+                                self.MoneyNum,
+                                self.GrabCnt
+                                )
+        return DumpString
+
+
+m_NAtagMCFeastRedPackInfo=tagMCFeastRedPackInfo()
+ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCFeastRedPackInfo.Cmd,m_NAtagMCFeastRedPackInfo.SubCmd))] = m_NAtagMCFeastRedPackInfo
+
+
+#------------------------------------------------------
 # AB 17 开服活动奖励状态 #tagMCOpenServerCampaignAwardList
 
 class  tagMCOpenServerCampaignAward(Structure):
@@ -28449,6 +28505,7 @@
                   ("Cmd", c_ubyte),
                   ("SubCmd", c_ubyte),
                   ("Floor", c_int),    # 已通关层
+                  ("LastFloor", c_int),    # 上次挑战层
                   ]
 
     def __init__(self):
@@ -28466,6 +28523,7 @@
         self.Cmd = 0xB2
         self.SubCmd = 0x13
         self.Floor = 0
+        self.LastFloor = 0
         return
 
     def GetLength(self):
@@ -28478,12 +28536,14 @@
         DumpString = '''// B2 13 诛仙塔通关层数 //tagMCZhuXianTowerInfo:
                                 Cmd:%s,
                                 SubCmd:%s,
-                                Floor:%d
+                                Floor:%d,
+                                LastFloor:%d
                                 '''\
                                 %(
                                 self.Cmd,
                                 self.SubCmd,
-                                self.Floor
+                                self.Floor,
+                                self.LastFloor
                                 )
         return DumpString
 

--
Gitblit v1.8.0