Type "X" to join my awesome guild.
Not sure how to do this but there is a
AutoInvite to group AddOn and a
GuildInvite AddOn.
The AutoInvite handles CLI monitoring and execution and the GuildInvite has a menu function to add player to guild. That looks like this;
Lua Code:
for i = 1, GetNumGuilds() do
local gid = GetGuildId(i)
if DoesPlayerHaveGuildPermission(gid, GUILD_PERMISSION_INVITE) then
local guildName = GetGuildName(gid)
AddMenuItem(zo_strformat(GINV_GUILDINVITE, guildName), function() AddPlayerToGuild(name, gid, guildName) end)
end
Wondering if someone can combine the two so its automatic?