From 2a6a87337c128ce22014d16532c79486efb3290c Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期二, 08 一月 2019 19:14:47 +0800 Subject: [PATCH] 5768 【后端】【1.5】新增8-14天活动功能封包 --- ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py | 22 ++++++---------------- 1 files changed, 6 insertions(+), 16 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py index f374b04..1e6d0b0 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py @@ -23474,7 +23474,7 @@ class tagMCWeekPartyTaskInfo(Structure): _pack_ = 1 _fields_ = [ - ("ActionType", c_ushort), # 活动类别 + ("TemplateID", c_ushort), # 模板ID ("CurTimes", c_ushort), #已完成次数 ("GotTimes", c_ushort), #已领取次数 ] @@ -23489,7 +23489,7 @@ return _pos + self.GetLength() def Clear(self): - self.ActionType = 0 + self.TemplateID = 0 self.CurTimes = 0 self.GotTimes = 0 return @@ -23502,12 +23502,12 @@ def OutputString(self): DumpString = '''// AA 0B 周狂欢玩家活动信息 //tagMCWeekPartyPlayerInfo: - ActionType:%d, + TemplateID:%d, CurTimes:%d, GotTimes:%d '''\ %( - self.ActionType, + self.TemplateID, self.CurTimes, self.GotTimes ) @@ -23588,7 +23588,7 @@ class tagMCWeekPartyPlayerInfo(Structure): Head = tagHead() Count = 0 #(BYTE Count) - DayInfoList = list() #(vector<tagMCWeekPartyDayInfo> DayInfoList)//活动完成次数信息 + DayInfoList = list() #(vector<tagMCWeekPartyDayPlayerInfo> DayInfoList)//活动完成次数信息 data = None def __init__(self): @@ -23602,7 +23602,7 @@ _pos = self.Head.ReadData(_lpData, _pos) self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos) for i in range(self.Count): - temDayInfoList = tagMCWeekPartyDayInfo() + temDayInfoList = tagMCWeekPartyDayPlayerInfo() _pos = temDayInfoList.ReadData(_lpData, _pos) self.DayInfoList.append(temDayInfoList) return _pos @@ -25204,16 +25204,12 @@ class tagMCClothesCoatLVInfo(Structure): _pack_ = 1 _fields_ = [ - ("Cmd", c_ubyte), - ("SubCmd", c_ubyte), ("CoatIndex", c_int), #时装索引 ("CoatLV", c_ubyte), #时装等级 ] def __init__(self): self.Clear() - self.Cmd = 0xB1 - self.SubCmd = 0x02 return def ReadData(self, stringData, _pos=0, _len=0): @@ -25222,8 +25218,6 @@ return _pos + self.GetLength() def Clear(self): - self.Cmd = 0xB1 - self.SubCmd = 0x02 self.CoatIndex = 0 self.CoatLV = 0 return @@ -25236,14 +25230,10 @@ def OutputString(self): DumpString = '''// B1 02 玩家时装皮肤激活状态 //tagMCClothesCoatSkinState: - Cmd:%s, - SubCmd:%s, CoatIndex:%d, CoatLV:%d '''\ %( - self.Cmd, - self.SubCmd, self.CoatIndex, self.CoatLV ) -- Gitblit v1.8.0