View Single Post
08-18-12, 07:59 PM   #228
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
Originally Posted by Ketho View Post
For the 16004 build seems they only added GetLootSourceInfo(slot) (unused) wowpedia/wowprog

Edit:
It seems to be used for differentiating between from what GUIDs an item (stack) is while AoE looting

In my case there were [Wool Cloth] x10 in the 4th loot slot
Lua Code:
  1. -- guid, lootQuantity = GetLootSourceInfo(slot)
  2. GetLootSourceInfo(4) => "0xF130B4AA00000035", 4, "0xF130B4A900000034", 4, "0xF130B4AC00000067", 2
"Riverpaw Poacher" = 0xB4AA = 46250
"Riverpaw Slayer" = 0xB4A9 = 46249
"Riverpaw Shaman" = 0xB4AC = 46252
This was because with AoE looting, it was impossible to determine which NPC an item came from. The WoWDB and WoWHead AddOns could not record accurate drop rates because of this. The function makes this possible again.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.