This is really a neat puzzle.
Pick up and use whatever you can in the two neighboring rooms.
Try to walk in the dark then.
First, get a tapestry at the wall in the corridor.
In the room with the running goblin, let the tapestry soak with his sweat. Use the wet tapestry on the chemical sprayer.
Move the lever to switch off all lights.