Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(94 Kb)
Download
Updated: 10-14-14 09:46 PM
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.2)
Updated:10-14-14 09:46 PM
Created:unknown
Downloads:103,823
Favorites:587
MD5:
Categories:Buff, Debuff, Spell, Casting Bars, Cooldowns, Combat Mods
NeedToKnow  Popular! (More than 5000 hits)
Version: 4.0.18
by: Kitjan, lieandswell
NeedToKnow lets you monitor specific buffs, debuffs, cooldowns, and totems as timer bars that always appear in a consistent place on your screen.

Note that 4.0 is a pretty big update. I recommend backing up your WTF folder before upgrading just in case there's a problem!

NeedToKnow is especially useful for monitoring frequently used buffs, debuffs, and cooldowns. For example, a rogue could configure NeedToKnow to show timer bars for Slice and Dice, Rupture, and their own stack of Deadly Poison VII. A death knight could use it to track their own diseases on a mob.

Features
  • Customizable bar number, size, position, and texture
  • Works with procs and on-use trinkets
  • Separate settings for each talent specialization (with profile support)
  • Track multiple buffs or debuffs with a single bar
  • Option for fixed maximum duration so that all bars in a group deplete at the same rate
  • Works with SharedMedia
  • Low CPU and memory usage
  • Overlay a cast time. For example, easily see when to refresh Vampiric Touch or when there's less Flame Shock than it takes to cast Lava Burst.
  • Support for watching totems by name (this includes non-shaman totems like Wild Growth.)
  • Support for temporary weapon enchants (like Flametongue Weapon)
  • Support for SpellID to eliminate issues with duplicate buff names.
  • Support for tracking single-target spells like Beacon of Light, Earth Shield, etc.

Please use the ticket system on CurseForge for bugs and suggestions.

Instructions

General options are available in the Blizzard interface options menu. You can type "/needtoknow" or "/ntk" to lock/unlock the addon. To configure individual bars, right click them while unlocked. Bars work while locked. If you only see full bars that aren't changing in response to anything, they are unlocked! Just type /ntk to lock them and get them working for you.

You can enable more groups of bars by going into the Interface settings off the main menu and choosing the AddOns tab.

When entering your settings, be careful with your spelling and capitalization. Also remember that buffs and debuffs sometimes have different names than the items and abilities that apply them. The Death Knight ability Icy Touch, for example, applies a DoT called Frost Fever.

On each bar you can enter in multiple buffs/debuffs deliminated by commas. They are prioritized according to order.
i.e. "Rake, Lacerate" - If both are applied, will display Rake until it expires and then it will track Lacerate
i.e "Curse of Recklessness, Curse of Exhaustion, Curse of Shadows" - Good way to track single instance curses

If you wish to use SpellID, make sure you are using the correct one!

Videos
Some folks have put together videos showing off how they configured NeedToKnow

FAQ

Why won't NeedToKnow work for me? I set it up but the bars just sit there at full, not moving or tracking anything.
The bars only time things when the addon is locked. Type "/needtoknow" or "/ntk" to lock/unlock the addon. You can also use the buttons in the AddOns tab of the Blizzard Interface Options menu.
Why won't NeedToKnow track this buff/debuff? It works for other things.
Check your spelling and capitalization. Also remember that buffs and debuffs sometimes have different names than the items and abilities that apply them. The Death Knight ability Icy Touch, for example, applies a DoT called Frost Fever. If you're using a SpellID, make sure you have the correct one.
How do I track multiple buffs or debuffs on a single bar?
Enter the name of each buff/debuff separated by commas. They are prioritized according to order. For example, "Rake, Lacerate" will display Rake until it expires and then it will track Lacerate. "Curse of Recklessness, Curse of Exhaustion, Curse of Shadows" is a good way to track single-instance curses.
How do I get more bars?
You can enable more groups of bars by going into the Interface settings off the main menu and choosing the AddOns tab. If four groups of six bars isn't enough for you, consider another timer bar addon. Also consider rethinking your UI.
How do I get NeedToKnow to track my own DoTs but not those applied by other members of my class?
Select "Only show if cast by self" in the bar's configuration menu.
4.0.18
- Fixed WoD issues:
- Updated TOC
- Bars were not correctly becoming click-through when NTK was locked
- Visual cast time overlay was getting the wrong cast time if set by spell name
- Removed the weapon imbue tracking, since weapon imbues are gone

