WoW LibPartyItemLevels-1.0 addon Dragonflight/Wrath of the Lich King Classic 2024
logo
wow addon LibPartyItemLevels-1.0

LibPartyItemLevels-1.0

Game Version: 7.1.5
Total Downloads: 369
Updated: Feb 25, 2017
Created: Feb 23, 2017
download LibPartyItemLevels-1.0Download Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
v0.1b release 11.59 KB Feb 25, 2017 7.1.5 369 download LibPartyItemLevels-1.0 v0.1b releaseDownload

Description

Share this:

LibPartyItemLevels-1.0

Performs inspection of raid, party, and target units, computes average item level,
and caches for future querying without additional inspect delays.

Usage

local libpil = LibStub:GetLibrary("LibPartyItemLevels-1.0", true)

-- Define a callback to handle ItemLevelUpdated
libpil.RegisterCallback(yourAddon, "ItemLevelUpdated")
function yourAddon:ItemLevelUpdated(unit, level)

end

--[[
Will fire off an inspect, which can take several seconds to resolve.
This is an idempotent operation, you can call it multiple times safely.

If an ilvl for a unit is already cached, GetItemLevel will return the cached
value, but you shouldn't assume that it's always available.
]]--
libpil:GetItemLevel("player")

Comments

Add a comment