View Single Post
06-07-11, 11:20 AM   #9
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
does this work? (provided that offline members aren't currently shown in the guild roster tab)
Code:
local t = {}

function SpamGuildies()
	for i = 1, select(2, GetNumGuildMembers()) do
		local name = GetGuildRosterInfo(i)
		if not t[name] then
			SendChatMessage("test message", "WHISPER", nil, name)
			t[name] = true
		end
	end
end
macro version; where t1 is some arbitrarily global variable
Code:
/run t1=t1 or {}for i=1,select(2,GetNumGuildMembers())do local name=GetGuildRosterInfo(i)if not t1[name]then SendChatMessage("test message","WHISPER",nil,name)t1[name]=true end end

Are there really no addons out there which can do what he wants?

Last edited by Ketho : 06-07-11 at 05:11 PM.
  Reply With Quote