LuaDistributesRetPropTips = {} LuaDistributesRetPropTips.sysID = 45 LuaDistributesRetPropTips.cmdID = 9 function LuaDistributesRetPropTips.ExtraPacket(memStream) -- print('ExtraPacket:'..memStream.Length) local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream) local sysID = binaryReader:ReadByte() local cmdID = binaryReader:ReadByte() packet = LuaDistributesRetPropTips.ReadPacket(binaryReader) return packet end function LuaDistributesRetPropTips.SendPacket(packet) local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesRetPropTips.sysID, LuaDistributesRetPropTips.cmdID) if(packet['propId'] == nil) then packet['propId'] = 0 end message:WriteInt(packet['propId']) message:Send() end function LuaDistributesRetPropTips.ReadPacket(binaryReader) local packet = {} packet['propId'] = binaryReader:ReadInt32() return packet end