From 28389cb71e12d4bec085559355d54dd72ad43e36 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期三, 05 十二月 2018 00:26:32 +0800 Subject: [PATCH] 4999 【后端】【1.3.100】血量百分比不管有没被超过,哪怕一击秒杀也会强制触发,pvp强制触发 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py | 1126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 1,110 insertions(+), 16 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py index 7cb7891..431d95b 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py @@ -5197,6 +5197,7 @@ EndtDate = "" #(char EndtDate[10])// 结束日期 y-m-d Multiple = 0 #(BYTE Multiple)// 倍数 LimitLV = 0 #(WORD LimitLV)// 限制等级 + LimitPoint = 0 #(DWORD LimitPoint)// 限制获得修行点 data = None def __init__(self): @@ -5212,6 +5213,7 @@ self.EndtDate,_pos = CommFunc.ReadString(_lpData, _pos,10) self.Multiple,_pos = CommFunc.ReadBYTE(_lpData, _pos) self.LimitLV,_pos = CommFunc.ReadWORD(_lpData, _pos) + self.LimitPoint,_pos = CommFunc.ReadDWORD(_lpData, _pos) return _pos def Clear(self): @@ -5223,6 +5225,7 @@ self.EndtDate = "" self.Multiple = 0 self.LimitLV = 0 + self.LimitPoint = 0 return def GetLength(self): @@ -5232,6 +5235,7 @@ length += 10 length += 1 length += 2 + length += 4 return length @@ -5242,6 +5246,7 @@ data = CommFunc.WriteString(data, 10, self.EndtDate) data = CommFunc.WriteBYTE(data, self.Multiple) data = CommFunc.WriteWORD(data, self.LimitLV) + data = CommFunc.WriteDWORD(data, self.LimitPoint) return data def OutputString(self): @@ -5250,14 +5255,16 @@ StartDate:%s, EndtDate:%s, Multiple:%d, - LimitLV:%d + LimitLV:%d, + LimitPoint:%d '''\ %( self.Head.OutputString(), self.StartDate, self.EndtDate, self.Multiple, - self.LimitLV + self.LimitLV, + self.LimitPoint ) return DumpString @@ -10506,8 +10513,8 @@ _pack_ = 1 _fields_ = [ ("BossType", c_ubyte), #编号类型0-世界boss 1-boss之家 - ("KillCnt", c_ubyte), #击杀次数 - ("ItemAddCnt", c_ubyte), #物品增加次数 + ("KillCnt", c_int), #击杀次数 + ("ItemAddCnt", c_int), #物品增加次数 ] def __init__(self): @@ -11089,6 +11096,7 @@ ("RealmPoint", c_int), # 可领取修行点 ("StageIndex", c_ubyte), # 当前阶段索引 ("AwardRecord", c_int), # 领奖记录 按位存储 + ("ExtraPoint", c_int), # 多倍活动获得的额外修行点 ] def __init__(self): @@ -11109,6 +11117,7 @@ self.RealmPoint = 0 self.StageIndex = 0 self.AwardRecord = 0 + self.ExtraPoint = 0 return def GetLength(self): @@ -11124,7 +11133,8 @@ CurValue:%d, RealmPoint:%d, StageIndex:%d, - AwardRecord:%d + AwardRecord:%d, + ExtraPoint:%d '''\ %( self.Cmd, @@ -11132,7 +11142,8 @@ self.CurValue, self.RealmPoint, self.StageIndex, - self.AwardRecord + self.AwardRecord, + self.ExtraPoint ) return DumpString @@ -12705,6 +12716,7 @@ ("LV", c_ubyte), ("Exp", c_int), ("State", c_ubyte), #是否点击法宝认主 + ("FBPassLV", c_ubyte), #副本关卡 ] def __init__(self): @@ -12721,6 +12733,7 @@ self.LV = 0 self.Exp = 0 self.State = 0 + self.FBPassLV = 0 return def GetLength(self): @@ -12734,13 +12747,15 @@ MWID:%d, LV:%d, Exp:%d, - State:%d + State:%d, + FBPassLV:%d '''\ %( self.MWID, self.LV, self.Exp, - self.State + self.State, + self.FBPassLV ) return DumpString @@ -16785,7 +16800,6 @@ _fields_ = [ ("Cmd", c_ubyte), ("SubCmd", c_ubyte), - ("UseBoxID", c_ubyte), # 当前使用的气泡框ID ("BoxState", c_int), # 按二进制位存储代表是否已开启,暂支持31位,以后有需要再加 ] @@ -16803,7 +16817,6 @@ def Clear(self): self.Cmd = 0xA7 self.SubCmd = 0x17 - self.UseBoxID = 0 self.BoxState = 0 return @@ -16817,13 +16830,11 @@ DumpString = '''// A7 17 聊天气泡框状态 //tagMCChatBubbleBoxState: Cmd:%s, SubCmd:%s, - UseBoxID:%d, BoxState:%d '''\ %( self.Cmd, self.SubCmd, - self.UseBoxID, self.BoxState ) return DumpString @@ -18652,6 +18663,114 @@ #------------------------------------------------------ +# A8 06 通知神秘限购商品时间 #tagMCMysticalShopTimeInfo + +class tagMCMysticalShopTime(Structure): + _pack_ = 1 + _fields_ = [ + ("GoodsID", c_int), # 商品ID + ("StartTime", c_int), # 开卖时间 + ] + + def __init__(self): + self.Clear() + 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.GoodsID = 0 + self.StartTime = 0 + return + + def GetLength(self): + return sizeof(tagMCMysticalShopTime) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// A8 06 通知神秘限购商品时间 //tagMCMysticalShopTimeInfo: + GoodsID:%d, + StartTime:%d + '''\ + %( + self.GoodsID, + self.StartTime + ) + return DumpString + + +class tagMCMysticalShopTimeInfo(Structure): + Head = tagHead() + Count = 0 #(WORD Count)// 商品数 + ShopTimeList = list() #(vector<tagMCMysticalShopTime> ShopTimeList)// 商品开卖信息 + data = None + + def __init__(self): + self.Clear() + self.Head.Cmd = 0xA8 + self.Head.SubCmd = 0x06 + return + + def ReadData(self, _lpData, _pos=0, _Len=0): + self.Clear() + _pos = self.Head.ReadData(_lpData, _pos) + self.Count,_pos = CommFunc.ReadWORD(_lpData, _pos) + for i in range(self.Count): + temShopTimeList = tagMCMysticalShopTime() + _pos = temShopTimeList.ReadData(_lpData, _pos) + self.ShopTimeList.append(temShopTimeList) + return _pos + + def Clear(self): + self.Head = tagHead() + self.Head.Clear() + self.Head.Cmd = 0xA8 + self.Head.SubCmd = 0x06 + self.Count = 0 + self.ShopTimeList = list() + return + + def GetLength(self): + length = 0 + length += self.Head.GetLength() + length += 2 + for i in range(self.Count): + length += self.ShopTimeList[i].GetLength() + + return length + + def GetBuffer(self): + data = '' + data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer()) + data = CommFunc.WriteWORD(data, self.Count) + for i in range(self.Count): + data = CommFunc.WriteString(data, self.ShopTimeList[i].GetLength(), self.ShopTimeList[i].GetBuffer()) + return data + + def OutputString(self): + DumpString = ''' + Head:%s, + Count:%d, + ShopTimeList:%s + '''\ + %( + self.Head.OutputString(), + self.Count, + "..." + ) + return DumpString + + +m_NAtagMCMysticalShopTimeInfo=tagMCMysticalShopTimeInfo() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCMysticalShopTimeInfo.Head.Cmd,m_NAtagMCMysticalShopTimeInfo.Head.SubCmd))] = m_NAtagMCMysticalShopTimeInfo + + +#------------------------------------------------------ # A8 10 通知获得物品 #tagMCNotifyUseItemGetItem class tagMCNotifyUseItemGetItem(Structure): @@ -19294,6 +19413,260 @@ #------------------------------------------------------ +# AA 1D 累计充值活动信息 #tagMCActTotalRechargeInfo + +class tagMCTotalRechargeAwardItem(Structure): + _pack_ = 1 + _fields_ = [ + ("ItemID", c_int), + ("ItemCount", c_ushort), + ("IsBind", c_ubyte), + ] + + def __init__(self): + self.Clear() + 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.ItemID = 0 + self.ItemCount = 0 + self.IsBind = 0 + return + + def GetLength(self): + return sizeof(tagMCTotalRechargeAwardItem) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// AA 1D 累计充值活动信息 //tagMCActTotalRechargeInfo: + ItemID:%d, + ItemCount:%d, + IsBind:%d + '''\ + %( + self.ItemID, + self.ItemCount, + self.IsBind + ) + return DumpString + + +class tagMCTotalRechargeAward(Structure): + AwardIndex = 0 #(BYTE AwardIndex)// 奖励索引 0~31 + NeedGold = 0 #(DWORD NeedGold)// 所需仙玉数 + AwardItemCount = 0 #(BYTE AwardItemCount)// 奖励物品数 + AwardItem = list() #(vector<tagMCTotalRechargeAwardItem> AwardItem)// 奖励物品信息 + data = None + + def __init__(self): + self.Clear() + return + + def ReadData(self, _lpData, _pos=0, _Len=0): + self.Clear() + self.AwardIndex,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.NeedGold,_pos = CommFunc.ReadDWORD(_lpData, _pos) + self.AwardItemCount,_pos = CommFunc.ReadBYTE(_lpData, _pos) + for i in range(self.AwardItemCount): + temAwardItem = tagMCTotalRechargeAwardItem() + _pos = temAwardItem.ReadData(_lpData, _pos) + self.AwardItem.append(temAwardItem) + return _pos + + def Clear(self): + self.AwardIndex = 0 + self.NeedGold = 0 + self.AwardItemCount = 0 + self.AwardItem = list() + return + + def GetLength(self): + length = 0 + length += 1 + length += 4 + length += 1 + for i in range(self.AwardItemCount): + length += self.AwardItem[i].GetLength() + + return length + + def GetBuffer(self): + data = '' + data = CommFunc.WriteBYTE(data, self.AwardIndex) + data = CommFunc.WriteDWORD(data, self.NeedGold) + data = CommFunc.WriteBYTE(data, self.AwardItemCount) + for i in range(self.AwardItemCount): + data = CommFunc.WriteString(data, self.AwardItem[i].GetLength(), self.AwardItem[i].GetBuffer()) + return data + + def OutputString(self): + DumpString = ''' + AwardIndex:%d, + NeedGold:%d, + AwardItemCount:%d, + AwardItem:%s + '''\ + %( + self.AwardIndex, + self.NeedGold, + self.AwardItemCount, + "..." + ) + return DumpString + + +class tagMCTotalRechargeAwardDay(Structure): + AwardCount = 0 #(BYTE AwardCount)// 奖励档数 + AwardInfo = list() #(vector<tagMCTotalRechargeAward> AwardInfo)// 奖励档信息 + data = None + + def __init__(self): + self.Clear() + return + + def ReadData(self, _lpData, _pos=0, _Len=0): + self.Clear() + self.AwardCount,_pos = CommFunc.ReadBYTE(_lpData, _pos) + for i in range(self.AwardCount): + temAwardInfo = tagMCTotalRechargeAward() + _pos = temAwardInfo.ReadData(_lpData, _pos) + self.AwardInfo.append(temAwardInfo) + return _pos + + def Clear(self): + self.AwardCount = 0 + self.AwardInfo = list() + return + + def GetLength(self): + length = 0 + length += 1 + for i in range(self.AwardCount): + length += self.AwardInfo[i].GetLength() + + return length + + def GetBuffer(self): + data = '' + data = CommFunc.WriteBYTE(data, self.AwardCount) + for i in range(self.AwardCount): + data = CommFunc.WriteString(data, self.AwardInfo[i].GetLength(), self.AwardInfo[i].GetBuffer()) + return data + + def OutputString(self): + DumpString = ''' + AwardCount:%d, + AwardInfo:%s + '''\ + %( + self.AwardCount, + "..." + ) + return DumpString + + +class tagMCActTotalRechargeInfo(Structure): + Head = tagHead() + StartDate = "" #(char StartDate[10])// 开始日期 y-m-d + EndtDate = "" #(char EndtDate[10])// 结束日期 y-m-d + IsDayReset = 0 #(BYTE IsDayReset)//是否每天重置 + LimitLV = 0 #(WORD LimitLV)// 限制等级 + AwardDays = 0 #(BYTE AwardDays) + AwardDayInfo = list() #(vector<tagMCTotalRechargeAwardDay> AwardDayInfo)//每天对应信息; 如果只有一天,但是活动有多天,则代表每天奖励都一样 + data = None + + def __init__(self): + self.Clear() + self.Head.Cmd = 0xAA + self.Head.SubCmd = 0x1D + return + + def ReadData(self, _lpData, _pos=0, _Len=0): + self.Clear() + _pos = self.Head.ReadData(_lpData, _pos) + self.StartDate,_pos = CommFunc.ReadString(_lpData, _pos,10) + self.EndtDate,_pos = CommFunc.ReadString(_lpData, _pos,10) + self.IsDayReset,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.LimitLV,_pos = CommFunc.ReadWORD(_lpData, _pos) + self.AwardDays,_pos = CommFunc.ReadBYTE(_lpData, _pos) + for i in range(self.AwardDays): + temAwardDayInfo = tagMCTotalRechargeAwardDay() + _pos = temAwardDayInfo.ReadData(_lpData, _pos) + self.AwardDayInfo.append(temAwardDayInfo) + return _pos + + def Clear(self): + self.Head = tagHead() + self.Head.Clear() + self.Head.Cmd = 0xAA + self.Head.SubCmd = 0x1D + self.StartDate = "" + self.EndtDate = "" + self.IsDayReset = 0 + self.LimitLV = 0 + self.AwardDays = 0 + self.AwardDayInfo = list() + return + + def GetLength(self): + length = 0 + length += self.Head.GetLength() + length += 10 + length += 10 + length += 1 + length += 2 + length += 1 + for i in range(self.AwardDays): + length += self.AwardDayInfo[i].GetLength() + + return length + + def GetBuffer(self): + data = '' + data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer()) + data = CommFunc.WriteString(data, 10, self.StartDate) + data = CommFunc.WriteString(data, 10, self.EndtDate) + data = CommFunc.WriteBYTE(data, self.IsDayReset) + data = CommFunc.WriteWORD(data, self.LimitLV) + data = CommFunc.WriteBYTE(data, self.AwardDays) + for i in range(self.AwardDays): + data = CommFunc.WriteString(data, self.AwardDayInfo[i].GetLength(), self.AwardDayInfo[i].GetBuffer()) + return data + + def OutputString(self): + DumpString = ''' + Head:%s, + StartDate:%s, + EndtDate:%s, + IsDayReset:%d, + LimitLV:%d, + AwardDays:%d, + AwardDayInfo:%s + '''\ + %( + self.Head.OutputString(), + self.StartDate, + self.EndtDate, + self.IsDayReset, + self.LimitLV, + self.AwardDays, + "..." + ) + return DumpString + + +m_NAtagMCActTotalRechargeInfo=tagMCActTotalRechargeInfo() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCActTotalRechargeInfo.Head.Cmd,m_NAtagMCActTotalRechargeInfo.Head.SubCmd))] = m_NAtagMCActTotalRechargeInfo + + +#------------------------------------------------------ # AA 1B 许愿池拖动结果 #tagMCActWishingDragResult class tagMCPlayerWishingDragInfo(Structure): @@ -19427,6 +19800,7 @@ ("ItemCnt", c_ushort), # 物品数量 ("IsBind", c_ubyte), # 是否绑定 ("Mark", c_int), # 排序标识 + ("Rare", c_ubyte), # 珍稀值 ] def __init__(self): @@ -19443,6 +19817,7 @@ self.ItemCnt = 0 self.IsBind = 0 self.Mark = 0 + self.Rare = 0 return def GetLength(self): @@ -19456,13 +19831,15 @@ ItemID:%d, ItemCnt:%d, IsBind:%d, - Mark:%d + Mark:%d, + Rare:%d '''\ %( self.ItemID, self.ItemCnt, self.IsBind, - self.Mark + self.Mark, + self.Rare ) return DumpString @@ -22040,6 +22417,62 @@ #------------------------------------------------------ +# AA 1C 累计充值玩家活动信息 #tagMCTotalRechargePlayerInfo + +class tagMCTotalRechargePlayerInfo(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("GoldTotal", c_int), #本次活动已累计充值仙玉数 + ("AwardRecord", c_int), #奖励领奖记录,按奖励索引二进制位存储是否已领取 + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xAA + self.SubCmd = 0x1C + 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 = 0xAA + self.SubCmd = 0x1C + self.GoldTotal = 0 + self.AwardRecord = 0 + return + + def GetLength(self): + return sizeof(tagMCTotalRechargePlayerInfo) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// AA 1C 累计充值玩家活动信息 //tagMCTotalRechargePlayerInfo: + Cmd:%s, + SubCmd:%s, + GoldTotal:%d, + AwardRecord:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.GoldTotal, + self.AwardRecord + ) + return DumpString + + +m_NAtagMCTotalRechargePlayerInfo=tagMCTotalRechargePlayerInfo() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCTotalRechargePlayerInfo.Cmd,m_NAtagMCTotalRechargePlayerInfo.SubCmd))] = m_NAtagMCTotalRechargePlayerInfo + + +#------------------------------------------------------ # AA 14 仙界盛典充值大礼 #tagMCXJSDRecharge class tagMCXJSDRecharge(Structure): @@ -24048,6 +24481,119 @@ #------------------------------------------------------ +# B2 08 获得仙缘币信息 #tagMCAddXianyuanCoinMsg + +class tagMCAddXianyuanCoinMsg(Structure): + Head = tagHead() + MapID = 0 #(DWORD MapID) + FuncLineID = 0 #(BYTE FuncLineID) + Relation = 0 #(BYTE Relation)// 当时的关系:0-无,1-好友,2-盟友 + RelationCoinAdd = 0 #(BYTE RelationCoinAdd)// 社交关系总加成 + XianyuanCoinAdd = 0 #(WORD XianyuanCoinAdd)// 实际增加的仙缘币 + Reason = 0 #(BYTE Reason)//仙缘币为0时的原因:1-助战次数上限;2-每日获得上限 + CallPlayerID = 0 #(DWORD CallPlayerID)// 助战的玩家ID,有值时代表真实助战,没有值时为自己打的 + NameLen = 0 #(BYTE NameLen) + CallPlayerName = "" #(String CallPlayerName)// 助战的玩家名,size = NameLen + data = None + + def __init__(self): + self.Clear() + self.Head.Cmd = 0xB2 + self.Head.SubCmd = 0x08 + return + + def ReadData(self, _lpData, _pos=0, _Len=0): + self.Clear() + _pos = self.Head.ReadData(_lpData, _pos) + self.MapID,_pos = CommFunc.ReadDWORD(_lpData, _pos) + self.FuncLineID,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.Relation,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.RelationCoinAdd,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.XianyuanCoinAdd,_pos = CommFunc.ReadWORD(_lpData, _pos) + self.Reason,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.CallPlayerID,_pos = CommFunc.ReadDWORD(_lpData, _pos) + self.NameLen,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.CallPlayerName,_pos = CommFunc.ReadString(_lpData, _pos,self.NameLen) + return _pos + + def Clear(self): + self.Head = tagHead() + self.Head.Clear() + self.Head.Cmd = 0xB2 + self.Head.SubCmd = 0x08 + self.MapID = 0 + self.FuncLineID = 0 + self.Relation = 0 + self.RelationCoinAdd = 0 + self.XianyuanCoinAdd = 0 + self.Reason = 0 + self.CallPlayerID = 0 + self.NameLen = 0 + self.CallPlayerName = "" + return + + def GetLength(self): + length = 0 + length += self.Head.GetLength() + length += 4 + length += 1 + length += 1 + length += 1 + length += 2 + length += 1 + length += 4 + length += 1 + length += len(self.CallPlayerName) + + return length + + def GetBuffer(self): + data = '' + data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer()) + data = CommFunc.WriteDWORD(data, self.MapID) + data = CommFunc.WriteBYTE(data, self.FuncLineID) + data = CommFunc.WriteBYTE(data, self.Relation) + data = CommFunc.WriteBYTE(data, self.RelationCoinAdd) + data = CommFunc.WriteWORD(data, self.XianyuanCoinAdd) + data = CommFunc.WriteBYTE(data, self.Reason) + data = CommFunc.WriteDWORD(data, self.CallPlayerID) + data = CommFunc.WriteBYTE(data, self.NameLen) + data = CommFunc.WriteString(data, self.NameLen, self.CallPlayerName) + return data + + def OutputString(self): + DumpString = ''' + Head:%s, + MapID:%d, + FuncLineID:%d, + Relation:%d, + RelationCoinAdd:%d, + XianyuanCoinAdd:%d, + Reason:%d, + CallPlayerID:%d, + NameLen:%d, + CallPlayerName:%s + '''\ + %( + self.Head.OutputString(), + self.MapID, + self.FuncLineID, + self.Relation, + self.RelationCoinAdd, + self.XianyuanCoinAdd, + self.Reason, + self.CallPlayerID, + self.NameLen, + self.CallPlayerName + ) + return DumpString + + +m_NAtagMCAddXianyuanCoinMsg=tagMCAddXianyuanCoinMsg() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCAddXianyuanCoinMsg.Head.Cmd,m_NAtagMCAddXianyuanCoinMsg.Head.SubCmd))] = m_NAtagMCAddXianyuanCoinMsg + + +#------------------------------------------------------ # B2 10 仙盟联赛玩家排名信息 #tagMCFamilyWarBillboard class tagMCFamilyWarPlayer(Structure): @@ -24348,6 +24894,7 @@ ("Cmd", c_ubyte), ("SubCmd", c_ubyte), ("IsDouble", c_ubyte), #是否双倍 + ("OldDouble", c_ubyte), #是否曾经允许双倍 ] def __init__(self): @@ -24365,6 +24912,7 @@ self.Cmd = 0xB2 self.SubCmd = 0x01 self.IsDouble = 0 + self.OldDouble = 0 return def GetLength(self): @@ -24377,12 +24925,14 @@ DumpString = '''// B2 01 通知封魔坛双倍击杀状态 //tagMCFMTDoubleState: Cmd:%s, SubCmd:%s, - IsDouble:%d + IsDouble:%d, + OldDouble:%d '''\ %( self.Cmd, self.SubCmd, - self.IsDouble + self.IsDouble, + self.OldDouble ) return DumpString @@ -24392,6 +24942,550 @@ #------------------------------------------------------ +# B2 06 助战召唤结果 #tagMCHelpBattleCallResult + +class tagMCHelpBattleCallResult(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("ObjID", c_int), # 助战实例ID + ("PlayerID", c_int), # 助战镜像ID,大于1小于100代表机器人,如果是机器人前端按顺序自己记录对应实例ID代表已召唤 + ("Job", c_ubyte), # 职业 + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xB2 + self.SubCmd = 0x06 + 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 = 0xB2 + self.SubCmd = 0x06 + self.ObjID = 0 + self.PlayerID = 0 + self.Job = 0 + return + + def GetLength(self): + return sizeof(tagMCHelpBattleCallResult) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// B2 06 助战召唤结果 //tagMCHelpBattleCallResult: + Cmd:%s, + SubCmd:%s, + ObjID:%d, + PlayerID:%d, + Job:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.ObjID, + self.PlayerID, + self.Job + ) + return DumpString + + +m_NAtagMCHelpBattleCallResult=tagMCHelpBattleCallResult() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCHelpBattleCallResult.Cmd,m_NAtagMCHelpBattleCallResult.SubCmd))] = m_NAtagMCHelpBattleCallResult + + +#------------------------------------------------------ +# B2 05 助战登记结果 #tagMCHelpBattleCheckInResult + +class tagMCHelpBattleCheckInResult(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("IsOK", c_ubyte), #是否成功 + ("IsLogin", c_ubyte), #是否登录同步已登记 + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xB2 + self.SubCmd = 0x05 + 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 = 0xB2 + self.SubCmd = 0x05 + self.IsOK = 0 + self.IsLogin = 0 + return + + def GetLength(self): + return sizeof(tagMCHelpBattleCheckInResult) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// B2 05 助战登记结果 //tagMCHelpBattleCheckInResult: + Cmd:%s, + SubCmd:%s, + IsOK:%d, + IsLogin:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.IsOK, + self.IsLogin + ) + return DumpString + + +m_NAtagMCHelpBattleCheckInResult=tagMCHelpBattleCheckInResult() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCHelpBattleCheckInResult.Cmd,m_NAtagMCHelpBattleCheckInResult.SubCmd))] = m_NAtagMCHelpBattleCheckInResult + + +#------------------------------------------------------ +# B2 07 助战机器人列表 #tagMCHelpBattleList + +class tagMCHelpBattlePlayer(Structure): + ObjID = 0 #(DWORD ObjID)// 实例ID, 0代表未召唤 + PlayerID = 0 #(DWORD PlayerID)// 助战镜像ID, 大于1小于100代表机器人,如果是机器人,没有以下信息,相关信息自己读配置 + NameLen = 0 #(BYTE NameLen) + Name = "" #(String Name)// 玩家名,size = NameLen + LV = 0 #(WORD LV)// 玩家等级 + Job = 0 #(BYTE Job)// 玩家职业, 如果是机器人,则职业有值,服务端控制 + RealmLV = 0 #(WORD RealmLV)// 玩家境界等级 + FightPower = 0 #(DWORD FightPower)// 玩家战力 + Relation = 0 #(BYTE Relation)// 关系:0-无,1-好友,2-盟友 + IsNeedGold = 0 #(BYTE IsNeedGold)// 是否需要仙玉召唤 + data = None + + def __init__(self): + self.Clear() + return + + def ReadData(self, _lpData, _pos=0, _Len=0): + self.Clear() + self.ObjID,_pos = CommFunc.ReadDWORD(_lpData, _pos) + self.PlayerID,_pos = CommFunc.ReadDWORD(_lpData, _pos) + self.NameLen,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.Name,_pos = CommFunc.ReadString(_lpData, _pos,self.NameLen) + self.LV,_pos = CommFunc.ReadWORD(_lpData, _pos) + self.Job,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.RealmLV,_pos = CommFunc.ReadWORD(_lpData, _pos) + self.FightPower,_pos = CommFunc.ReadDWORD(_lpData, _pos) + self.Relation,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.IsNeedGold,_pos = CommFunc.ReadBYTE(_lpData, _pos) + return _pos + + def Clear(self): + self.ObjID = 0 + self.PlayerID = 0 + self.NameLen = 0 + self.Name = "" + self.LV = 0 + self.Job = 0 + self.RealmLV = 0 + self.FightPower = 0 + self.Relation = 0 + self.IsNeedGold = 0 + return + + def GetLength(self): + length = 0 + length += 4 + length += 4 + length += 1 + length += len(self.Name) + length += 2 + length += 1 + length += 2 + length += 4 + length += 1 + length += 1 + + return length + + def GetBuffer(self): + data = '' + data = CommFunc.WriteDWORD(data, self.ObjID) + data = CommFunc.WriteDWORD(data, self.PlayerID) + data = CommFunc.WriteBYTE(data, self.NameLen) + data = CommFunc.WriteString(data, self.NameLen, self.Name) + data = CommFunc.WriteWORD(data, self.LV) + data = CommFunc.WriteBYTE(data, self.Job) + data = CommFunc.WriteWORD(data, self.RealmLV) + data = CommFunc.WriteDWORD(data, self.FightPower) + data = CommFunc.WriteBYTE(data, self.Relation) + data = CommFunc.WriteBYTE(data, self.IsNeedGold) + return data + + def OutputString(self): + DumpString = ''' + ObjID:%d, + PlayerID:%d, + NameLen:%d, + Name:%s, + LV:%d, + Job:%d, + RealmLV:%d, + FightPower:%d, + Relation:%d, + IsNeedGold:%d + '''\ + %( + self.ObjID, + self.PlayerID, + self.NameLen, + self.Name, + self.LV, + self.Job, + self.RealmLV, + self.FightPower, + self.Relation, + self.IsNeedGold + ) + return DumpString + + +class tagMCHelpBattleList(Structure): + Head = tagHead() + RefreshCount = 0 #(BYTE RefreshCount)// 已刷新次数 + HelpCount = 0 #(BYTE HelpCount)// 助战个数 + HelpPlayerList = list() #(vector<tagMCHelpBattlePlayer> HelpPlayerList)// 助战镜像信息 + data = None + + def __init__(self): + self.Clear() + self.Head.Cmd = 0xB2 + self.Head.SubCmd = 0x07 + return + + def ReadData(self, _lpData, _pos=0, _Len=0): + self.Clear() + _pos = self.Head.ReadData(_lpData, _pos) + self.RefreshCount,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.HelpCount,_pos = CommFunc.ReadBYTE(_lpData, _pos) + for i in range(self.HelpCount): + temHelpPlayerList = tagMCHelpBattlePlayer() + _pos = temHelpPlayerList.ReadData(_lpData, _pos) + self.HelpPlayerList.append(temHelpPlayerList) + return _pos + + def Clear(self): + self.Head = tagHead() + self.Head.Clear() + self.Head.Cmd = 0xB2 + self.Head.SubCmd = 0x07 + self.RefreshCount = 0 + self.HelpCount = 0 + self.HelpPlayerList = list() + return + + def GetLength(self): + length = 0 + length += self.Head.GetLength() + length += 1 + length += 1 + for i in range(self.HelpCount): + length += self.HelpPlayerList[i].GetLength() + + return length + + def GetBuffer(self): + data = '' + data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer()) + data = CommFunc.WriteBYTE(data, self.RefreshCount) + data = CommFunc.WriteBYTE(data, self.HelpCount) + for i in range(self.HelpCount): + data = CommFunc.WriteString(data, self.HelpPlayerList[i].GetLength(), self.HelpPlayerList[i].GetBuffer()) + return data + + def OutputString(self): + DumpString = ''' + Head:%s, + RefreshCount:%d, + HelpCount:%d, + HelpPlayerList:%s + '''\ + %( + self.Head.OutputString(), + self.RefreshCount, + self.HelpCount, + "..." + ) + return DumpString + + +m_NAtagMCHelpBattleList=tagMCHelpBattleList() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCHelpBattleList.Head.Cmd,m_NAtagMCHelpBattleList.Head.SubCmd))] = m_NAtagMCHelpBattleList + + +#------------------------------------------------------ +# B2 11 助战记录列表 #tagMCHelpBattleRecordList + +class tagMCHelpBattleRecord(Structure): + CallPlayerID = 0 #(DWORD CallPlayerID)// 邀请助战的玩家ID + NameLen = 0 #(BYTE NameLen) + CallPlayerName = "" #(String CallPlayerName)// 邀请助战的玩家名,size = NameLen + MapID = 0 #(DWORD MapID) + FuncLineID = 0 #(BYTE FuncLineID) + XianyuanCoinAdd = 0 #(WORD XianyuanCoinAdd)// 增加的仙缘币,0代表已达上限 + Relation = 0 #(BYTE Relation)// 当时的关系:0-无,1-好友,2-盟友 + VIPLV = 0 #(BYTE VIPLV)// 当时的VIP等级 + HelpTime = "" #(char HelpTime[19])// 助战时间yyyy-MM-dd hh:mm:ss + data = None + + def __init__(self): + self.Clear() + return + + def ReadData(self, _lpData, _pos=0, _Len=0): + self.Clear() + self.CallPlayerID,_pos = CommFunc.ReadDWORD(_lpData, _pos) + self.NameLen,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.CallPlayerName,_pos = CommFunc.ReadString(_lpData, _pos,self.NameLen) + self.MapID,_pos = CommFunc.ReadDWORD(_lpData, _pos) + self.FuncLineID,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.XianyuanCoinAdd,_pos = CommFunc.ReadWORD(_lpData, _pos) + self.Relation,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.VIPLV,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.HelpTime,_pos = CommFunc.ReadString(_lpData, _pos,19) + return _pos + + def Clear(self): + self.CallPlayerID = 0 + self.NameLen = 0 + self.CallPlayerName = "" + self.MapID = 0 + self.FuncLineID = 0 + self.XianyuanCoinAdd = 0 + self.Relation = 0 + self.VIPLV = 0 + self.HelpTime = "" + return + + def GetLength(self): + length = 0 + length += 4 + length += 1 + length += len(self.CallPlayerName) + length += 4 + length += 1 + length += 2 + length += 1 + length += 1 + length += 19 + + return length + + def GetBuffer(self): + data = '' + data = CommFunc.WriteDWORD(data, self.CallPlayerID) + data = CommFunc.WriteBYTE(data, self.NameLen) + data = CommFunc.WriteString(data, self.NameLen, self.CallPlayerName) + data = CommFunc.WriteDWORD(data, self.MapID) + data = CommFunc.WriteBYTE(data, self.FuncLineID) + data = CommFunc.WriteWORD(data, self.XianyuanCoinAdd) + data = CommFunc.WriteBYTE(data, self.Relation) + data = CommFunc.WriteBYTE(data, self.VIPLV) + data = CommFunc.WriteString(data, 19, self.HelpTime) + return data + + def OutputString(self): + DumpString = ''' + CallPlayerID:%d, + NameLen:%d, + CallPlayerName:%s, + MapID:%d, + FuncLineID:%d, + XianyuanCoinAdd:%d, + Relation:%d, + VIPLV:%d, + HelpTime:%s + '''\ + %( + self.CallPlayerID, + self.NameLen, + self.CallPlayerName, + self.MapID, + self.FuncLineID, + self.XianyuanCoinAdd, + self.Relation, + self.VIPLV, + self.HelpTime + ) + return DumpString + + +class tagMCHelpBattleRecordList(Structure): + Head = tagHead() + RecordCount = 0 #(WORD RecordCount)// 记录数 + RecordList = list() #(vector<tagMCHelpBattleRecord> RecordList) + data = None + + def __init__(self): + self.Clear() + self.Head.Cmd = 0xB2 + self.Head.SubCmd = 0x11 + return + + def ReadData(self, _lpData, _pos=0, _Len=0): + self.Clear() + _pos = self.Head.ReadData(_lpData, _pos) + self.RecordCount,_pos = CommFunc.ReadWORD(_lpData, _pos) + for i in range(self.RecordCount): + temRecordList = tagMCHelpBattleRecord() + _pos = temRecordList.ReadData(_lpData, _pos) + self.RecordList.append(temRecordList) + return _pos + + def Clear(self): + self.Head = tagHead() + self.Head.Clear() + self.Head.Cmd = 0xB2 + self.Head.SubCmd = 0x11 + self.RecordCount = 0 + self.RecordList = list() + return + + def GetLength(self): + length = 0 + length += self.Head.GetLength() + length += 2 + for i in range(self.RecordCount): + length += self.RecordList[i].GetLength() + + return length + + def GetBuffer(self): + data = '' + data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer()) + data = CommFunc.WriteWORD(data, self.RecordCount) + for i in range(self.RecordCount): + data = CommFunc.WriteString(data, self.RecordList[i].GetLength(), self.RecordList[i].GetBuffer()) + return data + + def OutputString(self): + DumpString = ''' + Head:%s, + RecordCount:%d, + RecordList:%s + '''\ + %( + self.Head.OutputString(), + self.RecordCount, + "..." + ) + return DumpString + + +m_NAtagMCHelpBattleRecordList=tagMCHelpBattleRecordList() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCHelpBattleRecordList.Head.Cmd,m_NAtagMCHelpBattleRecordList.Head.SubCmd))] = m_NAtagMCHelpBattleRecordList + + +#------------------------------------------------------ +# B2 04 冰晶矿脉信息通知 #tagMCIceLodeInfo + +class tagMCIceLodeInfo(Structure): + Head = tagHead() + Cnt = 0 #(BYTE Cnt)// 今日玩法数量 + LineList = list() #(vector<BYTE> LineList)// 玩法列表 + AwardRecord = 0 #(DWORD AwardRecord)// 领奖记录 + HasSweep = 0 #(BYTE HasSweep)// 是否已扫荡 + DayLV = 0 #(WORD DayLV)// 今日等级 + data = None + + def __init__(self): + self.Clear() + self.Head.Cmd = 0xB2 + self.Head.SubCmd = 0x04 + return + + def ReadData(self, _lpData, _pos=0, _Len=0): + self.Clear() + _pos = self.Head.ReadData(_lpData, _pos) + self.Cnt,_pos = CommFunc.ReadBYTE(_lpData, _pos) + for i in range(self.Cnt): + value,_pos=CommFunc.ReadBYTE(_lpData,_pos) + self.LineList.append(value) + self.AwardRecord,_pos = CommFunc.ReadDWORD(_lpData, _pos) + self.HasSweep,_pos = CommFunc.ReadBYTE(_lpData, _pos) + self.DayLV,_pos = CommFunc.ReadWORD(_lpData, _pos) + return _pos + + def Clear(self): + self.Head = tagHead() + self.Head.Clear() + self.Head.Cmd = 0xB2 + self.Head.SubCmd = 0x04 + self.Cnt = 0 + self.LineList = list() + self.AwardRecord = 0 + self.HasSweep = 0 + self.DayLV = 0 + return + + def GetLength(self): + length = 0 + length += self.Head.GetLength() + length += 1 + length += 1 * self.Cnt + length += 4 + length += 1 + length += 2 + + return length + + def GetBuffer(self): + data = '' + data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer()) + data = CommFunc.WriteBYTE(data, self.Cnt) + for i in range(self.Cnt): + data = CommFunc.WriteBYTE(data, self.LineList[i]) + data = CommFunc.WriteDWORD(data, self.AwardRecord) + data = CommFunc.WriteBYTE(data, self.HasSweep) + data = CommFunc.WriteWORD(data, self.DayLV) + return data + + def OutputString(self): + DumpString = ''' + Head:%s, + Cnt:%d, + LineList:%s, + AwardRecord:%d, + HasSweep:%d, + DayLV:%d + '''\ + %( + self.Head.OutputString(), + self.Cnt, + "...", + self.AwardRecord, + self.HasSweep, + self.DayLV + ) + return DumpString + + +m_NAtagMCIceLodeInfo=tagMCIceLodeInfo() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCIceLodeInfo.Head.Cmd,m_NAtagMCIceLodeInfo.Head.SubCmd))] = m_NAtagMCIceLodeInfo + + +#------------------------------------------------------ # B2 03 公共副本扫荡信息 #tagMCPubFBSweepData class tagMCPubFBSweep(Structure): -- Gitblit v1.8.0