Thread Tools Display Modes
11-14-08, 09:17 AM   #1
stiq
A Kobold Labourer
Join Date: Nov 2008
Posts: 1
Buff Timer Question

Hi,
I've never written a WoW-AddOn and I have a question on methodology.

My goal is to build an AddOn that displays in a small frame all of the players dots and/or debuffs on the current target.

I've done some reading and research and I'm pretty sure I see how to get the debuffs, my question is how do I get the constant updates. That is, I can get all the DoT and DeBuff info on a once-off call to UnitDebuff, but how do I accomplish the "timer" part of the equation.

Is it simply a continous loop? Or is there a way to set up a pipe between the player-character and the target?

Thanks in advance.
  Reply With Quote
11-15-08, 08:39 AM   #2
slizen
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 15
By using an OnUpdate script
http://www.wowwiki.com/UIHANDLER_OnUpdate
  Reply With Quote
11-15-08, 10:30 AM   #3
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
You can hook the cooldown frame of the (de)buff frame.

Take a look how OmniCC does it.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Buff Timer Question


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off