Download
(8Kb)
Download
Updated: 08-07-09 04:59 PM
Pictures
File Info
Updated:08-07-09 04:59 PM
Created:10-24-08 09:42 AM
Downloads:24,025
Favorites:160
MD5:

AutoAspect  Popular! (More than 5000 hits)

Version: 1.10
by: Gorebag [More]

I put together AutoAspect after the 3.0 change to Aspect of the Viper. I can't tell you how many times we would be fighting a boss in ZA or something and I would realize part way through the fight that I still had Viper on and was doing half damage.

So that's where AutoAspect comes in. This is a very simple addon (my first addon, in fact) but it keeps my aspects straight

Firstly, the addon does nothing if you aren't a Hunter!

When your mana drops below a specified threshold (30% default) and don't have Aspect of the Viper on, the addon will begin throwing up messages in the "errors" frame that you should switch to Aspect of the Viper (it also plays the Raid Warning sound to get your attention). In addition, it will provide a big, semi transparent button in the center of the screen with Aspect of the Viper attached to it's click event.

Similarly, when you have Aspect of the Viper on and your mana goes above a specified threshold (85% default) the same thing happens, except that the button is for Aspect of the Hawk, and the message indicates that you have lots of mana and should switch.

New in V1.08
If you are level 75 or higher, the "big button" will be set to cast "Aspect of the Dragonhawk" instead of "Aspect of the Hawk"

New in V1.07
Some additional in-combat checks to suppress in-game interface restriction errors.

New in V1.06
All on/off commands now support toggling by simply specifying the command, so /aa tracking will set tracking off if it is on, and vice versa.
I also restructured the code to show the "Big Button" so that the addon will not attempt to show or hide the button while in combat.

New in V1.05
AutoAspect now supports using Scrolling Text mods (MSBT, SCT, and Parrot) for it's alerts. I also throttled the alerts to 1 per 2 seconds. Use "/aa sct on" to turn on Scrolling Alerts. You can also use "/aa text off" to disable the UI Error Frame alerts. You can set separate alert texts for scrolling messages (/aa lowscroll and /aa highscroll)

New in v1.04

You can now move the "big button" via slash commands. There are 3 new commands:

/aa resetpos (resets the button to the center of the screen (0,0))
/aa xpos # (set the X offset)
/aa ypos # (sets the Y offset)

The offsets are relative to the center of the screen (ie, the center is 0,0). Positive Y values move up, negative down. Positive X values move right, negative left.

Also in 1.04, the setting for playing sound is now persistent, and I added a check on the creature type detection for the targeting feature to make sure the command actually gets a creature type back.

New v1.03 Feature

AutoAspect now has a feature (disabled by default) that will automatically switch your Tracking type to the type of whatever non-friendly unit you target. The "/aa tracking on" command can be used to activate this feature, which is useful for hunters with the Improved Tacking talent.

Optional:

The "Big Button" is disablable, in which case you can click your normal aspect buttons in response to the warnings, or make a macro that says:

/click AutoAspectVisible

to have the same effect as clicking the big button.

A Note About Being In Combat

Because of restrictions placed on addons by Blizzard, an addon can't make an action button show up while in combat (nor can it change the effect that clicking on a button will have during combat), so the Big Button will only show outside of combat.

Additionally, the /click AutoAspectVisible won't be cast the expected spell while in combat (because AutoAspect can't change the frame to the spell it needs until combat ends).

For these reasons I still use normal buttons for switching aspects... the real benefit (for me) of AutoAspect is the warning about being in the wrong one

Slash Commands:

AutoAspect supports the /autoaspect (and /aa for short) slash command with the following options:

/autoaspect help <-- Displays help
/autoaspect status <-- Displays the current status of all variables
/autoaspect enable <-- Turns the addon on
/autoaspect disable <-- Turns the addon off
/autoaspect button on <-- Turns the "Big Button" on
/autoaspect button off <-- Turns the "Big Button" off
/autoaspect low # <-- Sets the "low mana threshold" to ## percent
/autoaspect high # <-- Sets the "high mana threshold" to ## percent
/autoaspect sound on <-- Turn on the RaidWarning sound
/autoaspect sound off <-- Turn off the Raidwarning sound
/autoaspect buttonsize # <-- Sets the "Big Button" to size 1, 2, or 3
/autoaspect lowtext <message> <-- Sets to message to show at low mana
/autoaspect hightext <message> <-- Sets the message to show at high mana
/autoaspect tracking on <-- Turns on "Auto Tracking Switching"
/autoaspect tracking off <-- Turns off "Auto Tracking Switching"
/autoaspect resetpos <-- Reset the position of the big button to 0,0
/autoaspect xpos # <-- Set the X offset of the big button
/autoaspect ypos # <-- Set the Y offset of the big button

-- /aa sct on - Enable Scrolling Text message output
-- /aa sct off - Disable Scrolling Text message output
-- /aa text on - Enabled UI Error Frame messages
-- /aa text off - Disable UI Error Frame messages
-- /aa lowscroll <message> - Set the Low Mana message used by Scrolling Text Addons
-- /aa highscroll <message> - Set the High Mana message used by Scrolling Text Addons


