Friday, September 2, 2011

Can I use a macro to leave a group?

Question

If I join a pick-up group, I generally try to see the dungeon or raid through to the end, but sometimes circumstances make that impossible. Maybe my guild is convening for a raid, or maybe I haven't paid as much attention to the clock as I should have, so I need to hearth out and list my items on the AH before quitting for the day.

In circumstances like these, it'd be handy to have a button that simultaneously announces that I'm leaving, apologizes, and explains that I have to go do something else before dropping me from the group and activating my hearthstone (which I can then choose to either permit to complete the cast, or move to interrupt as needed).

The explanation/apology part is easy; I just include two lines prefaced with /p as normal. Is there a command to leave the party, though? I tried this:

/p I'm so sorry, but my wife needs me to leave, so I'm going to have to stop here.
/p Thanks again for grouping with me.
/leaveparty
/leave

Neither /leaveparty nor /leave accomplished anything, though. Any ideas what I should do instead? How about for activating my hearthstone?

Answer

You can try either of these ones (they are case sensitive):

/run LeaveParty()

/script LeaveParty();

Hope that helps.

No comments:

Post a Comment