This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Can someone update this macro for me?
Post Reply
Return to board index
Post by
Mike
/run for i=1,GetNumRaidMembers() do if ("raid"..i=="player") then else UninviteUnit("raid"..i) end end
It kicks all players in a raid instantly, basically disbanding the entire raid.
Used to work pre5.0 now it doesnt, I presume the updated API broke it?
I dont know anything about coding above basic macros :D
Thanks
Post by
Panacia
Try replacing GetNumRaidMembers() with GetNumGroupMembers()
Post by
janniie
/run for i=1,GetNumGroupMembers() do if "raid"..i~="player" then UninviteUnit("raid"..i) end end
Post by
pelf
I'm curious ... how is the string
"raid"
plus a number between 1 and 40
ever
going to
equal
the string
"player"
?
Post by
Neffi
I'm curious ... how is the string
"raid"
plus a number between 1 and 40
ever
going to
equal
the string
"player"
?
It doesn't. But you cannot uninvite yourself so it
appears
to be correct.
/run for i=1,40 do UninviteUnit('raid'..i)end
Does exactly the same thing.
Post by
pelf
Yeah. There we go.
Post by
DcolonRage
Because the API for GetNumRaidMembers was removed in 5.0.4
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.