Page 1 of 1

marco help

Posted: Sat Jul 11, 2015 8:28 pm
by pugzilla
is there a way to add a marco to change party to raid and then give everyone assist

been looking online havent found anything.

i saw a add on that has the option to do that but i dont like the whole add on just that part

Re: marco help

Posted: Wed Jul 22, 2015 10:29 pm
by Bill D Cat
Something like this might work. It is untested, so I can't say for sure if it does. In theory it will convert the party to a raid, and then promote the current party members to raid assistant. The loop only covers the first 6 slots because when you convert a party that's the max number of players that would be in the group.

Code: Select all

SwitchToRaid()
for idx=1, 6, do
  raidnum = "raid"..idx
  SwitchRaidAssistant( UnitRaidIndex( raidnum ) , true  )
end

Re: marco help

Posted: Thu Dec 24, 2015 11:20 am
by pugzilla
/script SwitchToRaid() works to convert it to raid

i cant seem to get the giving all assist part to work though

Re: marco help

Posted: Thu Jan 07, 2016 4:22 am
by kenzu38
That's because the devs misspelled that function.

So this should work:

Code: Select all

SwithRaidAssistant( UnitRaidIndex( unit ) , true  );

Re: marco help

Posted: Thu Jan 07, 2016 7:39 pm
by pugzilla
thanks for the reply on both got the other prolbem fixed. but i still cant seem to get this to give my members assit

Re: marco help

Posted: Fri Jan 08, 2016 6:42 am
by kenzu38
Hmm, I think you'll have to add a wait in between. The game probably takes time to register the switch.

So, try it like this:

Code: Select all

/run SwitchToRaid()
/wait 2
/run for i = 1, 6 do SwithRaidAssistant(UnitRaidIndex("raid"..i),true) end

Re: marco help

Posted: Fri Jan 08, 2016 6:58 pm
by pugzilla
thanks that worked! you da best!