LibBossIDs-1.0

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[mobID] then 
  print("Found a boss!") 
end

One can get the mobID from a GUID the following way

local mobid = tonumber(UnitGUID("target"):sub(-13, -9), 16)

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

  • 7 comments
  • Avatar of Dohkoken Dohkoken Jan 14, 2012 at 17:09 UTC - 1 like

    Thanks 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.

  • Avatar of Dohkoken Dohkoken Jan 13, 2012 at 10:43 UTC - 0 likes

    the ID for warmaster blackhorn is wrong [39399] = true, Warmaster Blackhorn Warmaster Blackhorn is "56427" Thanks for change.

  • Avatar of mikk mikk Apr 10, 2011 at 18:08 UTC - 0 likes

    I'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.

    Last edited Apr 10, 2011 by mikk
  • Avatar of Morgalm Morgalm Feb 17, 2011 at 00:32 UTC - 0 likes

    Anyone checking the tickets on this project?

  • Avatar of mysticalos mysticalos Sep 16, 2010 at 01:55 UTC - 0 likes

    that 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

    Last edited Sep 16, 2010 by mysticalos
  • Avatar of Shefki 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.

  • Avatar of jokeyrhyme jokeyrhyme Dec 22, 2009 at 20:01 UTC - 0 likes

    Just a heads up. I believe the 3.3 method of getting a MobID is now:

    mobid = tonumber(GUID:sub(7, 10), 16)
    

    I sourced this from the official 3.3 API Changes thread which states:

    Quote:

    The format of NPC GUId's has changed, the creature ID is now two hex digits (8 bits) to the left, e.g. Hogger (0x1C0) is now xF13001C0000005D2 (formerly xF1300001C00005D2)

  • 7 comments

Facts

Date created
Mar 12, 2009
Category
Last update
Apr 29, 2013
Development stage
Release
License
Public Domain
Curse link
LibBossIDs-1.0
Reverse relationships
5
Downloads
75,944
Recent files
  • A: r85 for 5.2.0 Apr 29, 2013
  • A: r84 for 5.2.0 Apr 13, 2013
  • A: r83 for 5.2.0 Mar 05, 2013
  • A: r82 for 5.0.5 Mar 05, 2013
  • A: r81 for 5.0.4 Sep 11, 2012

Authors

Relationships

Embedded library
Ace3