Many ask how to turn off PvP. First of all, when you do an ESCORT quest of any type you get a popup to change your stance to GUILD/ALL otherwise you cannot do these quests. If you do this you can get attacked.
Now there is a stance you cannot get attacked in called PEACE. You can only switch to this stance every 2 hours so be sure you dont change it too often.