promotional bannermobile promotional banner

LibDurability

A library for transmitting and receiving durability information of players in your group.

Please support my work on Patreon/GitHub

 

A library for transmitting and receiving durability information of players in your group.

API

LD:Register(addon, function)

addon - The name of your addon (string) or your addon object (table)
function - The name of function tied to the addon object (string) or a function reference

LD:Unregister(addon)

addon - The name of your addon (string) or your addon object (table)

LD:RequestDurability(channel)

channel - The name of the channel to request durability on (string) or nil/false/no value for automatic.

  • Valid channels are INSTANCE_CHAT, RAID, PARTY.

Example:

local LD = LibStub("LibDurability")

local function update(percent, broken, sender, channel)

     print(format("User %s has a durability of %d%% and has %d broken items!", sender, percent, broken))

end

LD:Register("myAddOnNameOrObject", update)

LD:RequestDurability()

The LibDurability Team

profile avatar
Owner
  • 54
    Followers
  • 67
    Projects
  • 514.7M
    Downloads
Donate

More from FunkehView all

  • LittleWigs project image

    LittleWigs

    • 125.4M
    • Addons

    A BigWigs content plugin for dungeons, delves, and scenarios.

    • 125.4M
    • June 25, 2026
    • Addons
  • BigWigs (Boss Timers & Tools) project image

    BigWigs (Boss Timers & Tools)

    • 196.5M
    • Addons

    BigWigs is a modular and extremely lightweight addon designed to provide you with the tools you need to beat any boss encounter.

    • 196.5M
    • June 21, 2026
    • Addons
    • +1
  • BugSack project image

    BugSack

    • 15.0M
    • Addons

    Toss those bugs inna sack.

    • 15.0M
    • June 24, 2026
    • Addons
    • +1
  • BugGrabber project image

    BugGrabber

    • 16.6M
    • Addons

    Grabs bugs for the bug sack.

    • 16.6M
    • June 24, 2026
    • Addons
  • LittleWigs project image

    LittleWigs

    • 125.4M
    • Addons

    A BigWigs content plugin for dungeons, delves, and scenarios.

    • 125.4M
    • June 25, 2026
    • Addons
  • BigWigs (Boss Timers & Tools) project image

    BigWigs (Boss Timers & Tools)

    • 196.5M
    • Addons

    BigWigs is a modular and extremely lightweight addon designed to provide you with the tools you need to beat any boss encounter.

    • 196.5M
    • June 21, 2026
    • Addons
    • +1
  • BugSack project image

    BugSack

    • 15.0M
    • Addons

    Toss those bugs inna sack.

    • 15.0M
    • June 24, 2026
    • Addons
    • +1
  • BugGrabber project image

    BugGrabber

    • 16.6M
    • Addons

    Grabs bugs for the bug sack.

    • 16.6M
    • June 24, 2026
    • Addons