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


Target macro:

/run print(tonumber((select(6, strsplit("-", UnitGUID("target"))))))

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

  • 9 comments
  • Avatar of Kamarika Kamarika Aug 03, 2016 at 08:10 UTC - 0 likes

    Legion bosses from wowhead:

    [106576] = true, -- Advisor Melandrus
    [98208] = true, -- Advisor Vandros
    [98542] = true, -- Amalgam of Souls
    [109943] = true, -- Ana-Mouz  
    [108864] = true, -- Anub'esset  
    [95886] = true, -- Ash'Golm  
    [102614] = true, -- Blood-Princess Thal'ena
    [113847] = true, -- Brann Bronzebeard
    [109331] = true, -- Calamir  
    [113534] = true, -- Cenarius  
    [104415] = true, -- Chronomatic Anomaly
    [98205] = true, -- Corstilax  
    [107704] = true, -- Dargrul  
    [99200] = true, -- Dresaron  
    [110378] = true, -- Drugon the Frostblood
    [111000] = true, -- Elerethe Renferal
    [110965] = true, -- Elisande  
    [106373] = true, -- Fel Lord Betrug
    [99868] = true, -- Fenryr  
    [108865] = true, -- Festerface  
    [99929] = true, -- Flotsam  
    [98206] = true, -- General Xakal
    [99865] = true, -- Glazer  
    [95675] = true, -- God-King Skovald
    [105503] = true, -- Gul'dan  
    [96754] = true, -- Harbaron  
    [96759] = true, -- Helya  
    [104528] = true, -- High Botanist Tel'arn
    [108879] = true, -- Humongris  
    [110929] = true, -- Hymdall  
    [96646] = true, -- Hyrja  
    [105393] = true, -- Il'gynoth  
    [98696] = true, -- Illysanna Ravencrest
    [96015] = true, -- Inquisitor Tormentorum
    [98203] = true, -- Ivanyr  
    [108573] = true, -- Kil'jaeden  
    [91797] = true, -- King Deepbeard
    [101002] = true, -- Krosus  
    [91789] = true, -- Lady Hatecoil
    [108829] = true, -- Levantus  
    [94923] = true, -- Lord Kur'talos Ravencrest
    [108867] = true, -- Millificent Manastorm
    [108863] = true, -- Mindflayer Kaahrj
    [110321] = true, -- Na'zak the Fiend
    [98207] = true, -- Nal'tira  
    [91005] = true, -- Naraxas  
    [107544] = true, -- Nithogg  
    [103160] = true, -- Nythendra  
    [103344] = true, -- Oakheart  
    [110962] = true, -- Odyn  
    [104215] = true, -- Patrol Captain Gerdo
    [91003] = true, -- Rokmora  
    [102387] = true, -- Sael'orn  
    [91808] = true, -- Serpentrix  
    [101403] = true, -- Shade of Xavius
    [108678] = true, -- Shar'thos  
    [108862] = true, -- Shivermaw  
    [102263] = true, -- Skorpyron  
    [98949] = true, -- Smashspite the Hateful
    [106984] = true, -- Soultrapper Mevra
    [107699] = true, -- Spellblade Aluriel
    [103758] = true, -- Star Augur Etraeus
    [104217] = true, -- Talixae Flamewreath
    [103685] = true, -- Tichondrius  
    [99198] = true, -- Tirathon Saltheril
    [104288] = true, -- Trilliax  
    [105300] = true, -- Ularogg Cragshaper
    [100497] = true, -- Ursoc  
    [91784] = true, -- Warlord Parjesh
    [112350] = true, -- Withered J'im
    [96028] = true, -- Wrath of Azshara
    [103769] = true, -- Xavius  
    [96756] = true, -- Ymiron, the Fallen
    [102679] = true, -- Ysondre

    Last edited Aug 03, 2016 by Kamarika
  • 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)

  • 9 comments

Facts

Date created
Mar 12, 2009
Category
Last update
Jun 24, 2015
Development stage
Release
License
Public Domain
Curse link
LibBossIDs-1.0
Reverse relationships
21
Downloads
109,321
Recent files
  • R: r97-release for 6.2.0 Jun 24, 2015
  • A: r96 for 6.2.0 Jun 24, 2015
  • A: r95 for 6.1.0 May 26, 2015
  • R: r94-release for 6.1.0 May 21, 2015
  • A: r93 for 6.1.0 May 21, 2015

Authors

Relationships

Embedded library
Ace3