Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
r20-release release | 3.62 KB | Nov 23, 2020 | 9.0.2 | 0 | ![]() |
r18-release release | 3.62 KB | Jun 26, 2019 | 8.2.0 | 636 | ![]() |
r16-release release | 3.64 KB | Jul 17, 2018 | 8.0.1 | 650 | ![]() |
r14-release release | 3.72 KB | Mar 1, 2018 | 7.3.5 | 374 | ![]() |
r10-release release | 3.78 KB | Oct 26, 2016 | 7.1.0 | 840 | ![]() |
r8-release release | 3.78 KB | Jul 20, 2016 | 7.0.3 | 951 | ![]() |
r6-release release | 3.96 KB | Oct 9, 2015 | 6.2.2 | 1,055 | ![]() |
r4-release release | 3.88 KB | Sep 19, 2015 | 6.2.2 | 150 | ![]() |
r19-alpha alpha | 3.37 KB | Nov 23, 2020 | 9.0.2 | 0 | ![]() |
r17-alpha alpha | 3.37 KB | Jun 26, 2019 | 8.2.0 | 17 | ![]() |
r15-alpha alpha | 3.37 KB | Jul 17, 2018 | 8.0.1 | 43 | ![]() |
r13-alpha alpha | 3.72 KB | Mar 1, 2018 | 7.3.5 | 49 | ![]() |
r12-alpha alpha | 3.71 KB | Mar 1, 2018 | 7.2.5 | 46 | ![]() |
r11-alpha alpha | 3.36 KB | Jun 29, 2017 | 7.2.5 | 105 | ![]() |
r9 alpha | 3.71 KB | Oct 25, 2016 | 7.1.0 | 106 | ![]() |
r7 alpha | 3.71 KB | Jul 19, 2016 | 7.0.3 | 107 | ![]() |
r5 alpha | 3.89 KB | Sep 24, 2015 | 6.2.2 | 121 | ![]() |
r3 alpha | 3.83 KB | Sep 19, 2015 | 6.2.2 | 78 | ![]() |
Description
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()
Add a comment