From b961d09f3d47773bc0ae6faaeda880ef4791419f Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期二, 12 三月 2019 09:53:37 +0800
Subject: [PATCH] 6307 【后端】【2.0】多套装备开发单(强化配置修改)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py |  235 +++++++++++++++++++---------------------------------------
 1 files changed, 77 insertions(+), 158 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
index f1d2171..2ca66e3 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -899,6 +899,58 @@
 
 
 #------------------------------------------------------
+# A4 0C 多仙盟boss活动信息 #tagGCAllFamilyBossInfo
+
+class  tagGCAllFamilyBossInfo(Structure):
+    _pack_ = 1
+    _fields_ = [
+                  ("Cmd", c_ubyte),
+                  ("SubCmd", c_ubyte),
+                  ("IsEnd", c_ubyte),    # 是否已结束
+                  ]
+
+    def __init__(self):
+        self.Clear()
+        self.Cmd = 0xA4
+        self.SubCmd = 0x0C
+        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 = 0xA4
+        self.SubCmd = 0x0C
+        self.IsEnd = 0
+        return
+
+    def GetLength(self):
+        return sizeof(tagGCAllFamilyBossInfo)
+
+    def GetBuffer(self):
+        return string_at(addressof(self), self.GetLength())
+
+    def OutputString(self):
+        DumpString = '''// A4 0C 多仙盟boss活动信息 //tagGCAllFamilyBossInfo:
+                                Cmd:%s,
+                                SubCmd:%s,
+                                IsEnd:%d
+                                '''\
+                                %(
+                                self.Cmd,
+                                self.SubCmd,
+                                self.IsEnd
+                                )
+        return DumpString
+
+
+m_NAtagGCAllFamilyBossInfo=tagGCAllFamilyBossInfo()
+ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCAllFamilyBossInfo.Cmd,m_NAtagGCAllFamilyBossInfo.SubCmd))] = m_NAtagGCAllFamilyBossInfo
+
+
+#------------------------------------------------------
 # A4 0A 假仙盟信息 #tagGCFakeFamilyInfo
 
 class  tagGCFakeFamilyInfo(Structure):
@@ -13890,127 +13942,6 @@
 
 
 #------------------------------------------------------
