From 49038c57437f730ac77154eb1969d46be614416d Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期一, 08 四月 2019 16:32:44 +0800 Subject: [PATCH] 6457 【后端】【2.0】缥缈仙域开发单(随机玩法、购买次数) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 108 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py index c6fc84e..ac28fe5 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py @@ -7998,6 +7998,62 @@ #------------------------------------------------------ +# A5 25 购买日常活动次数 #tagCMBuyDailyActionCnt + +class tagCMBuyDailyActionCnt(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("ActionID", c_int), # ID + ("AddType", c_ubyte), # 0-花仙玉 1-用物品 + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xA5 + 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 = 0xA5 + self.SubCmd = 0x25 + self.ActionID = 0 + self.AddType = 0 + return + + def GetLength(self): + return sizeof(tagCMBuyDailyActionCnt) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// A5 25 购买日常活动次数 //tagCMBuyDailyActionCnt: + Cmd:%s, + SubCmd:%s, + ActionID:%d, + AddType:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.ActionID, + self.AddType + ) + return DumpString + + +m_NAtagCMBuyDailyActionCnt=tagCMBuyDailyActionCnt() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMBuyDailyActionCnt.Cmd,m_NAtagCMBuyDailyActionCnt.SubCmd))] = m_NAtagCMBuyDailyActionCnt + + +#------------------------------------------------------ #A5 75 购买副本进入次数#tagCMBuyEnterCount class tagCMBuyEnterCount(Structure): @@ -11074,6 +11130,58 @@ #------------------------------------------------------ +# A5 26 寻访仙域 #tagCMVisitFairyDomain + +class tagCMVisitFairyDomain(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("Type", c_ubyte), #0-开始寻访 1-结束寻访 + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xA5 + self.SubCmd = 0x26 + 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 = 0xA5 + self.SubCmd = 0x26 + self.Type = 0 + return + + def GetLength(self): + return sizeof(tagCMVisitFairyDomain) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// A5 26 寻访仙域 //tagCMVisitFairyDomain: + Cmd:%s, + SubCmd:%s, + Type:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.Type + ) + return DumpString + + +m_NAtagCMVisitFairyDomain=tagCMVisitFairyDomain() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMVisitFairyDomain.Cmd,m_NAtagCMVisitFairyDomain.SubCmd))] = m_NAtagCMVisitFairyDomain + + +#------------------------------------------------------ # A5 1D 法宝佩戴 #tagCMWearMagicWeapon class tagCMWearMagicWeapon(Structure): -- Gitblit v1.8.0