From fe645e03c09fce1624ff7354beaed01375f1453c Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期三, 19 九月 2018 17:53:44 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/SnxxServerCode --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 10 ++++++++++ 1 files changed, 10 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 ff5f5b4..8213deb 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py @@ -8270,6 +8270,7 @@ EquipIndex = 0 #(BYTE EquipIndex)//神兽装备背包中索引 IndexCount = 0 #(BYTE IndexCount)//材料所在神兽物品背包索引的数量 IndexList = list() #(vector<BYTE> IndexList)//材料所在神兽物品背包索引列表 + IndexUseCountList = list() #(vector<DWORD> IndexUseCountList)//材料所在神兽物品背包索引对应使用个数列表 IsDouble = 0 #(BYTE IsDouble)//是否双倍强化 data = None @@ -8287,6 +8288,9 @@ for i in range(self.IndexCount): value,_pos=CommFunc.ReadBYTE(_lpData,_pos) self.IndexList.append(value) + for i in range(self.IndexCount): + value,_pos=CommFunc.ReadDWORD(_lpData,_pos) + self.IndexUseCountList.append(value) self.IsDouble,_pos = CommFunc.ReadBYTE(_lpData, _pos) return _pos @@ -8298,6 +8302,7 @@ self.EquipIndex = 0 self.IndexCount = 0 self.IndexList = list() + self.IndexUseCountList = list() self.IsDouble = 0 return @@ -8307,6 +8312,7 @@ length += 1 length += 1 length += 1 * self.IndexCount + length += 4 * self.IndexCount length += 1 return length @@ -8318,6 +8324,8 @@ data = CommFunc.WriteBYTE(data, self.IndexCount) for i in range(self.IndexCount): data = CommFunc.WriteBYTE(data, self.IndexList[i]) + for i in range(self.IndexCount): + data = CommFunc.WriteDWORD(data, self.IndexUseCountList[i]) data = CommFunc.WriteBYTE(data, self.IsDouble) return data @@ -8327,6 +8335,7 @@ EquipIndex:%d, IndexCount:%d, IndexList:%s, + IndexUseCountList:%s, IsDouble:%d '''\ %( @@ -8334,6 +8343,7 @@ self.EquipIndex, self.IndexCount, "...", + "...", self.IsDouble ) return DumpString -- Gitblit v1.8.0