Log in

View Full Version : [WoW] Macro to start dungeon finder if in my party 2 players



megamozg
03-30-2017, 09:17 PM
How to start a dungeon finder only in party with 2 persons

My try but not working
/script partyMembers = GetNumPartyMembers()
if (partyMembers == 2) then /click LFDQueueFrameFindGroupButton

Ikevink
03-30-2017, 10:00 PM
Can't do /click in an if statement, but it'll work this way
/run if (GetNumGroupMembers()==2) then LFDQueueFrameFindGroupButton:Click("left",true) end
or
/run local partyMembers=GetNumPartyMembers(); if (partyMembers==2) then LFDQueueFrameFindGroupButton:Click("left",true) end

( /run is the same as /script )

Looking further, it's possible "left" should be "LeftButton", but it seems to work anyway

megamozg
03-31-2017, 04:36 AM
Can't do /click in an if statement, but it'll work this way
/run if (GetNumGroupMembers()==2) then LFDQueueFrameFindGroupButton:Click("left",true) end
or
/run local partyMembers=GetNumPartyMembers(); if (partyMembers==2) then LFDQueueFrameFindGroupButton:Click("left",true) end

( /run is the same as /script )

Looking further, it's possible "left" should be "LeftButton", but it seems to work anyway
thank you its working but GetNumPartyMembers() - Returns the number of players in your party, excluding yourself, so need to change this "GetNumGroupMembers()==1"

ebony
03-31-2017, 10:03 AM
Should not really help or talk about private servers u would off been better leaving that out!