promotional bannermobile promotional banner

LibCanUse

Abandoned
Tooltip scanning library that attempts to gauge if a class can use any given item.

LibCanUse is a tooltip scanning library originally developed for EminentDKP that will scan the tooltip of an item to try and determine if a given class can use it.

Usage

Load the library:

local canuse = LibStub:GetLibrary("LibCanUse-1.0")

Enable/disable primary stat checking:

canuse:UseStatCheck(true)

Check if a class can use an item:

local classname = select(2,UnitClass("player"))
local itemlink = select(2,GetItemInfo(65003))
if canuse:CanUseItem(classname,itemlink) then
  -- can use
else
  -- cant use
end

Localizations

Since this is a tooltip scanning library it is obviously dependent on the locale of the client, currently only enUS and ruRU are supported.

The LibCanUse Team

profile avatar
  • 2
    Projects
  • 8.3K
    Downloads

More from _ForgeUser6395050

  • EminentDKP project image

    EminentDKP

    • 7.9K
    • Addons

    A simple and intuitive GUI for managing loot via DKP for your guild. It will be the most fun you get out of a DKP system.

    • 7.9K
    • March 5, 2012
    • Addons
    • +3
  • EminentDKP project image

    EminentDKP

    • 7.9K
    • Addons

    A simple and intuitive GUI for managing loot via DKP for your guild. It will be the most fun you get out of a DKP system.

    • 7.9K
    • March 5, 2012
    • Addons
    • +3