The "buttonsize" command takes a number from 1 to 3 as a parameter. Size 1 is a 64x64 pixel button, size 2 is a 128x128 pixel button (the size the button is in 1.01) and size 3 is a giant 256x256 pixel button.

As I said above, this is the first addon I've ever tried to write, so if you find bugs or unexpected behavior, please let me know and I'll try to address them.

V1.10
TOC Update for patch 3.2
Minor cleanups

V1.09
Unreleased version

V1.08
Casts Aspect of the Dragonhawk if you are over level 75, and Aspect of the Hawk at 74 and below.

V1.07
Some additional in-combat checks to suppress in-game interface restriction errors.

V1.06
Updated to only attempt to show/hide the button when not in combat to eliminate potential error messages
All commands that support on/off now supprt toggling if just the command is specified

V1.05
Added support for scrolling text addons (MSBT, SCT, Parrot)
Lots of code cleanup (Removing functions and inlining them, etc)
Throttle alert messages to 1 per 2 seconds max.

V1.04
Added checking to make sure a creature returns a creature type and not a "nil"
Added missing "aaPlaySound" to AutoAspect.toc saved variables.
Added the ability to move the Big Button via slash commands.

V1.03
Add check to shut off spam if player is mounted.
Replaced all instances of ChatFrame1 with DEFAULT_CHAT_FRAME
Updated the "results" messages to always be prefixed with "AutoAspect:"
Added auto tracking switching (Switch tracking to the type of your current target)

V1.02

Adds a number of new slash commands (see below) allowing you to toggle sound on and off, as well as set the size of the "big button" and the message displayed by the addon. Also corrects the "Ghost Spam" problem by using UnitIsDeadOrGhost instead of UnitIsDead to detect your current state of existence.

New in Version 1.03:
/autoaspect tracking on <-- Turns on "Auto Tracking Switching"
/autoaspect tracking off <-- Turns off "Auto Tracking Switching"

New in Version 1.02:
/autoaspect sound on <-- Turn on the RaidWarning sound
/autoaspect sound off <-- Turn off the Raidwarning sound
/autoaspect buttonsize # <-- Sets the "Big Button" to size 1, 2, or 3
/autoaspect lowtext <message> <-- Sets to message to show at low mana
/autoaspect hightext <message> <-- Sets the message to show at high mana

The "buttonsize" command takes a number from 1 to 3 as a parameter. Size 1 is a 64x64 pixel button, size 2 is a 128x128 pixel button (the size the button is in 1.01) and size 3 is a giant 256x256 pixel button.
Optional Files (0)


Post A Reply Comment Options
Unread 05-18-09, 01:12 PM  
Palladia
A Wyrmkin Dreamwalker
 
Palladia's Avatar

Forum posts: 57
File comments: 18
Uploads: 0
Aspect of the Dragonhawk

I got Dragonhawk at 74. Why do I have to wait until 75 for AutoAspect to use it?

Edit: My hunter is now 75 and I still get Hawk instead of Dragonhawk. Is there a setting I need to change?
Last edited by Palladia : 05-18-09 at 06:07 PM.
Report comment to moderator  
Reply With Quote
Unread 04-28-09, 12:31 PM  
ladyofdragons
A Kobold Labourer
 
ladyofdragons's Avatar

Forum posts: 1
File comments: 15
Uploads: 0
Hey there! Great addon, I've really been enjoying it for the past few weeks. There so much to keep track of in a raid setting it's easy to loose track of mana and aspects. I also love the track benefits, though they aren't as necessary now it's still one less ting to worry about.

Sadly, I haven't been able to use it since the 3.1 patch. When I check it in my addons list it shows it as "incompatible"? (or something like that). I've never seen that in 5 years of playing WoW... Out of date and dependency disabled yes, but never this. Does anyone know what it means?
Report comment to moderator  
Reply With Quote
Unread 04-22-09, 11:08 AM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 139
Uploads: 3
Originally posted by griffin224
Did you used to have AutoAspect over at Curse? Tried going to the curse site listed and it gives an error.
No, I've only ever hosted my addons at WoWI. No strong reason for that, except that it makes it easier to maintain in one spot.
Report comment to moderator  
Reply With Quote
Unread 04-21-09, 09:50 AM  
griffin224
Premium Member
 
griffin224's Avatar
AddOn Author - Click to view AddOns

Forum posts: 105
File comments: 50
Uploads: 1
Originally posted by Gorebag
You do know that WoWInterface and Curse blocked WoWMatrix and that individual addon authors had nothing to do with it, right?
Did you used to have AutoAspect over at Curse? Tried going to the curse site listed and it gives an error.
Report comment to moderator  
Reply With Quote
Unread 04-19-09, 08:38 PM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 139
Uploads: 3
You do know that WoWInterface and Curse blocked WoWMatrix and that individual addon authors had nothing to do with it, right?
Report comment to moderator  
Reply With Quote
Unread 04-19-09, 06:47 PM  
Rahule
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
nope, not gonna do it

