Go beyond "Nǐ hǎo". Learn how to be polite and ask for things in a natural, native way.
"Kěyǐ ma" is the magic key for permissions.
You accidentally bumped into a native person. What do you say?