-# A3 09 通知玩家部位套装等级 #tagMCEquipPartSuiteLVInfo
-
-class  tagMCEquipPartSuiteLV(Structure):
-    EquipIndex = 0    #(BYTE EquipIndex)
-    Len = 0    #(WORD Len)//长度
-    SuiteLVInfo = ""    #(String SuiteLVInfo)//{套装类型:等级}
-    data = None
-
-    def __init__(self):
-        self.Clear()
-        return
-
-    def ReadData(self, _lpData, _pos=0, _Len=0):
-        self.Clear()
-        self.EquipIndex,_pos = CommFunc.ReadBYTE(_lpData, _pos)
-        self.Len,_pos = CommFunc.ReadWORD(_lpData, _pos)
-        self.SuiteLVInfo,_pos = CommFunc.ReadString(_lpData, _pos,self.Len)
-        return _pos
-
-    def Clear(self):
-        self.EquipIndex = 0
-        self.Len = 0
-        self.SuiteLVInfo = ""
-        return
-
-    def GetLength(self):
-        length = 0
-        length += 1
-        length += 2
-        length += len(self.SuiteLVInfo)
-
-        return length
-
-    def GetBuffer(self):
-        data = ''
-        data = CommFunc.WriteBYTE(data, self.EquipIndex)
-        data = CommFunc.WriteWORD(data, self.Len)
-        data = CommFunc.WriteString(data, self.Len, self.SuiteLVInfo)
-        return data
-
-    def OutputString(self):
-        DumpString = '''
-                                EquipIndex:%d,
-                                Len:%d,
-                                SuiteLVInfo:%s
-                                '''\
-                                %(
-                                self.EquipIndex,
-                                self.Len,
-                                self.SuiteLVInfo
-                                )
-        return DumpString
-
-
-class  tagMCEquipPartSuiteLVInfo(Structure):
-    Head = tagHead()
-    Count = 0    #(BYTE Count)// 信息个数
-    InfoList = list()    #(vector<tagMCEquipPartSuiteLV> InfoList)// 信息列表
-    data = None
-
-    def __init__(self):
-        self.Clear()
-        self.Head.Cmd = 0xA3
-        self.Head.SubCmd = 0x09
-        return
-
-    def ReadData(self, _lpData, _pos=0, _Len=0):
-        self.Clear()
-        _pos = self.Head.ReadData(_lpData, _pos)
-        self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
-        for i in range(self.Count):
-            temInfoList = tagMCEquipPartSuiteLV()
-            _pos = temInfoList.ReadData(_lpData, _pos)
-            self.InfoList.append(temInfoList)
-        return _pos
-
-    def Clear(self):
-        self.Head = tagHead()
-        self.Head.Clear()
-        self.Head.Cmd = 0xA3
-        self.Head.SubCmd = 0x09
-        self.Count = 0
-        self.InfoList = list()
-        return
-
-    def GetLength(self):
-        length = 0
-        length += self.Head.GetLength()
-        length += 1
-        for i in range(self.Count):
-            length += self.InfoList[i].GetLength()
-
-        return length
-
-    def GetBuffer(self):
-        data = ''
-        data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
-        data = CommFunc.WriteBYTE(data, self.Count)
-        for i in range(self.Count):
-            data = CommFunc.WriteString(data, self.InfoList[i].GetLength(), self.InfoList[i].GetBuffer())
-        return data
-
-    def OutputString(self):
-        DumpString = '''
-                                Head:%s,
-                                Count:%d,
-                                InfoList:%s
-                                '''\
-                                %(
-                                self.Head.OutputString(),
-                                self.Count,
-                                "..."
-                                )
-        return DumpString
-
-
-m_NAtagMCEquipPartSuiteLVInfo=tagMCEquipPartSuiteLVInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCEquipPartSuiteLVInfo.Head.Cmd,m_NAtagMCEquipPartSuiteLVInfo.Head.SubCmd))] = m_NAtagMCEquipPartSuiteLVInfo
-
-
-#------------------------------------------------------
 # A3 BB 装备位洗练属性信息 #tagMCEquipPartXLAttrInfo
 
 class  tagMCEquipPartXLAttrValue(Structure):
@@ -15487,15 +15418,16 @@
 
 
 #------------------------------------------------------
-# A3 B3 装备部位星级信息 #tagMCEquipPartStarLVInfo
+# A3 B3 装备部位强化信息 #tagMCEquipPartPlusInfo
 
-class  tagMCEquipPartStarLV(Structure):
+class  tagMCEquipPartPlusLV(Structure):
     _pack_ = 1
     _fields_ = [
                   ("PackType", c_ubyte),    
                   ("EquipIndex", c_ubyte),    
                   ("EquipPartStarLV", c_ushort),    
                   ("Proficiency", c_int),    
+                  ("EvolveLV", c_ubyte),    
                   ]
 
     def __init__(self):
@@ -15512,34 +15444,37 @@
         self.EquipIndex = 0
         self.EquipPartStarLV = 0
         self.Proficiency = 0
+        self.EvolveLV = 0
         return
 
     def GetLength(self):
-        return sizeof(tagMCEquipPartStarLV)
+        return sizeof(tagMCEquipPartPlusLV)
 
     def GetBuffer(self):
         return string_at(addressof(self), self.GetLength())
 
     def OutputString(self):
-        DumpString = '''// A3 B3 装备部位星级信息 //tagMCEquipPartStarLVInfo:
+        DumpString = '''// A3 B3 装备部位强化信息 //tagMCEquipPartPlusInfo:
                                 PackType:%d,
                                 EquipIndex:%d,
                                 EquipPartStarLV:%d,
