Code:
elseif (event == "GUILD_ROSTER_UPDATE" and IsInGuild() ~= nil) then
local bootNum = 0
for i = 0, GetNumGuildMembers() do
local name, rank, rankIndex, level, classLocale, zone, note, officernote, online, status, class = GetGuildRosterInfo(i)
-- check for blacklist
local index = BlackList:GetIndexByName(name)
if (index > 0) then
local player = BlackList:GetPlayerByIndex(index)
local alreadywarned = false
for warnedname, timepassed in pairs(Already_Warned_For["GUILD_ROSTER"]) do
if ((name == warnedname) and (GetTime() < timepassed+10)) then
alreadywarned = true
end
end
if (not alreadywarned) then
Already_Warned_For["GUILD_ROSTER"][name]=GetTime()+300
BlackList:AddSound()
BlackList:UpdateDetails(index, nil, nil, level, class, nil)
BlackList:AddErrorMessage(name .. " is on your Black List and is in your GUILD.", "red", 5)
if(player["reason"] ~= "") then
BlackList:AddMessage(name .. " is on your Black List and is in your GUILD, reason:" .. player["reason"], "red")
else
BlackList:AddMessage(name .. " is on your Black List and in your GUILD", "red")
end
Not getting a lua error, but the info isnt being transmitted to other guild members