View Single Post
Unread 02-20-12, 03:35 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,086
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+.

Code:
/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