From d9f13c5e9a02f31cad2f58357acd3140809e88c1 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期二, 11 九月 2018 19:57:27 +0800 Subject: [PATCH] fix:3477【后端】【1.0.15】【1.1.0】娲皇遗迹新增Vip特权:副本购买次数 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 52 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 a919a41..9976369 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py @@ -10299,6 +10299,58 @@ #------------------------------------------------------ +# A5 13 解锁符印孔 #tagCMUnlockRuneHole + +class tagCMUnlockRuneHole(Structure): + _pack_ = 1 + _fields_ = [ + ("Cmd", c_ubyte), + ("SubCmd", c_ubyte), + ("HoleIndex", c_ubyte), # 孔索引 + ] + + def __init__(self): + self.Clear() + self.Cmd = 0xA5 + self.SubCmd = 0x13 + 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 = 0x13 + self.HoleIndex = 0 + return + + def GetLength(self): + return sizeof(tagCMUnlockRuneHole) + + def GetBuffer(self): + return string_at(addressof(self), self.GetLength()) + + def OutputString(self): + DumpString = '''// A5 13 解锁符印孔 //tagCMUnlockRuneHole: + Cmd:%s, + SubCmd:%s, + HoleIndex:%d + '''\ + %( + self.Cmd, + self.SubCmd, + self.HoleIndex + ) + return DumpString + + +m_NAtagCMUnlockRuneHole=tagCMUnlockRuneHole() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMUnlockRuneHole.Cmd,m_NAtagCMUnlockRuneHole.SubCmd))] = m_NAtagCMUnlockRuneHole + + +#------------------------------------------------------ #A5 10 使用新手卡 #tagUseNewGuyCard class tagUseNewGuyCard(Structure): -- Gitblit v1.8.0