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[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"))

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

  • 8 comments
  • Avatar of theondry theondry Sep 12, 2013 at 15:22 UTC - 0 likes

    -------------------------------------------------------------------------------
       -- Siege of Orgrimmar
       -------------------------------------------------------------------------------
       -- Vale of Eternal Sorrows
       [71543]    = true,    -- Immerseus
       [71475]    = true,    -- Rook Stonetoe, The Fallen Protectors
       [71479]    = true,    -- He Softfoot, The Fallen Protectors
       [71480]    = true,    -- Sun Tenderheart, The Fallen Protectors
       [72276]    = true,    -- Norushen, Amalgam of Corruption
       [71734]    = true,    -- Sha of Pride
       -- Gates of Retribution
       [72249]    = true,    -- Galakras
       [72311]  = true,  -- Varian (part of the Galakras encounter's trigger)
       [72560]  = true,  -- Lor'Themar (His hair triggers the Galakras encounter)
       [71466]    = true,    -- Iron Juggernaut
       [71859]    = true,    -- Haromm, his Darkness exceeded only by his Shamanism
       [71858]  = true,  -- Kardriss, his Shamanism exceeded only by his Darkness
       [71515]    = true,    -- General Nazgrim
       -- The Underhold
       [71454]    = true,    -- Malkorak
       [73720]    = true,    -- Mogu Spoils (Spoils of War)
       [71512]  = true,  -- Mantid Spoils (Spoils of War)
       [71529]    = true,    -- Thok the Bloodthirsty, her Thirst exceeded only by her Blood
       -- Downfall
       [71504]    = true,    -- Siegecrafter Blackfuse, his fuses exceeded only by his... wait...
       [71591]  = true,  -- Automated Shredder (Part of the Siegecrafter fight... not sure if this is the trigger or just him)
       [71152]  = true,  -- Skeer the Bloodseeker, <Paragon of the Klaxxi>
       [71153]  = true,  -- Hisek the Swarmkeeper, <Paragon of the Klaxxi>
       [71154]  = true,  -- Ka'roz the Locust, <Paragon of the Klaxxi>
       [71155]  = true,  -- Korven the Prime, <Paragon of the Klaxxi>
       [71156]  = true,  -- Kaz'tik the Manipulator, <Paragon of the Klaxxi>
       [71157]  = true,  -- Xaril The POisoned Mind, <Paragon of the Klaxxi>
       [71158]  = true,  -- Rik'kal the Dissector, <Paragon of the Klaxxi>
       [71160]  = true,  -- Iyyokuk the Lucid, <Paragon of the Klaxxi> (71159 is Ghazrooki, weird isn't it?)
       [71161]  = true,  -- Kil'ruk the Wind-Reaver, <Paragon of the Klaxxi>
       [71865]    = true,    -- Garrosh Starscream, That's right. He was a Decepticon all this time

    I got bored, but not bored enough to figure out how to merge the change myself.

    Last edited Sep 12, 2013 by theondry
  • 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)

  • 8 comments

Facts

Date created
Mar 12, 2009
Category
Last update
Nov 07, 2014
Development stage
Release
License
Public Domain
Curse link
LibBossIDs-1.0
Reverse relationships
5
Downloads
92,611
Recent files
  • R: r90-release for 6.0.3 Nov 07, 2014
  • A: r89 for 6.0.2 Oct 22, 2014
  • R: r88-release for 5.4.8 Jul 28, 2014
  • A: r87 for 5.4.8 Jul 28, 2014
  • A: r86 for 5.4.0 Sep 13, 2013

Authors

Relationships

Embedded library
Ace3