[Enhancement] Leech information from other addons
Road-block opened this issue ยท 1 comments
The idea here is to add a timer module (let's say Timers\ThirdParty.lua
) where we register prefixes of other addons that provide similar functionality and listen in to their chatter (no propagation, receive only)
Use that info to fill in for missing timers.
- DeadlyBossMods Classic
- WorldBuffTracker
- (Possibly gathering addons or felwood sync addons)
How would this look.
We register the prefix used by those addons and passively monitor their comms.
For DBM it happens here and here.
You'd register the D4C
prefix, split on \t
and check the first fragment for WBA
and if it is then get the remaining information for which buff sequence is detected and timer offset.
The full DBM message follows this format as an example for Onyxia: prefix: D4C
message: WBA\tOnyxia\tHorde\tRallying Cry of the Dragonslayer\t15
local _, timer, faction, buff, offset = strsplit("\t",message)
For WorldBuffTracker it's using WBT-1
for Warchief's blessing, WBT-2
for Onyxia and WBT-3
for Nefarian.
Relevant lines are in the C_L_E_U and CHAT_MSG_ADDON handlers for that addon.
If it's something you'd consider useful, happy to assist.