When the bat traps you in the room with the purple mineral, go talk to him on the other side of the fence... and accept his offer.