Guards. Like in OoT: don't let them see you or they'll kick you out. Or maybe they'll attack you.
Script
Demo quest
Demo quest (alternate location)
Requires build 798 or above.
I may update it with a better wall-checking algorithm, but the current version should work well enough.
(Update: bugfix)