112 lines
3.4 KiB
Plaintext
112 lines
3.4 KiB
Plaintext
|
LuaDistributesAckBossHomeUserInfo = {}
|
||
|
|
||
|
LuaDistributesAckBossHomeUserInfo.sysID = 33
|
||
|
LuaDistributesAckBossHomeUserInfo.cmdID = 6
|
||
|
|
||
|
function LuaDistributesAckBossHomeUserInfo.ExtraPacket(memStream)
|
||
|
-- print('ExtraPacket:'..memStream.Length)
|
||
|
|
||
|
local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream)
|
||
|
local sysID = binaryReader:ReadByte()
|
||
|
local cmdID = binaryReader:ReadByte()
|
||
|
packet = LuaDistributesAckBossHomeUserInfo.ReadPacket(binaryReader)
|
||
|
|
||
|
return packet
|
||
|
end
|
||
|
|
||
|
function LuaDistributesAckBossHomeUserInfo.SendPacket(packet)
|
||
|
local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesAckBossHomeUserInfo.sysID, LuaDistributesAckBossHomeUserInfo.cmdID)
|
||
|
if(packet['worldbosshandbookawardtimes'] == nil) then
|
||
|
packet['worldbosshandbookawardtimes'] = 0
|
||
|
end
|
||
|
message:WriteInt(packet['worldbosshandbookawardtimes'])
|
||
|
|
||
|
if(packet['worldbosslastkillawardtimes'] == nil) then
|
||
|
packet['worldbosslastkillawardtimes'] = 0
|
||
|
end
|
||
|
message:WriteInt(packet['worldbosslastkillawardtimes'])
|
||
|
|
||
|
if(packet['worldbosskillawardtimes'] == nil) then
|
||
|
packet['worldbosskillawardtimes'] = 0
|
||
|
end
|
||
|
message:WriteInt(packet['worldbosskillawardtimes'])
|
||
|
|
||
|
if(packet['worldbosshandbookawardtimesmax'] == nil) then
|
||
|
packet['worldbosshandbookawardtimesmax'] = 0
|
||
|
end
|
||
|
message:WriteInt(packet['worldbosshandbookawardtimesmax'])
|
||
|
|
||
|
if(packet['worldbosslastkillawardtimesmax'] == nil) then
|
||
|
packet['worldbosslastkillawardtimesmax'] = 0
|
||
|
end
|
||
|
message:WriteInt(packet['worldbosslastkillawardtimesmax'])
|
||
|
|
||
|
if(packet['worldbosskillawardtimesmax'] == nil) then
|
||
|
packet['worldbosskillawardtimesmax'] = 0
|
||
|
end
|
||
|
message:WriteInt(packet['worldbosskillawardtimesmax'])
|
||
|
|
||
|
if(packet['bosshomehandbookawardtimes'] == nil) then
|
||
|
packet['bosshomehandbookawardtimes'] = 0
|
||
|
end
|
||
|
message:WriteInt(packet['bosshomehandbookawardtimes'])
|
||
|
|
||
|
if(packet['bosshomelastkillawardtimes'] == nil) then
|
||
|
packet['bosshomelastkillawardtimes'] = 0
|
||
|
end
|
||
|
message:WriteInt(packet['bosshomelastkillawardtimes'])
|
||
|
|
||
|
if(packet['bosshomekillawardtimes'] == nil) then
|
||
|
packet['bosshomekillawardtimes'] = 0
|
||
|
end
|
||
|
message:WriteInt(packet['bosshomekillawardtimes'])
|
||
|
|
||
|
if(packet['bosshomehandbookawardtimesmax'] == nil) then
|
||
|
packet['bosshomehandbookawardtimesmax'] = 0
|
||
|
end
|
||
|
message:WriteInt(packet['bosshomehandbookawardtimesmax'])
|
||
|
|
||
|
if(packet['bosshomelastkillawardtimesmax'] == nil) then
|
||
|
packet['bosshomelastkillawardtimesmax'] = 0
|
||
|
end
|
||
|
message:WriteInt(packet['bosshomelastkillawardtimesmax'])
|
||
|
|
||
|
if(packet['bosshomekillawardtimesmax'] == nil) then
|
||
|
packet['bosshomekillawardtimesmax'] = 0
|
||
|
end
|
||
|
message:WriteInt(packet['bosshomekillawardtimesmax'])
|
||
|
|
||
|
|
||
|
message:Send()
|
||
|
end
|
||
|
|
||
|
function LuaDistributesAckBossHomeUserInfo.ReadPacket(binaryReader)
|
||
|
|
||
|
local packet = {}
|
||
|
packet['worldbosshandbookawardtimes'] = binaryReader:ReadInt32()
|
||
|
|
||
|
packet['worldbosslastkillawardtimes'] = binaryReader:ReadInt32()
|
||
|
|
||
|
packet['worldbosskillawardtimes'] = binaryReader:ReadInt32()
|
||
|
|
||
|
packet['worldbosshandbookawardtimesmax'] = binaryReader:ReadInt32()
|
||
|
|
||
|
packet['worldbosslastkillawardtimesmax'] = binaryReader:ReadInt32()
|
||
|
|
||
|
packet['worldbosskillawardtimesmax'] = binaryReader:ReadInt32()
|
||
|
|
||
|
packet['bosshomehandbookawardtimes'] = binaryReader:ReadInt32()
|
||
|
|
||
|
packet['bosshomelastkillawardtimes'] = binaryReader:ReadInt32()
|
||
|
|
||
|
packet['bosshomekillawardtimes'] = binaryReader:ReadInt32()
|
||
|
|
||
|
packet['bosshomehandbookawardtimesmax'] = binaryReader:ReadInt32()
|
||
|
|
||
|
packet['bosshomelastkillawardtimesmax'] = binaryReader:ReadInt32()
|
||
|
|
||
|
packet['bosshomekillawardtimesmax'] = binaryReader:ReadInt32()
|
||
|
|
||
|
|
||
|
return packet
|
||
|
end
|