Hi.
Looking for some kind of indicator which displays when personal loot is not toggled while in a heroic dungeon.
If anyone could share this, it'd be greatly appreciated.
Hi.
Looking for some kind of indicator which displays when personal loot is not toggled while in a heroic dungeon.
If anyone could share this, it'd be greatly appreciated.
I'm too stupid with Lua to make something for you, but it's probably this API you should use
http://wowprogramming.com/docs/api/GetLootMethod
not really any indicator, but an automatic way to switch to personal loot when you are the leader or announce in chat when someone else is
not fully tested - i appreciate any feedback
Code:--ZONE_CHANGED_NEW_AREA function() -- are we in an instance? local isInstance, instanceType = IsInInstance() if isInstance and instanceType == "party" then -- what is the current loot method? local method = GetLootMethod() if method ~= "personalloot" then -- is the player leader? local isLeader = UnitIsGroupLeader("player") if isLeader then SetLootMethod("personalloot") print("Switched Loot Method to personal!") else SendChatMessage("Loot Method not personal", "PARTY") end end end end
Last edited by mmoc3112c121eb; 2014-11-21 at 08:18 AM.
Hi, here's what I've come up with so far:
It uses basically your code, zusiline, as custom triggers/end triggers. It's only set to load while you're in a 5 player dungeon. I may have gone a little over zealous with the events that it fires on. (So far I have it checking on: PARTY_LOOT_METHOD_CHANGED, PLAYER_ENTER_COMBAT, PLAYER_LEAVE_COMBAT, ZONE_CHANGED, ZONE_CHANGED_INDOORS, ZONE_CHANGED_NEW_AREA. I probably could go down to just loot method, zone change new area, but I wanted to make sure I caught it. I'm new to the wow lua api, and it's only a small check so I figured performance should't be too bad.Code:deughaqickArerJsQkNsQKzjHClc0UKqzyKuCmjuTmck9mciMgbu(gbuDockCpLs)JqLdkvzHeQ6HsfMOurxKi9rjQgPuvDsjyLe1mjP6MeGDkr(PsXqjcwQuPEkPMkf2kbK(kjL6SsuATsumxcfTxr)vfny0HvyXKuYJvPjljxMQnts(mbz0QWPLYRjOYSjXTvQ2TQ(TsgUKA5k65uA6cxNI2oHsFNi05jK1tqvZNqH9dNfpns9EQRsDvAKAL1Okns9CP4PrQ3nvIwAKrgP206N2MW7P4tDmu8psJuVBQeT0iJmsTP1pRAQu1UMkHOuTs9CC90i17M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Q8uhTDVkJu3QsTe8PD9df1xRqyM6X32hrB9PrQTXygPrQdr1EQRNU1JuxpDRhP2EmBVWLrQ3hTpnsDiQ2tD90TEK66PB9i11MkwpJuRQ9n7rAK6quTN66PB9i11t36rQvnQ8mYi1V5UXSjKq(0MLkEQRA2ALHOc31N6cF4tvJRlMfUR3kMTxSN7n798UAVAne60w732qjJuBtTWwm1umHrXe4PwSzPIlWew1KrMa
Let me know if anyone improves it at all!
zusiline, thank you again for your sample function!
Last edited by preludeoflight; 2014-11-23 at 01:02 AM. Reason: Spelling mistake.