There has not been much information released covering the topic of scripting and OPC capabilities. It has been said that there will be basic scripting provided to cover basic abilities (eat, drink, move, ect.) and it will be left to the community to come up with more advanced scripting that can be shared. They did also say be sure that you trust the one creating the script as you don't want the script handing over your fortune to the creator while you sleep.
They have mentioned there will be a scrip for "go home" with limitations, such as a distance restriction. If you are in the city I don't see any problem in going home to your farm just outside the gates. However an explorer that is, say, a full day away may have a more difficult path back home.
I am not a programmer though some on the boards are. I see some sites popping up and individuals offering services that will do a custom scripting upon demand if asked. So we will have to wait and see for more information on scripting and applications.