4.0.17
- Tried again to make some of the profile code more robust, specifically fixing up users who have corrupted data from previous bugs
- Fixed a bug with the "tooltip numbers"
- Updated the toc for 5.4

4.0.16
- Fixed a bug with naming a profile "Default"

4.0.15
- Removed a debug trace I accidentally left in for spell charges bars

4.0.14
- Updated toc for 5.3
- Fixed a bug with the "buff to watch" dialog occasionally restricted to a few characters
- Added support for spell cooldowns with charges. This defaults to on for any spell that has charges. For now, I've got it counting up (whereas the action bars count down) and we'll see how that works for folks.

4.0.13
- Updated toc for 5.2
- Fixed a bug with weapon imbues not updating correctly

4.0.12
- Fixed Chi support, as 5.1 changed its power type index
- Added Combo Points as a type of power (even though it's not technically a "power")
- Added some sanity checking to hopefully prevent creating new profiles from gumming everything up. This was pretty rare and I still have no idea what caused it.
- Added a new appearance option: Font Outline
- Added a third "tooltip number" for power bars, which is the percentage. This was suggested by eightball1985 for arcane mages

4.0.11
- Updated TOC for 5.1

4.0.10
- Updated for 5.1
- Beginning of "power" bar support for things like rage, runic power, shadow orbs, etc. It doesn't decay properly.

4.0.09
- Can now show up to three "tooltip numbers", such as the current AP boost for Vengeance
- Fix for last raid recipient in cross-realm groups (ticket 137)
- Fix for taint issues in 5.0.4 (Blizzard fixed it already in 5.0.5)
- Fix for showing stacks without showing name (ticket 109)
- Some performance enhancements (removing some global function accesses)

4.0.08
- Fixed Last Raid Recipient in 5.0.4

4.0.07
- Fixed some LUA errors caused by adding and deleting profiles

4.0.06
- Reverted version compatibility shims, upped toc to 050001

4.0.05
- Initial MoP support (Still supports Cataclysm, so I left interface version at 040300. You'll have to enable out of date addons to use it.)

4.0.04
- Fixed icon display for "spell cooldown" bars watching items and for buff bars watching mainhand or offhead weapon enchants

4.0.03
- Added "Last Raid Recipient" as a target for buff bars. Great for spells like Beacon of Light, Lifebloom, Earth Shield, etc.
- Improved the system used for "Detect Extends". Hopefully this will fix the occasional occurrance of wildly incorrect extends. This also improves performance of those bars a little.
- Fixed a bug with talent swapping and talent spell cooldowns

4.0.02
- Fixed: Cancelling out of the interface options could cause values set to false to reset to true the next time the profile was loaded
- Tweaked "boss only" blink bars so that if the target is friendly, NTK will track if anyone in the raid is in combat with a boss
- Improved the look of the per-bar configuration menu, getting rid of radio button backgrounds
- Improved the usability of the equipment slot feature, changing the buff/debuff name into a submenu when equipment slot is chosen
- New feature: Import/Export bar settings. This allows settings to be copy and pasted between bars, or shared between users, or with me as tech support. This replaces the old "clear settings" menu option. To clear the settings now, just blank out the import/export string.

4.0.01
- Fixed: Characters which had never used NTK before could only use the first bar group (Ticket 116)

4.0.00
- Major update to support profiles
- Greatly improved the UI for selecting fonts and bar textures
- New bar type: Equipment slot
- Increased the maximum bars per group
- Reduced the minimum bar scale to 25%, allowing for very thin bars
- Updated toc for 4.3

3.2.08
- Fixed: blink didn't work with weapon imbues

3.2.06
- Updated combat log hander for 4.1 (targettarget bars). Also tried to make it a little more efficient
- fixed: "sum stacks from all casters" only worked for buffs
- Fixed problem with cooldowns sometimes not working after spec switch

3.2.05
- Added some sanity checks around weapon imbues. Should prevent the lua errors, though the corresponding bars won't work. It'll complain (a lot) in your chat window.
- Listening to ACTIVE_TALENT_GROUP_CHANGED as well as PLAYER_TALENT_UPDATE
- Listening to SPELL_UPDATE_COOLDOWN as well as ACTIONBAR_UPDATE_COOLDOWN
- Fixed: The code that was supposed to stop cooldown bars from disappearing was actually preventing it from detecting cooldown resets sometimes.

3.2.04
- Fixed refactoring bug in auto shot bars causing a lua error

3.2.03
- Trying again to get bar initialization to happen reliably

3.2.02
- Fixed: Cooldown bars initialized too soon, resulting in failure to find the item/spell

3.2.01
- Fixed: "Usable" bars caused massive lua errors and didn't work

3.2.0
- internal cooldown bars can now be told to reset to 0 based on the presence of another buff. (for example, eclipse resets Nature's Grace)
- Fairly massive restructuring to split up the monolithic Bar_AuraCheck function (Ticket 56)
- Fixed berserk tracking on multiple weapons. This never worked before, it turns out. (Ticket 84)
- Some changes for perf improvements
- Spell cooldown bars try a bit harder to figure out what you meant to watch. Before, Swipe would end up watching cat Swipe (same name as bear Swipe), which has no cooldown. Explosive Trap works now, too. (Ticket 85)
- A bar watching your pet will update when your pet changes
- Min scale reduced from 0.6 to 0.25

3.1.9
- Fix Lua error tracking certain DK spell cooldowns

3.1.8
- Fixes cooldown tracking in 4.0.1

3.1.7
- Maybe works with Cataclysm now?
- More robust rune vs spell cd detection for DKs (Ticket 72)
- Added support to the text override for a list of names, corresponding to the list of spells to watch for (Ticket 43)

3.1.6
- Can now turn off the display of stack count (Ticket 52)
- Can now override the name that is displayed (Ticket 43)

3.1.5
- Spell cooldowns for spells like Stealth will now start when the spell ends, instead of looping when the spell is cast
- The logic to hide a cooldown that was just the GCD has been improved. Spell cooldown timers will no longer disappear when they become GCD limited (if there was 1s left and you begin a 1.2s GCD, the bar would disappear before.) This logic has then been extended to cover DK rune cooldowns (if you had a spell which required runes, but the runes had a longer cooldown than the spell had remaining, the bar would display the cooldown for the runes.)

3.1.4
- Cyrillic fixes from kolod on curseforge (ticket 74)
- Groups can only be sized such that the bars are an integer number of pixels tall. Hopefully this will improve ticket 70
- Fixed non-deterministic texture ordering on the bars, which could put the visual cast time under the bar. (Ticket 73)

3.1.3
- Fixed a LUA error caused by 3.3.5 edit box changes when entering the name of the spell to watch

3.1.2
- Added zhCN & zhTW localization. Thanks, wowui.cn!
- Change tooltip anchor to above group
- Added new options panel: Appearance. Moved texture, font, bar spacing, bar padding, and background color options to it
- Changed lock/unlock button to config mode / play mode buttons
- Fixed a LUA error if the addon was loaded with totems out
- Replaced use of StatusBar widget with custom Texture management both because our bars have two textures and because Blizzard can't set their texture coordinates correctly any more. Fixes ticket 51
- Fixed a bug with the double-bar feature when resizing the group. This was done automatically for the main texture before, but not for the second. Now it's done for both, yay.
- Small memory optimization
- The second texture gets image and color updated the same time the primary one does, meaning it will update without a /reload
- Updating the bar appearance was being shortcut if the bar was currently blinking, so had to set the color twice.

3.1.1
- Fixed: Auto Shot CD reset on every spell cast, not just Auto Shot

3.1.0
- Fixed: All the numeric dialogs in the config menus were using the same help text.
- New option for buffs/debuffs: Show all stacks. Can be used to watch a category of spells (like HoTs), or to watch procs from Berserker
- Auto Shot now works as a spell cooldown
- Fixed bar texturing tiling instead of stretching in 3.3.3
- Fixed "infinite" duration buffs not correctly displaying
- Add new bar type: Usable. Designed with Victory Rush in mind.

3.0.3
- Watching the offhand enchant would display the name of the mainhand enchant, which could cause a lua error if there was no mainhand enchant
- Reverted a partial import/export feature that snuck in

3.0.2
- Fixed a bug with blink. It defaults to 0.5 alpha and disabled, by the legacy loading code saw the 0.5 and figured it should enable blink. Worked great if you still had old settings, but starting from scratch was a bit of disaster. Sorry new users!

3.0.1
- Fixed a bug with the "Unit" setting from a buff or debuff bar causing other bar types (like spell cooldown)
- Removed the display of charges from buff cooldown bars. Easy enough to put back if people miss it, but it surprised me.
- Fixed a small pef bug: every bar was doing one extra loop checking for the presence of the buff ""
- If the internal buff cooldown was shorter than the duration of the buff, the bar wouldn't disappear (and the spark would go negative)

3.0.0
- Created a "Settings" submenu whose contents depends on the BuffOrDebuff variable. This should allow for more bar types without confusing the menu too much.
- Added new bar type: "internal cooldown" for proc cooldown timers
- Added new bar type: "spell cooldown" for tracking spell and item cooldown timers
- Fixed: Temporary weapon enchants now use a substring search. "Poison" will pick up all rogue poisons. This also fixed a lua error that could occur when watching weapon buffs
- Added: Can show an asterisk when the bar is tracking a spell cast by the player
- Improved: Added a blink enable besides just setting the alpha to 0. The alpha thing confused too many people
- Added more blink options: only in combat, only if boss, and a label for blinking bars

2.8.6
- Improved: Blinking bars try to be a little smarter about when to blink and when to just be hidden. Especially the case of debuff bars blinking when no target.
- Improved: Weapon imbue names now capture (I hope) the full name from the tooltip to compare against. The name to watch for (in the NTK config) is then regarded as a substring search. So you could configure NTK to watch for Poison to catch all poisons.

2.8.5
- Added: Option to show a spell icon to the left of active bars
- Added: Option to change the font used on NeedToKnow bars (in the interface options dialog)

2.8.4
- Added: Option to show certain bar elements: aura name, time remaining, and the "spark" (ticket 8)
- Added: Option to blink the bar when it would otherwise be missing (ticket 7)
- Fixed: Weapon imbue bars disappear on teleport (ticket 9)
- Fixed: Spark incorrectly visible on weapon imbues (ticket 6)

2.8.3
- Fixed some problems upgrading from older versions of NeedToKnow (ticket 5)

2.8.2
- Beta Support for temporary weapon enchants. Only tested with elemental and restoration shaman (not enhancement or rogues.)

2.8.1
- Fixed: Watching totem by spellid did not work
- Fixed: Logging in when the character was in the second spec would use the first spec's setting

2.8.0
- Added the ability to track increases in spell duration, especially useful for dps druids
- Marked as being a 3.3 addon
- Fixed: Took advantage of a new 3.3 API to get the spell id of active buffs and debuffs. Bars that check spellid should be much more reliable and, for example, be able to tell the difference between the two different Death's Verdict procs
- Fixed: Totem timing is much more accurate
- Fixed: Visual cast times now updates based on changes in haste and other casting-time-affecting abilities
- Refactored the internal structure a bit, which results in easier hooking by other addons

2.7.1
- Fixed: Accidentally removed the background color picker

2.7.0
- Added options for how the time text is formatted. The current style is the default, with mm:ss and ss.t as other options
- Added "visual cast time" overlay which can be used to tell when there's less than some critical amount of time left on an aura
- Hid the spark when the aura lasts longer than the bar (either an infinite duration, or using the Max duration feature.)
- Hid the time text when the aura has an infinite duration

2.6.0
- Added support for a new "Buff or Debuff" type: Totem. Type in the name of the totem to watch for (can be a partial string.)
- Fixed a parse error in the DE localization
- Slightly improved performance of "target of target"
- Added two new /ntk options: show and hide. They can be used to temporarily show and hide the ntk groups.

2.5.2
-Changed event parsing to try to be more robust (see autobot's errors)

2.5.1
-Trying a different strategy for identifying "only cast by me" spells
-When editing the watched auras, the edit field starts with the current value
-Configuring by SpellID is automatically detected and does not need a menu item checked

2.5
-Fixed ToT issue
-Added support for SpellID

2.4.3
-Added SharedMedia support, uses LibSharedMedia-3.0
-Greatly improved performance

2.4.2
-Fixed a bug with the multiple buffs per line
-Fixed a small bug with resize button showing
-Optimized performance slightly

2.4.1

-Fixed character restriction on buff names, no accepts up to 255 characters.
-Added Russian localization

2.4

-Brought up to 3.2 API standards
-Added multiple buffs/debuffs per bar
-Dual-Specialization support

Version 2.2
- Added option to show bars with a fixed maximum duration
- Fixed an issue with targetoftarget
- Added koKR localization. Thanks, metalchoir!
- Added deDE localization. Thanks, sp00n & Fxfighter!

Version 2.1
- Updated for WoW 3.1
- Can now track spells cast by player's pet or vehicle
- Can now track buffs/debuffs on player's vehicle
- Added options for background color, bar spacing, bar padding, bar opacity
- Fixed a problem with buff charges not showing as consumed

Version 2.0.1
- Updated for WoW 3.0
- Can now track (de)buffs applied by others
- Added option to only show buffs/debuffs if applied by self

Version 2.0
- Added support for monitoring debuffs
- Added support for variable numbers of bars
- Added support for separate groups of bars
- Added support for monitoring buffs/debuffs on target, focus, pet, or target of target
- Bars are now click-through while locked
- Reminder icons have been been greatly expanded in functionality and split off into their own addon: TellMeWhen
- Cleaner bar graphics
- Users of older versions will need to re-enter settings

Version 1.2
- Updated for WoW 2.4 API changes

Version 1.1.1
- Icons should now work properly with item cooldowns.
- Reset button should now work properly when you first use the AddOn.

Version 1.1
- Icons will now show when reactive abilities (Riposte, Execute, etc.) are available.
- Added options for bar color and texture.
- Added graphical user interface. Most slash commands gone.
- Added localization support. Translations would be much appreciated.
- Users of older version will need to re-enter settings.

Version 1.0
- Hello world!
Optional Files (0)


Archived Files (39)
File Name
Version
Size
Author
Date
4.0.16
95kB
Kitjan
09-12-13 05:29 PM
4.0.16
95kB
Kitjan
07-08-13 12:00 AM
4.0.15
95kB
Kitjan
05-22-13 03:47 PM
4.0.14
95kB
Kitjan
05-21-13 11:06 PM
4.0.13
94kB
Kitjan
03-13-13 07:14 PM
4.0.12
94kB
Kitjan
01-27-13 02:14 PM
4.0.11
93kB
Kitjan
12-12-12 07:26 PM
4.0.10
93kB
Kitjan
11-27-12 08:36 PM
4.0.09
91kB
Kitjan
09-23-12 12:32 PM
4.0.08
90kB
Kitjan
09-03-12 11:52 PM
4.0.07
90kB
Kitjan
08-30-12 10:06 PM
4.0.06
90kB
Kitjan
08-29-12 12:29 AM
4.0.05
90kB
Kitjan
07-09-12 10:20 PM
4.0.04
90kB
Kitjan
04-03-12 08:02 PM
4.0.03
90kB
Kitjan
03-26-12 09:17 PM
4.0.02
89kB
Kitjan
01-28-12 07:03 PM
4.0.01
85kB
Kitjan
12-01-11 02:50 AM
4.0.00
85kB
Kitjan
11-29-11 05:16 PM
3.2.08
74kB
Kitjan
09-18-11 06:02 PM
3.2.07
74kB
Kitjan
06-28-11 07:34 PM
3.2.0
77kB
Kitjan
11-04-10 11:02 PM
3.1.9
75kB
Kitjan
10-25-10 09:05 PM
3.1.8
93kB
Kitjan
10-13-10 01:27 AM
3.1.7
84kB
Kitjan
09-09-10 09:59 AM
3.1.6
70kB
Kitjan
09-01-10 11:23 PM
3.1.5
70kB
Kitjan
08-19-10 11:57 PM
3.1.4
82kB
Kitjan
07-23-10 08:44 PM
3.1.3
70kB
Kitjan
06-29-10 11:57 PM
3.1.2
69kB
Kitjan
05-16-10 12:04 PM
3.1.1
67kB
Kitjan
04-12-10 11:33 PM
3.1.0
67kB
Kitjan
04-11-10 11:51 PM
3.0.3
66kB
Kitjan
03-23-10 07:18 PM
3.0.2
66kB
Kitjan
03-16-10 12:06 AM
3.0.0
65kB
Kitjan
02-07-10 02:01 AM
2.8.6
64kB
Kitjan
01-10-10 11:09 PM
2.8.5
64kB
Kitjan
01-10-10 12:49 AM
2.2
45kB
Kitjan
05-10-09 07:31 PM
2.1
76kB
lieandswell
04-28-09 08:44 PM
2.0.1
70kB
lieandswell
10-18-08 07:53 AM


Post A Reply Comment Options
Unread 04-20-09, 06:20 AM  
Mud
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 23
Uploads: 7
Originally posted by Selina
Code:
function NeedToKnow.Bar_AuraCheck(bar)
   [...]
   for buffIndex = 1, 40 do
      [...]
      local my_units = 
      {
         player = true,
         pet = true,
         vehicle = true,
      }
This is the right idea, but a poor implementation, because you're creating up to 40 identical tables every time this function is called, and it's called a lot. No reason to generate all that garbage. Just move that table out of the function entirely, so it's created once and only once when the UI is loaded:

Code:
local my_units = {
   player = true,
   pet = true,
   vehicle = true,
}

function NeedToKnow.Bar_AuraCheck(bar)
   [...]
   for buffIndex = 1, 40 do
      [...]
Mud is offline Report comment to moderator  
Reply With Quote
Unread 04-18-09, 03:20 AM  
thebadmf
is in disguise
 
thebadmf's Avatar

Forum posts: 5
File comments: 109
Uploads: 0
Originally posted by esoxlucius
I cant work with .lua aswell. And tbh i am a complete noob with things like add ons. An updated version would be really appreciated since this is an awesome add on
Go to your needtoknow folder and open Needtoknow.lua in notepad or PFE (google it) and make a copy of it before you start (just in case).

Use the search facility to locate NeedToKnow.Bar_AuraCheck(bar). It should look the same as the first line of code Selina posted. The end of the function is a bunch of nested ends.

Copy all of the text in Selina's code box and replace that section of code. Save the file and you're done.
Selina, thank you!
Last edited by thebadmf : 04-18-09 at 03:25 AM.
thebadmf is offline Report comment to moderator  
Reply With Quote
Unread 04-18-09, 01:13 AM  
Opaque
A Fallenroot Satyr
 
Opaque's Avatar

Forum posts: 23
File comments: 138
Uploads: 0
This is SUCH a well done mod... please update it ASAP!!!
__________________
Opaque is offline Report comment to moderator  
Reply With Quote
Unread 04-17-09, 05:07 AM  
esoxlucius
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
I cant work with .lua aswell. And tbh i am a complete noob with things like add ons. An updated version would be really appreciated since this is an awesome add on
esoxlucius is offline Report comment to moderator  
Reply With Quote
Unread 04-16-09, 02:02 AM  
dorian24h
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Since 3.1. The option of showing buffs only applied by me doesn't work. Chance to a quick update for those of us who don't know how to work with .lua files? Thank you
dorian24h is offline Report comment to moderator  
Reply With Quote
Unread 04-16-09, 12:50 AM  
level12wizard
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 39
Uploads: 1
Originally posted by handiman
do we need both fixes or just sels?
Selina's fix replaces mine completely. It's the same concept, but done properly. Edited mine out to avoid confusion.
level12wizard is offline Report comment to moderator  
Reply With Quote
Unread 04-15-09, 06:22 PM  
handiman
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
do we need both fixes or just sels?
handiman is offline Report comment to moderator  
Reply With Quote
Unread 04-15-09, 04:04 PM  
level12wizard
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 39
Uploads: 1
Thanks for posting that Selina. Mine is indeed a bit buggy (The main thing I noticed was it giving debuffs from group members as if they were mine), but that looks to fix everything.
level12wizard is offline Report comment to moderator  
Reply With Quote
Unread 04-15-09, 03:38 PM  
Selina
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 13
Uploads: 3
Originally posted by level12wizard
For a quick fix, change this line near the bottom in the base "NeedToKnow.lua" file
Unfortunately it doesn't work quite that way. Replace the NeedToKnow.Bar_AuraCheck(bar) function with the following and everything should be fine again.

Code:
local my_units = 
{
	player = true,
	pet = true,
	vehicle = true,
}

function NeedToKnow.Bar_AuraCheck(bar)
	-- DEFAULT_CHAT_FRAME:AddMessage( "Test2: " .. spellName , 1 , 0.1 , 0.1 , 1 );
	if ( UnitName(bar.unit) ) then

		local buffName, count, duration, expirationTime, caster;
		local isMine;
		
		for buffIndex = 1, 40 do
			if ( bar.buffOrDebuff == "HELPFUL" ) then
				buffName, _, _, count, _, duration, expirationTime, caster = UnitBuff(bar.unit, buffIndex);
			else
				buffName, _, _, count, _, duration, expirationTime, caster = UnitDebuff(bar.unit, buffIndex);
			end
			
			isMine = my_units[caster]
			
			if ( not buffName ) then
				bar:Hide();
				return;
			elseif ( buffName == bar.auraName ) and ( (isMine and bar.onlyMine) or (not bar.onlyMine) ) then
				bar.duration = duration;
				bar.timeLeft = expirationTime - GetTime();
				bar:SetMinMaxValues(0, duration);
				bar:SetValue(bar.timeLeft);
				getglobal(bar:GetName().."Spark"):SetPoint("CENTER", bar, "LEFT", bar:GetWidth()*bar.timeLeft/bar.duration, 0);
				local text = getglobal(bar:GetName().."Text");
				if ( count > 1 ) then
					text:SetText(bar.auraName.."  ["..count.."]");
				else
					text:SetText(bar.auraName);
				end
				bar:Show();
				return;
			end
		end
		bar:Hide();		-- move along.  these aren't the buffs you're looking for.  
	else
		bar:Hide();
	end
end
Edit:
Edited the code to reflect the proposed change by Mud. This should resolve the performance issues that he has brought up.
Last edited by Selina : 04-21-09 at 04:43 PM.
Selina is offline Report comment to moderator  
Reply With Quote
Unread 04-09-09, 11:11 AM  
Elite_Gamer04
A Kobold Labourer

Forum posts: 0
File comments: 36
Uploads: 0
I would ABSOLUTLEY LOVE to see an option for 'bar growth' - at the momment my UI begins to look strange when there are just 'floating' bars when say the middle of 3 positioned bars is not active.

I would love to see the bars be able to 'grow' out of an anchor point, or Bar1 itself, so you can have one centralized area where all/some of the bars you want appear inside of have bars randomly scattered.

THANKS!
Elite_Gamer04 is offline Report comment to moderator  
Reply With Quote
Unread 04-05-09, 08:07 PM  
handiman
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
ty wiz
handiman is offline Report comment to moderator  
Reply With Quote
Unread 04-03-09, 02:22 AM  
level12wizard
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 39
Uploads: 1
invalid, see above
Last edited by level12wizard : 04-16-09 at 12:48 AM.
level12wizard is offline Report comment to moderator  
Reply With Quote
Unread 03-22-09, 06:23 PM  
nToxik
A Kobold Labourer

Forum posts: 1
File comments: 31
Uploads: 0
I love this addon however it seems to lag quite a bit. I use it to show my Serpent Sting on my target as well as two DOTS from Explosive Shot. Other hunters are complaining about the same problem.

Any ideas?
nToxik is offline Report comment to moderator  
Reply With Quote
Unread 03-14-09, 02:47 AM  
handiman
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
mod not working on PTR atm it will refresh other dots cast by other people even if i have "my debuffs only" checked anyone know how to fixor?
handiman is offline Report comment to moderator  
Reply With Quote
Unread 02-26-09, 10:09 PM  
Farook
A Molten Giant
 
Farook's Avatar

Forum posts: 595
File comments: 113
Uploads: 0
lieandswell...

...where are you to further improve this fantastic addon?
__________________
Farook is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: