/trunk
version, I'll add an interface component to choose the loot type/threshold. |
- If someone on your friend list sends you a group invite, it automatically accepts it. |
Sure, this addon is not for everyone. I find that most of the time, I'm playing on a 1:1 team |
with whichever friend happens to be online at the time. This is just a convenience addon |
allowing me to do automatically do what I was going to do anyway. |
--************************************************ |
-- INSTALLATION |
-- Version 1.0.1 |
local frame = CreateFrame("FRAME", "aif_frame"); |
frame:RegisterEvent("PLAYER_ENTERING_WORLD"); |
frame:RegisterEvent("FRIENDLIST_UPDATE"); |
if (aif_connected == 1) then |
if (UnitInParty(aif_name) ~= 1) then |
InviteUnit(aif_name) |
-- Set the loot type to Free for All |
SetLootMethod("freeforall"); |
end |
end |
end |
-- Set the loot type to Free for All |
SetLootMethod("freeforall"); |
end |
if (sender == aif_name) then |
AcceptGroup() |
StaticPopup_Hide("PARTY_INVITE"); |
else |
message(sender); |
end |
end |
end |