Rescue Zandalor (Rivertown sewers, castle treasure room entrance) and let him teleport you somewhere to get your teleporter stones back.
Deathwing's solution for Commander Ralph:had the Ralph bug but found out a way how to solve it.
First put a teleport stone somewhere outside of the barracks,
then one in the prisoncell in the barracks.
Now use lockpick(lvl 3) on Ralphs door.
Go inside and get caught and agree to go to jail, in there
use the stone to transport you out, it seems now that they didn't bother
how you got out and you have the same reputation as before
and you can talk to Ralph and finish your quest without any
problems,but do remember to get your stuff in the item box and
your Teleportstone in the prison cell.
Sir Lawrence's method:had some luck! Like many folks, I caused Ralph to lock himself in his room and couldn't get him to come out. This was early on and I kept going back, but he was locked tight, and from this board, seems that many others were experiencing this too. At lvl 33, lock pick skill 3, I picked the lock. Still, he wouldn't come out unless you tried to enter, then he came out and sent you to jail. So, I left with the door open and no Ralph. Came back later, and he just came walking out! I was shocked. This may work for you, especially if you have this bug. Also, somewhere here, I saw somebody said they led some Orcs back and Ralph came out to help fight them. I tried that, but it was no good for me. The guards would kill them before I could get them to follow me inside. Hope this helps you. I loved getting the experience for solving the Duke's murder.