Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
v10.0.5.96 release | 83.43 KB | Feb 8, 2023 | 9.2.5 | 497 | Download |
v10.0.5.95 release | 83.28 KB | Jan 30, 2023 | 9.2.5 | 445 | Download |
v10.0.5.94 release | 82.70 KB | Jan 30, 2023 | 9.2.5 | 55 | Download |
v10.0.2.87 release | 82.16 KB | Dec 15, 2022 | 9.2.5 | 607 | Download |
v10.0.2.86 release | 82.08 KB | Dec 12, 2022 | 9.2.5 | 417 | Download |
v10.0.2.83 release | 80.50 KB | Dec 5, 2022 | 9.2.5 | 433 | Download |
v10.0.2.80 release | 80.24 KB | Nov 25, 2022 | 9.2.5 | 507 | Download |
v10.0.2.77 release | 79.29 KB | Nov 23, 2022 | 9.2.5 | 304 | Download |
OpenRaidLibraryRetail.10.0.0.71 release | 76.58 KB | Nov 11, 2022 | 9.2.5 | 497 | Download |
OpenRaidLibraryRetail.10.0.0.68 release | 75.19 KB | Oct 28, 2022 | 9.2.5 | 576 | Download |
OpenRaidLibraryRetail.10.0.0.66 release | 74.87 KB | Oct 26, 2022 | 9.2.5 | 412 | Download |
OpenRaidLibraryRetail.9.2.7.62 release | 74.03 KB | Oct 18, 2022 | 9.2.5 | 761 | Download |
OpenRaidLibraryRetail.9.2.7.60 release | 53.19 KB | Oct 15, 2022 | 9.2.5 | 547 | Download |
OpenRaidLibraryRetail.9.2.7.57 release | 53.23 KB | Oct 9, 2022 | 9.2.5 | 756 | Download |
OpenRaidLibraryRetail.9.2.7.56 release | 52.65 KB | Sep 29, 2022 | 9.2.5 | 1,047 | Download |
OpenRaidLibraryRetail.9.2.5.043 release | 50.44 KB | Jun 8, 2022 | 9.2.5 | 1,043 | Download |
OpenRaidLibraryRetail.9.2.0.039 release | 50.13 KB | May 19, 2022 | 9.2.0 | 413 | Download |
OpenRaidLibraryRetail.9.2.0.037 release | 49.93 KB | May 16, 2022 | 9.2.0 | 231 | Download |
OpenRaidLibraryRetail.9.2.0.030 release | 45.18 KB | Apr 23, 2022 | 9.2.0 | 506 | Download |
OpenRaidLibraryRetail.9.2.0.028 release | 44.46 KB | Apr 22, 2022 | 9.2.0 | 100 | Download |
OpenRaidLibraryRetail.9.2.0.027 release | 36.97 KB | Apr 14, 2022 | 9.2.0 | 103 | Download |
OpenRaidLibraryRetail.9.2.0.026 release | 36.90 KB | Apr 14, 2022 | 9.2.0 | 107 | Download |
OpenRaidLibraryRetail.v9.2.0.025 release | 36.23 KB | Apr 13, 2022 | 9.2.0 | 90 | Download |
OpenRaidLibraryRetail.v9.2.0.024 release | 36.31 KB | Mar 30, 2022 | 9.2.0 | 125 | Download |
OpenRaidLibraryRetail.v9.1.5.022 release | 35.61 KB | Feb 17, 2022 | 9.1.5 | 177 | Download |
14a98c6-alpha release | 33.71 KB | Dec 11, 2021 | 9.1.5 | 83 | Download |
OpenRaidLibraryRetail.9.2.5.043-17-gf53ee7a-alpha alpha | 52.50 KB | Sep 27, 2022 | 9.2.5 | 46 | Download |
OpenRaidLibraryRetail.9.2.0.027-1-g81b4e22-alpha alpha | 37.49 KB | Apr 22, 2022 | 9.2.0 | 61 | Download |
OpenRaidLibraryRetail.v9.1.5.022-2-g2fd5ed6-alpha alpha | 35.61 KB | Mar 30, 2022 | 9.1.5 | 147 | Download |
0d43d24-alpha alpha | 33.77 KB | Jan 15, 2022 | 9.1.5 | 67 | Download |
Description
What this library do?
Share information using comms, these comms does not use serialization hence they has a very small size in bytes.
Due to this, the library can keep the pace on updating in real time even during combat.
A working example is found inside Details! Damage Meter Interface/AddOns/Details/frames/window_cdtracker.lua
Usage cases: when your addon need information about:
- Gear Durability
- Item Level
- Missing Gems
- Missing Enchants
- Missing Weapon Enchant
- Cooldowns update in real time, when a player in the raid use it, when it is ready or when it did reduced its time
- List of cooldowns of a player in the raid and their status such as: is it ready, is in cooldown, its cooldown time
- Player Spec
- Player Renown
- Player Covenant Id
- Player Talents
- Player PvP Talents
- Player Conduits
Open Raid Library uses only compression by LibDeflate, no serialization, which decreases the amount of data required to send.
API: https://www.curseforge.com/wow/addons/openraid/pages/api
API:
–get the main library object
local openRaidLib = LibStub:GetLibrary(“LibOpenRaid-1.0”)
–request to all players to send all data infomation: cooldowns, gear and player data.
openRaidLib.RequestAllData()
COOLDOWNS:
–get all cooldowns from all units
local allUnitsCooldowns = openRaidLib.GetAllUnitsCooldown()
allUnitsCooldowns = {
[“playerName1”] = {[cooldownSpellId] = cooldownInfo, [cooldownSpellId] = cooldownInfo, …}
[“playerName2”] = {[cooldownSpellId] = cooldownInfo, [cooldownSpellId] = cooldownInfo, …}
[“playerName3”] = {[cooldownSpellId] = cooldownInfo, [cooldownSpellId] = cooldownInfo, …}
}
–get all cooldowns from a single unit
local unitCooldows = openRaidLib.GetUnitCooldowns(unitId [,filter])
@unittId: “player”, “target”, “party2”, “raid12”, …
@filter: “defensive-raid”, “defensive-target”, “defensive-personal”, “ofensive”, “utility”
–can pass more than one filter separating by comma, example: “defensive-raid, defensive-target”
unitCooldows = {
[cooldownSpellId] = cooldownInfo,
[cooldownSpellId] = cooldownInfo,
[cooldownSpellId] = cooldownInfo,
}
–get a cooldownInfo of a single spell from any unit
local cooldownInfo = openRaidLib.GetUnitCooldownInfo(unitId, spellId)
–get cooldown timers to use with progress bar or cooldown frames, percent are normalized (0 to 1), timeLeft is seconds, minValue/maxValue/currentValue are in GetTime() time space, amount of charges
–by using a cooldown info
local isReady, normalizedPercent, timeLeft, charges, minValue, maxValue, currentValue = openRaidLib.GetCooldownStatusFromCooldownInfo(cooldownInfo)
–by using unitID and spellID if necessary
local isReady, normalizedPercent, timeLeft, charges, minValue, maxValue, currentValue = openRaidLib.GetCooldownStatusFromUnitSpellID(unitId, spellId)
EQUIPMENT:
local allPlayersGear = openRaidLib.GetAllUnitsGear()
allPlayersGear = {
[“playerName1”] = playerGear,
[“playerName2”] = playerGear,
[“playerName3”] = playerGear,
}
local playerGear = openRaidLib.GetUnitGear(unitId)
playerGear = {
.durability = number
.ilevel = number
.noGems = {socketId}
.noEnchants = {socketId}
.weaponEnchant = number (oils)
}
UNIT INFORMATION
local allUnitsInfo = openRaidLib.GetAllUnitsInfo()
allUnitsInfo = {
[“unitName1”] = unitInfo,
[“unitName2”] = unitInfo,
[“unitName3”] = unitInfo,
}
local unitInfo = openRaidLib.GetUnitInfo(unitId)
unitInfo = {
.specId = number
.specName = string
.role = string
.renown = number
.covenantId = number
.talents = {talentId, talentId, talentId, …}
.pvpTalents = {talentId, talentId, talentId}
.conduits = {spellId, conduitLevel, spellId, conduitLevel, spellId, conduitLevel, …}
.class = string class eng name ‘ROGUE’
.classId = number
.className = string class localized name
.name = string name without realm
.nameFull = string name with realm ‘unitName-ServerName’
}
CALLBACKS:
Inform your addon when data has been updated. Below there’s a summary of them, see the Documentation Here for usage examples.
To register a callback simple use:
function MyAddonObject.OnCooldownListUpdated(unitId, unitCooldowns, allUnitsCooldowns)
end
openRaidLib.RegisterCallback(MyAddonObject, “CooldownListUpdate”, “OnCooldownListUpdated”)
- “CooldownListUpdate“: triggers when the lib received a list of cooldowns from another unit in the group.
- “CooldownUpdate“: triggered when an unit in the group uses a cooldown or the timeleft of a cooldown of an unit got an update.
- “CooldownListWipe“: when the list of cooldowns get a wipe, usually when the player leave the group.
- “GearUpdate“: when received an update from a player with all information about the gear.
- “GearDurabilityUpdate“: when the gear durability of a player in the group changes.
- “GearListWipe“: when the list of gear get a wipe, usually when the player leave the group.
- “UnitInfoUpdate“: a unit in the group has been updated.
- “UnitInfoWipe“: when the unit info got wipped, usually when the player leave the group.
- “TalentUpdate“: when a unit changed a talent.
- “PvPTalentUpdate“: when an unit changed a pvp talent.
Add a comment