Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-11-17, 03:20 AM   #1
Nieve
A Defias Bandit
Join Date: Feb 2017
Posts: 2
Chest loot detection

Hi,

I'm trying to make a loot assistant addon form my guild, to help our raid master to keep a count of player loots. I'm near to finish it, but i have a problem detecting loot when loot source is not from corpse but from a chest (like krossus). Originaly I try this code for loot detection:

Code:
elseif (event == "LOOT_OPENED") then
		local raidID = UnitInRaid("player")
		local masterID = select(3, GetLootMethod())
		if (raidID and masterID and raidID == masterID) then
			if (UnitLevel("target") == -1) then
				RILoot_ManageOpen("inRaid")
			end
		end
It obviously isn't working for chest, since I am only looking for targeted unit level, and I cant figure out how to detect this situation.

May someone help me a bit with that?

Sorry for my bad english and thanks in advance
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » Chest loot detection


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off