View Single Post
01-12-15, 12:22 PM   #6
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Originally Posted by Phanx View Post
The more I think about it, the more strongly I'd recommend (you or someone else) to just build arena frames from scratch as an oUF layout. All the basic stuff is already handled for you, so aside from telling it where to put things (eg. health bar here, name text there, auras underneath) you'd only need to write the PvP-specific stuff like trinket and DR tracking yourself.[...] or just updating spell IDs and DR data.
That is definitly possible, oUF_Adirelle does that. It's not licensed open source however so you can't copy any code from it. But you can use DRData and/or DiminishingReturns:

http://www.wowace.com/addons/drdata-1-0/ (licensed BSD) for an example, check here

OR
http://www.wowace.com/addons/diminishingreturns/

Trinkets are kind of easy, just listen to UNIT_SPELLCAST_SUCCEEDED.

lua Code:
  1. local cooldown_times = {}
  2. cooldown_times[GetSpellInfo(59752)] = 120
  3. cooldown_times[GetSpellInfo(42292)] = 120
  4. -- wotf
  5. -- cooldown_times[GetSpellInfo(7744)] = 30

You can also just add http://www.wowinterface.com/download...FTrinkets.html.
  Reply With Quote