Auto ignore.

90 Night Elf Hunter
14535
I have a guild member who is... let's say irksome. I have them (well one of their alts) or ignore right now. The guild master says I should unignore him for raids. Is it possible to create an addon that will ignore this person and all his alts (from reading the player or officer notes in the roster), automatically unignore him for the duration of the raid if he is in it, and then reignore him upon leaving the group?
Reply Quote
90 Gnome Warrior
12295
Is the lifting of names out of the roster mandatory? If you can manually supply a list of names then it's much easier.

Assuming he only has one account (you can hope!) the following should (in theory) unignore any one of the listed names if they join your raid (or you join a raid where they're present), and put them back on ignore after one of you leaves the raid.

local names = { "Mainsname", "Altsname", "Anotheralt", "Etc" }
local f = CreateFrame("Frame")
f:SetScript("OnEvent",function(self)
local inRaid
for i=1,#names do
if UnitInRaid(names[i]) then
inRaid = names[i]
break
end
end
if inRaid and not self.ignoredName then
DelIgnore(inRaid)
self.ignoredName = inRaid
elseif not inRaid and self.ignoredName then
AddIgnore(inRaid)
self.ignoredName = nil
end
end)
f:RegisterEvent("GROUP_ROSTER_UPDATE")
Edited by Ro on 10/5/2012 10:48 AM PDT
Reply Quote
90 Night Elf Hunter
14535
It's not mandatory that it pulls from the guild roster, I can just hardcode the names in. I'll give this a try.
Reply Quote
90 Night Elf Hunter
14535
Ok, so I was just in a raid with the guild member in question. It unignored him correctly on joining the raid (he was there before me if that makes a difference), however it did not reignore him upon leaving the raid (again, I left before he did if that matters).
Reply Quote

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Forums Code of Conduct

Report Post # written by

Reason
Explain (256 characters max)
Submit Cancel

Reported!

[Close]