Skip to content

lua-wow/LibMobs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LibMobs

Worlf of Warcraft library of important emenies from instances.

Usage

local LibMobs = LibStub("LibMobs")
assert(LibMobs, "Addon requires LibMobs")

local frame = CreateFrame("Frame")
frame:RegisterEvent("PLAYER_TARGET_CHANGED")
frame:SetScript("OnEvent", function (self, event, ...)
    if event == "PLAYER_TARGET_CHANGED" then
        local unit = "target"
        local guid = UnitGUID(guid)
        local guidInfo = LibMobs:ParseCreatureGUID(guid)
        if guidInfo then
            print(guidInfo.instanceId, guidInfo.zoneID)
        end
    end
end)

About

library to help track important instance npcs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages