/script n,l,cl,a,c = GetFriendInfo(1); if not c then SetGuildRosterShowOffline(0); n = GetGuildRosterInfo(1); end; InviteUnit(n); PromoteToLeader(n); LeaveParty();
This invites the first person on your friends list (the first online friend), and if you have no online friends, invites the first online guild member. Basically, it saves having to modify a macro if a person you've put it isn't online when you're ghettoing it up.
1. Zone into instance.
2. Hit the macro.
3. ???
4. Profit.
Edit: Modified macro below will also whisper the person just to let them know they're being used! :P
/script n,l,cl,a,c = GetFriendInfo(1); if not c then SetGuildRosterShowOffline(0); n = GetGuildRosterInfo(1); end; InviteUnit(n); PromoteToLeader(n); LeaveParty(); SendChatMessage("Invited you for getto hearth!", "WHISPER", nil, n);