LibBossIDs-1.0 provides a table that flags mobIDs true if the mob linked to the ID is a boss.
Example:
if LibStub("LibBossIDs-1.0").BossIDs[tonumber(mobID)] then print("Found a boss!") end
One can get the mobID from a GUID in the following way:
local _, _, _, _, _, mobID = strsplit("-", UnitGUID("target"))
Target macro:
/run print(tonumber((select(6, strsplit("-", UnitGUID("target"))))))
- 7 comments
- 7 comments
Facts
- Date created
- Mar 12, 2009
- Category
- Last update
- Sep 23, 2016
- Development stage
- Release
- License
- Public Domain
- Curse link
- LibBossIDs-1.0
- Reverse relationships
- 21
- Downloads
- 115,072
- Recent files
- A: r100 for 7.0.3 Sep 23, 2016
- A: r99 for 7.0.3 Aug 31, 2016
- A: r98 for 6.2.4 Aug 31, 2016
- R: r97-release for 6.2.0 Jun 24, 2015
- A: r96 for 6.2.0 Jun 24, 2015
Relationships
- Embedded library
- Ace3
- Reply
- #7
Dohkoken Jan 14, 2012 at 17:09 UTC - 1 likeThanks Yoshimo for update. It's possible to update lib use. LibStub to r97 http://www.wowace.com/addons/libstub/ Release 1.0.2-40200
thanks.
- Reply
- #6
Dohkoken Jan 13, 2012 at 10:43 UTC - 0 likesthe ID for warmaster blackhorn is wrong [39399] = true,
Warmaster Blackhorn Warmaster Blackhorn is "56427" Thanks for change.- Reply
- #5
mikk Apr 10, 2011 at 18:08 UTC - 0 likesI'm pretty sure GUID is now 5 digits, and that that was the reason for the change. We're coming up on 65535 (0xffff) mobs soon.
My preferred extractor is :sub(-13, -9) since this works backwards from the least significant digit, which is always there, something which is not necessarily true for the most significant digits (when it's 0 =)). Oh and it also works if the leading "0x" is missing.
- Reply
- #4
Morgalm Feb 17, 2011 at 00:32 UTC - 0 likesAnyone checking the tickets on this project?
- Reply
- #3
mysticalos Sep 16, 2010 at 01:55 UTC - 0 likesthat change is back in 4.0 though. i know i'm bumping an old discussion but just saying ;) I doubt it's perminent. probably just for debug/testing and will be reverted on live again like it was in 3.3
- Reply
- #2
Shefki Jun 02, 2010 at 07:47 UTC - 0 likes@jokerrhyme, That change didn't make it to live, so the library description is still accurate.
- Reply
- #1
jokeyrhyme Dec 22, 2009 at 20:01 UTC - 0 likesJust a heads up. I believe the 3.3 method of getting a MobID is now:
I sourced this from the official 3.3 API Changes thread which states: