View Single Post
10-30-16, 08:48 PM   #3
EKE
An Aku'mai Servant
 
EKE's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2011
Posts: 37
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?
  Reply With Quote