thanks, it works now:
Code:
local frame = CreateFrame("Frame")
frame:RegisterEvent("PARTY_LOOT_METHOD_CHANGED")
local function eventHandler(self, event, ...)
local method, _, _ = GetLootMethod()
if event == "PARTY_LOOT_METHOD_CHANGED" then
if method ~= master or freeforall then
if IsInRaid() and UnitInRaid("player") and UnitIsGroupLeader("player") then
if InGuildParty()
then
SetLootMethod("master", UnitName("player"))
else
SetLootMethod("freeforall")
end
end
end
end
end
frame:SetScript("OnEvent", eventHandler)
but now they ask a PopupDialogs frame to check because dont need this when doing a premade-group, should keep personal loot.
i have no idea to do that. maybe slash command to enable/disable is better way?