I love the add on, I liked it so much that I advised the hunters in my guild to use it. Well, that was before the 3.1 patch when I learned that wowmatrix no longer has permission to update your add on. So with that in mind. I will no longer be using it. Hopefully you will at some point in the future allow wowmatrix to update your add on so I can enjoy using it again. and no. adding another updater.. any updater.. is not an option. I really like wowmatrix and have no intentions to stop using them.
Report comment to moderator  
Reply With Quote
Unread 03-15-09, 11:38 AM  
Spasticon
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Great Addon...

Could you add a warning if you enter combat with cheetah or pack on?
Report comment to moderator  
Reply With Quote
Unread 03-09-09, 05:42 PM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 139
Uploads: 3
Fonjask and Menace97: Both True I haven't done much with AutoAspect in a while, but I'll put together an update for 3.1 when it comes out.

In the mean time:

To disable for characters under level 20, insert this line at line 122 in the file:

if UnitLevel("player") < 20 then myEnglishClass = "DisableMe!" end

(it's a bit hackish, but it will get the job done )

For the Dragonhawk icon, on line 685 change:
Ability_Hunter_AspectoftheViper.blp
to
Ability_Hunter_Pet_DragonHawk.blp
Last edited by Gorebag : 03-09-09 at 09:15 PM.
Report comment to moderator  
Reply With Quote
Unread 03-09-09, 02:13 PM  
Fonjask
A Fallenroot Satyr
 
Fonjask's Avatar
AddOn Author - Click to view AddOns

Forum posts: 25
File comments: 266
Uploads: 2
Exclamation 20-

What about adding those 4 lines max. so that this addon doesn't do anything when you're under level 20 (when you learn Aspect of the Viper)? It's so annoying on my level 15 alt xD.
__________________
~~~~~~~~~~~~
Report comment to moderator  
Reply With Quote
Unread 03-01-09, 12:57 AM  
menace97
Premium Member
 
menace97's Avatar
Premium Member

Forum posts: 4
File comments: 101
Uploads: 0
Aspect of the Dragonhawk

After level 75 or higher when we start using the Aspect of the Dragonhawk in place of Hawk - the correct spell is cast (Dragonhawk), but not the icon/graphic (remains Hawk).

Is there any way to replace the Hawk icon with the Dragonhawk one?

An excellent addon! Thanks for any help.
Last edited by menace97 : 03-03-09 at 07:10 PM.
Report comment to moderator  
Reply With Quote
Unread 02-25-09, 10:18 PM  
Grilor
Premium Member
 
Grilor's Avatar
Premium Member

Forum posts: 9
File comments: 107
Uploads: 0
Re: Re: like it but we have a problme

Originally posted by Gorebag
I'm afraid I really have no idea on this one... Autoaspect doesn't use Ace or LibRock at all.
yea not 100% sure but when i do turn your mod on it messes up Rock some thing bad. and i really was looking forward to use this. it was excatly what i was looking for
__________________

--------------------------------------------------------------------------
Report comment to moderator  
Reply With Quote
Unread 02-24-09, 04:44 PM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 139
Uploads: 3
Re: like it but we have a problme

Originally posted by Grilor
when i install this addon i get an error when i try to open fubar meun.

Error: bad argument #1 to 'pairs' (table expected, got nil) File: ...s\FuBar\libs\LibRockConfig-1.0\LibRockConfig-1.0.lua Line: 783 Count: 3

also i dont get the button in the center of the screen.

as soon as i disable this addon all works fine again. any ideas how to fix this thanks
I'm afraid I really have no idea on this one... Autoaspect doesn't use Ace or LibRock at all.
Report comment to moderator  
Reply With Quote
Unread 02-23-09, 11:06 AM  
Grilor
Premium Member
 
Grilor's Avatar
Premium Member

Forum posts: 9
File comments: 107
Uploads: 0
like it but we have a problme

when i install this addon i get an error when i try to open fubar meun.

Error: bad argument #1 to 'pairs' (table expected, got nil) File: ...s\FuBar\libs\LibRockConfig-1.0\LibRockConfig-1.0.lua Line: 783 Count: 3

also i dont get the button in the center of the screen.

as soon as i disable this addon all works fine again. any ideas how to fix this thanks
__________________

--------------------------------------------------------------------------
Last edited by Grilor : 02-23-09 at 11:07 AM.
Report comment to moderator  
Reply With Quote
Unread 01-19-09, 08:13 AM  
iceflame5
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Lightbulb Change interval of warning

great addon for (forgetfull) hunters (like me)

would it be posible to get the interval of the warning as a option, as I feel its overspaming me
Report comment to moderator  
Reply With Quote
Unread 01-05-09, 08:36 PM  
Teli
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Originally posted by Gorebag
The issues with the button are a result of the restrictions on what an addon can do during combat. Buttons can't be displayed or removed, etc.

Generally, I don't use the big button, but stick with normal buttons and rely on the alerts themselves.
Because the button doesn't work in combat, can you just make it a big picture that why you could have it up in combat as a reminder. An image frame is not restricted by blizzard so you could have it come and during combat.


Also can you make an option to have it only active in combat. I really dont care if its up when I'm out of combat.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: