uhm ok, first talk to the loudred to make you deaf. then talk to the jigglypuff to make the guard asleep (you dont fall asleep cuz your deaf)
them move the quilava to the cage close to the exit (use abra to teleport) use quilava to shoot flames at the door, now the guard wakes up, w/e.
next up, get deaf again, use jigglypuff to sing and this time move vanillite to the cage close to the exit, use ice beam on the door.
repeat the deaf process... now there is a roggenrolla in 1 of the cage but its very hard to see, make him shoot rocks at the door and you break free.