Lua script for changing altitude

I think this post may help you, too.