FADE World Timers

FADE World Timers

48.6k Downloads

[Enhancement] Leech information from other addons

Road-block opened this issue ยท 1 comments

commented

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.

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.

commented

Hey!
I have considered it, yeah, but due to lack of time recently, I haven't had time. It's something I'll look into soon, as me and other people have thought about the same thing. I'll probably start with DBM, as that seems to be the easier one, and what most people use.