WoW LibRareIds-1.0 addon Shadowlands/Burning Crusade Classic 2022
logo
wow addon LibRareIds-1.0

LibRareIds-1.0

Game Version: 6.0.3
Total Downloads: 39,385
Updated: Jan 2, 2015
Created: Dec 10, 2010
download LibRareIds-1.0Download Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
1.0.10 release 15.58 KB Jan 2, 2015 6.0.3 7,830 download LibRareIds-1.0 1.0.10 releaseDownload
1.0.9 release 12.48 KB Jul 30, 2013 5.3.0 10,297 download LibRareIds-1.0 1.0.9 releaseDownload
1.0.8 release 12.12 KB Apr 26, 2013 5.2.0 3,883 download LibRareIds-1.0 1.0.8 releaseDownload
1.0.7 release 11.82 KB Dec 3, 2012 5.1.0 5,173 download LibRareIds-1.0 1.0.7 releaseDownload
1.0.6 release 11.75 KB Sep 9, 2012 5.0.4 3,970 download LibRareIds-1.0 1.0.6 releaseDownload
1.0.5 release 11.00 KB Dec 9, 2011 4.3.0 8,232 download LibRareIds-1.0 1.0.5 releaseDownload

Description

Share this:

LibRareIds-1.0 returns a table of all rare/rare-elite NPCs in the game. It's a workaround for situations where you can't use UnitClassification (e.g. COMBAT_LOG_EVENT). LibRareIds-1.0 was inspired by LibBossIds-1.0 which is basically the same for dungeon and raid bosses.

Let's find out if the mob with the id 10558 is a rare:

print(LibStub("LibRareIds-1.0").Data[10558] ~= nil) -- true

And this is how to retrieve the id from a GUID:

local GUID = UnitGUID(unitID)

local mobID = tonumber(GUID:sub(-16, -12)) -- WoD 6.x

If you enjoy this library please support it's development. Thanks!

Comments

Add a comment