this is an all in one i use which i found here on the forums. Will work for trades, quests, invites ect.

Code:
/script AcceptGroup();
/script AcceptQuest();
/script AcceptTrade();
/script RetrieveCorpse();
/script RepopMe();
/script ConfirmAcceptQuest();
/script StaticPopup_Hide("PARTY_INVITE");
/script StaticPopup_Hide("QUEST_ACCEPT");