-                                Proficiency:%d
+                                Proficiency:%d,
+                                EvolveLV:%d
                                 '''\
                                 %(
                                 self.PackType,
                                 self.EquipIndex,
                                 self.EquipPartStarLV,
-                                self.Proficiency
+                                self.Proficiency,
+                                self.EvolveLV
                                 )
         return DumpString
 
 
-class  tagMCEquipPartStarLVInfo(Structure):
+class  tagMCEquipPartPlusInfo(Structure):
     Head = tagHead()
     Count = 0    #(BYTE Count)// 信息个数
-    InfoList = list()    #(vector<tagMCEquipPartStarLV> InfoList)// 信息列表
+    InfoList = list()    #(vector<tagMCEquipPartPlusLV> InfoList)// 信息列表
     data = None
 
     def __init__(self):
@@ -15553,7 +15488,7 @@
         _pos = self.Head.ReadData(_lpData, _pos)
         self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
         for i in range(self.Count):
-            temInfoList = tagMCEquipPartStarLV()
+            temInfoList = tagMCEquipPartPlusLV()
             _pos = temInfoList.ReadData(_lpData, _pos)
             self.InfoList.append(temInfoList)
         return _pos
@@ -15598,8 +15533,8 @@
         return DumpString
 
 
-m_NAtagMCEquipPartStarLVInfo=tagMCEquipPartStarLVInfo()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCEquipPartStarLVInfo.Head.Cmd,m_NAtagMCEquipPartStarLVInfo.Head.SubCmd))] = m_NAtagMCEquipPartStarLVInfo
+m_NAtagMCEquipPartPlusInfo=tagMCEquipPartPlusInfo()
+ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCEquipPartPlusInfo.Head.Cmd,m_NAtagMCEquipPartPlusInfo.Head.SubCmd))] = m_NAtagMCEquipPartPlusInfo
 
 
 #------------------------------------------------------
@@ -17502,18 +17437,14 @@
 
 
 #------------------------------------------------------
-# A3 11 通知玩家境界渡劫是否开启 #tagMCSyncRealmFBIsOpen
+# A3 11 通知玩家境界信息 #tagMCSyncRealmInfo
 
-class  tagMCSyncRealmFBIsOpen(Structure):
+class  tagMCSyncRealmInfo(Structure):
     _pack_ = 1
     _fields_ = [
                   ("Cmd", c_ubyte),
                   ("SubCmd", c_ubyte),
-                  ("IsOpen", c_ubyte),    #是否开启
-                  ("SitAllTime", c_ushort),    #打坐总时间秒
-                  ("SitRemainTime", c_int),    #开始打坐前剩余时间秒
-                  ("SitStartTime", c_int),    #开始打坐时间
-                  ("LastEnterTime", c_int),    #上次进入渡劫副本时间
+                  ("IsPass", c_ubyte),    #是否通关副本
                   ]
 
     def __init__(self):
@@ -17530,43 +17461,31 @@
     def Clear(self):
         self.Cmd = 0xA3
         self.SubCmd = 0x11
-        self.IsOpen = 0
-        self.SitAllTime = 0
-        self.SitRemainTime = 0
-        self.SitStartTime = 0
-        self.LastEnterTime = 0
+        self.IsPass = 0
         return
 
     def GetLength(self):
-        return sizeof(tagMCSyncRealmFBIsOpen)
+        return sizeof(tagMCSyncRealmInfo)
 
     def GetBuffer(self):
         return string_at(addressof(self), self.GetLength())
 
     def OutputString(self):
-        DumpString = '''// A3 11 通知玩家境界渡劫是否开启 //tagMCSyncRealmFBIsOpen:
+        DumpString = '''// A3 11 通知玩家境界信息 //tagMCSyncRealmInfo:
                                 Cmd:%s,
                                 SubCmd:%s,
-                                IsOpen:%d,
-                                SitAllTime:%d,
-                                SitRemainTime:%d,
-                                SitStartTime:%d,
-                                LastEnterTime:%d
+                                IsPass:%d
                                 '''\
                                 %(
                                 self.Cmd,
                                 self.SubCmd,
-                                self.IsOpen,
-                                self.SitAllTime,
-                                self.SitRemainTime,
-                                self.SitStartTime,
-                                self.LastEnterTime
+                                self.IsPass
                                 )
         return DumpString
 
 
-m_NAtagMCSyncRealmFBIsOpen=tagMCSyncRealmFBIsOpen()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCSyncRealmFBIsOpen.Cmd,m_NAtagMCSyncRealmFBIsOpen.SubCmd))] = m_NAtagMCSyncRealmFBIsOpen
+m_NAtagMCSyncRealmInfo=tagMCSyncRealmInfo()
+ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCSyncRealmInfo.Cmd,m_NAtagMCSyncRealmInfo.SubCmd))] = m_NAtagMCSyncRealmInfo
 
 
 #------------------------------------------------------

--
Gitblit v1.8.0