Quantcast [Help] Invite ALL Guild - WoWInterface
Thread Tools Display Modes
Unread 02-20-12, 03:21 PM   #1
A Warpwood Thunder Caller
Join Date: Aug 2011
Posts: 99
[Help] Invite ALL Guild

Hello friends WOWInterface,

I'm trying to create a macro to invite all members to level 80 to 85 of my guild for my Raid, I came to this command line.

/run for i=1,GetNumGuildMembers(true) do local name,_,_,level = GetGuildRosterInfo(i); if level >= 85 and level <= 85 then InviteUnit(name); end end

This macro invites even those who are offline, is to change it?
Is right or there's something that should be changed or can be improved?
Caetan0 is offline   Reply With Quote
Unread 02-20-12, 03:35 PM   #2
A Pyroguard Emberseer
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,444
The 9th value from GetGuildRosterInfo() should return whether or not they're online. Also the level cap is already 85, so you only need to check if they're 80+.

/run for i=1,GetNumGuildMembers(true) do local name,_,_,level,_,_,_,_,online=GetGuildRosterInfo(i); if online and level>=80 then InviteUnit(name); end
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
SDPhantom is offline   Reply With Quote

Go BackWoWInterface » AddOns, Compilations, Macros » Macro Help » [Help] Invite ALL Guild

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off