Soo i kinda need help with this macro...
I'd like to whisper only online guildy's but the macro i've "made" tries to whisper offline guildmembers as well...
Code:
/script n=GetNumGuildMembers(); i=1; while(i<n+1) do c,g=GetGuildRosterInfo(i); SendChatMessage("test","WHISPER",nil,c); end; i=i+1; end;
i was thinking of
Code:
/script n=GetNumGuildMembers(); i=1; while(i<n+1) do c,g=GetGuildRosterInfo(i); if online == 1 then SendChatMessage("test","WHISPER",nil,c); end; i=i+1; end;
but for if i try to do it like this he just won't do anything .
Cheers
PS :
Also had this :
Code:
/run for i=1,GetNumGuildMembers(true) do local name,_,_,_,_,zone_,_,online = GetGuildRosterInfo(i); SendChatMessage("Yoooo "..name..".. What are you doing in "..zone.."?","WHISPER",nil ,name) ; end
result = same