Quantcast Need help with API about whose loot is this? - WoWInterface
Thread Tools Display Modes
12-21-19, 11:26 PM   #1
jwu98
A Kobold Labourer
Join Date: Dec 2019
Posts: 1
Need help with API about whose loot is this?

I'm new to the API, brand new - this is the first add-on I've ever bothered to try to create.

I'm crawling through the API but I can't find what I need so I figured I'd ask here.

I want to make an add-on can show whose loot is this supposed to be.

GetLootInfo can show: Whether you are eligible to loot this item or not. Locked items are by default shown tinted red. If there is any API can show who is eligible to loot this item?

Really need help!!!!

Thanks.
  Reply With Quote
12-22-19, 01:49 AM   #2
Kanegasi
A Scalebane Royal Guard
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 431
It is not possible in classic for a single install to determine who needs to loot a corpse. The information on retail is only available from the tooltip, so with that line gone from classic, we're blind. It is possible to query if a corpse is yours with CanLootUnit(unit), but in order for a whole party to figure out who "owns" the corpse, an addon or weakaura querying that function has to be installed by everyone.

If you intend on making that and can get a whole group to install it, the way Blizzard uses it on retail suggests the return won't work immediately after a mob death, you have to delay it by at least 1 second. The relevant usage is in retail's tutorial code:

https://github.com/Gethe/wow-ui-sour...ogic.lua#L1501
  Reply With Quote
12-24-19, 02:24 AM   #3
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,867
From my observations, the only times a loot item is tinted red is either you're in a group with master looter on or the mob dropped a quest item that you already have enough of to complete the objective. Loot intended for other people simply doesn't show up in classic.
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote

WoWInterface » Classic - AddOns, Compliations, Macros » Classic - AddOn Help/Support » Need help with API about whose loot is this?

Thread Tools
Display Modes

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