LibRareIds-1.0

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!

You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
Dec 10, 2010
Category
Last update
Jan 02, 2015
Development stage
Release
License
All Rights Reserved
Curse link
LibRareIds-1.0
Downloads
42,646
Recent files
  • R: 1.0.10 for 6.0.3 Jan 02, 2015
  • R: 1.0.9 for 5.3.0 Jul 30, 2013
  • R: 1.0.8 for 5.2.0 Apr 26, 2013
  • R: 1.0.7 for 5.1.0 Dec 03, 2012
  • R: 1.0.6 for 5.0.4 Sep 09, 2012

Authors

Relationships

Embedded library
LibStub