From 7c15bb769871bfb49ad01df51a12efcca96913ae Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期三, 17 四月 2019 10:50:56 +0800 Subject: [PATCH] 6457 缥缈妖王回血功能 --- ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 108 insertions(+), 0 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py index e437179..c17352a 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetPack.py @@ -4155,6 +4155,58 @@ #------------------------------------------------------ +# A2 34 自定义场景中获取采集奖励 #tagCMGetCustomSceneCollectAward + +class tagCMGetCustomSceneCollectAward(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("NPCID", c_int), #采集的NPCID + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xA2 + self.SubCmd = 0x34 + 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 = 0xA2 + self.SubCmd = 0x34 + self.NPCID = 0 + return + + def GetLength(self): + return sizeof(tagCMGetCustomSceneCollectAward) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// A2 34 自定义场景中获取采集奖励 //tagCMGetCustomSceneCollectAward: + Cmd:%s, + SubCmd:%s, + NPCID:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.NPCID + ) + return DumpString + + +m_NAtagCMGetCustomSceneCollectAward=tagCMGetCustomSceneCollectAward() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGetCustomSceneCollectAward.Cmd,m_NAtagCMGetCustomSceneCollectAward.SubCmd))] = m_NAtagCMGetCustomSceneCollectAward + + +#------------------------------------------------------ # A2 21 领取跑环每轮结束奖励 #tagCMGetRunTaskEndAward class tagCMGetRunTaskEndAward(Structure): @@ -13543,6 +13595,62 @@ #------------------------------------------------------ +# B1 0A 副本购买buff #tagCMFBBuyBuff + +class tagCMFBBuyBuff(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("MapID", c_int), + ("MoneyCnt", c_ushort), + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xB1 + self.SubCmd = 0x0A + 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 = 0xB1 + self.SubCmd = 0x0A + self.MapID = 0 + self.MoneyCnt = 0 + return + + def GetLength(self): + return sizeof(tagCMFBBuyBuff) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// B1 0A 副本购买buff //tagCMFBBuyBuff: + Cmd:%s, + SubCmd:%s, + MapID:%d, + MoneyCnt:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.MapID, + self.MoneyCnt + ) + return DumpString + + +m_NAtagCMFBBuyBuff=tagCMFBBuyBuff() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMFBBuyBuff.Cmd,m_NAtagCMFBBuyBuff.SubCmd))] = m_NAtagCMFBBuyBuff + + +#------------------------------------------------------ # B1 09 结算自定义副本奖励 #tagCMGiveCustomFBPrize class tagCMGiveCustomFBPrize(Structure): -- Gitblit v1.8.0