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,031
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 10-24-08, 11:17 AM  
Vetus
A Murloc Raider
 
Vetus's Avatar

Forum posts: 6
File comments: 59
Uploads: 0
Great Idea!!

A great idea! I sometimes run out of mana and this will be a great reminder...

I have another Aspect issue that might be something you could add to this... Aspect of the pack... All I want is one big button to remind me to turn it off once we're done running back to our bodies...

I have a big button now to remind me, but it's a clickable button and I wish it wasn't... If the answer is 'no', no worries... Your addon will still be very useful to me... And thx...
Report comment to moderator  
Reply With Quote
Unread 10-24-08, 04:17 PM  
Lazare
An Aku'mai Servant
 
Lazare's Avatar
AddOn Author - Click to view AddOns

Forum posts: 36
File comments: 76
Uploads: 5
Re: Great Idea!!

Originally posted by Vetus

I have another Aspect issue that might be something you could add to this... Aspect of the pack... All I want is one big button to remind me to turn it off once we're done running back to our bodies...
... you can't use Aspect of the Pack while you are dead..... or any other aspect for that matter
Report comment to moderator  
Reply With Quote
Unread 10-24-08, 05:04 PM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 139
Uploads: 3
Re: Re: Great Idea!!

Originally posted by Lazare69
... you can't use Aspect of the Pack while you are dead..... or any other aspect for that matter
True, thought it is often useful when you are deep in an instanced and die and need to run back through the stuff you have cleared.

There is no way I know of that you could detect being near where you died... The best I can think of at the moment would be to pop up a reminder if you target say a non-grey enemy while you have Aspect of the Pack on.
Report comment to moderator  
Reply With Quote
Unread 10-24-08, 06:14 PM  
Vetus
A Murloc Raider
 
Vetus's Avatar

Forum posts: 6
File comments: 59
Uploads: 0
Re: Re: Great Idea!!

Originally posted by Lazare69
... you can't use Aspect of the Pack while you are dead..... or any other aspect for that matter
Wow you're kidding right?

Geez... I was trying to be amusing... Let me rephrase...

Once we reenter the instance and are running back to our BONES (feel better?), I usually turn apect of the pack on... And there have been times I forgot to turn it off...

I would just like a reminder...
Report comment to moderator  
Reply With Quote
Unread 10-25-08, 03:29 AM  
Yungsters
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Death Spam

Right now when I die, I continuously get Aspect of the Viper warnings because when you're dead, you have no mana. I think this mod should ignore mana when the player's dead.
Report comment to moderator  
Reply With Quote
Unread 10-25-08, 05:37 AM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 139
Uploads: 3
Re: Death Spam

Originally posted by Yungsters
Right now when I die, I continuously get Aspect of the Viper warnings because when you're dead, you have no mana. I think this mod should ignore mana when the player's dead.
It is supposed to... do you get the spam when you are laying on the ground dead, or when you are a ghost? Looking at the API, it looks like I should use UnitIsDeadOrGhost instead of the UnitIsDead function that I'm using right now.
Report comment to moderator  
Reply With Quote
Unread 10-25-08, 07:58 AM  
Tweeker
A Cobalt Mageweaver
 
Tweeker's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 234
File comments: 153
Uploads: 5
I would suggest disable while mounted, or add a toggle
__________________
Report comment to moderator  
Reply With Quote
Unread 10-26-08, 06:36 AM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 139
Uploads: 3
Originally posted by Tweeker
I would suggest disable while mounted, or add a toggle
Version 1.03 adds this (disable warnings while mounted) as well as a new Auto Tracking Switch feature for those with Improved Tracking.
Report comment to moderator  
Reply With Quote
Unread 10-26-08, 06:44 AM  
Ross
A Theradrim Guardian
AddOn Author - Click to view AddOns

Forum posts: 67
File comments: 136
Uploads: 1
Once I posted this :

http://www.wowinterface.com/forums/s...115#post106115

I get this addon, Thanks ya.

[NVM]

Now just need them to approve the new file.
Last edited by Ross : 10-26-08 at 06:46 AM.
Report comment to moderator  
Reply With Quote
Unread 10-26-08, 06:48 AM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 139
Uploads: 3
Originally posted by Ross
Once I posted this :

http://www.wowinterface.com/forums/s...115#post106115

I get this addon, Thanks ya.

Just a couple bugs which some have already stated:

.You keep getting AOTV message and icon when you are a ghost.
.When you are in combat the icon doesn't show

Now just need them to approve the new file.
The ghost thing should be fixed, but please let me know if it is still happening (I jumped off the flight tower in Org and wasn't getting the message while running back).

I added a note in the main area about being in combat... making the button appear in combat is something that addons can't do because of restrictions put on them by Blizzard.

The warnings still work though (and really that was the original purpose anyway... to annoy the heck out of me until I switched aspects).
Report comment to moderator  
Reply With Quote
Unread 10-26-08, 03:32 PM  
Ross
A Theradrim Guardian
AddOn Author - Click to view AddOns

Forum posts: 67
File comments: 136
Uploads: 1
I got this error once I did : /aa tracking on

Date: 2008-10-26 17:27:18
ID: 55
Error occured in: Global
Count: 1
Message: ..\AddOns\AutoAspect\AutoAspect.lua line 422:
bad argument #2 to 'find' (string expected, got nil)
Debug:
(tail call): ?
[C]: ?
[C]: find()
AutoAspect\AutoAspect.lua:422: SetTrackingType()
AutoAspect\AutoAspect.lua:445: AutoAspectEvent()
[string "*:OnEvent"]:1:
[string "*:OnEvent"]:1
AddOns:
Swatter, v5.1.3620 (SnaggleTooth)
AckisRecipeList, vBeta 6 r948
ActionBarSaver, v$Revision$
agExtras, v09-19-07
agUnitFrames, v2008-08-06
Ammocheck, v
Atlas, v1.12.3
AtlasBattlegrounds, v1.12.3
AtlasDungeonLocs, v1.12.3
AtlasFlightPaths, v1.12.3
AtlasOutdoorRaids, v1.12.3
AtlasLoot, v5.01.02
AtlasLootBurningCrusade, v5.00.00
AtlasLootCrafting, v5.00.00
AtlasLootOriginalWoW, v5.00.00
AtlasLootWorldEvents, v5.00.00
AtlasLootWrathoftheLichKing, v5.00.00
AtlasLootFu, v1.2
AtlasQuest, v4.2.0
AucAdvanced, v5.1.3620 (SnaggleTooth)
AucStatHistogram, v5.1.3620 (SnaggleTooth)
AucStatStdDev, v5.1.3620 (SnaggleTooth)
AucUtilAppraiser, v5.1.3620.2530
AucUtilScanButton, v5.1.3620.2530
AucUtilScanProgress, v5.1.3620.2530
Auditor2, v3.2.1
AutoAspect, v1.03
Babylonian, v5.1.DEV.130
Bagnon, v1.6.6
BagnonForever, v1.1.1
BagnonTooltips, v
BanzaiAlert, v2.0
Bartender4, v4.1.2
BaudMark, v1.011
BonusScanner, v4.1
ButtonFacade, v0.1Alpha
ButtonFacadeApathy, v3.0.2
ButtonFacadeCaith, v3.0.2
ButtonFacadeEntropy, v3.0.2
ButtonFacadeLiteStep, v3.0.2
ButtonFacadeOnyx, v3.0.2
ButtonFacadeSerenity, v3.0.2
BuyEmAll, v
Cartographer, v2.0
CartographerBattlegrounds, v2.0
CartographerCoordinates, v2.0
CartographerFoglight, v2.0
CartographerGroupColors, v2.0
CartographerGuildPositions, v2.0
CartographerInstanceLoot, v2.0
CartographerInstanceMaps, v2.0
CartographerInstanceNotes, v2.0
CartographerLookNFeel, v2.0
CartographerNotes, v2.0
CartographerPOI, v2.0
CartographerQuestInfo, v
CartographerWaypoints, v2.0
CCBreaker, v0.5.1
ClassLoot, v1.4.7
Configator, v5.1.DEV.130
DBMAPI, v
DebugLib, v5.1.DEV.130
DetachedMiniButtons, v0.9.45
dHunterTool, v3beta3
DoubleWide, v
EasyDaily, v
EnchantrixBarker, v5.1.3604 (SnaggleTooth)
EnhTooltip, v5.1.3620 (SnaggleTooth)
Examiner, v08.10.20
FBMergeDatabase, v0.9.6
FBOutfitDisplayFrame, v0.9.6
FBTrackingFrame, v0.9.6
FishingBuddy, v0.9.6
FuBar, v
FuBarAmmoFu, v2.0
FuBarAuditorFu, v3.2.1
FuBarBagFu, vv1.0
FuBarCalendarFu, v1.1
FuBarClockFu, v3.0
FuBarDurabilityFu, v2.0
FuBarFishingBuddyFu, v2.2d
FuBarGroupFu, v1
FuBarKungFu, v2.0
FuBarLocationFu, v3.0
FuBarMoneyFu, vv1.1
FuBarPerformanceFu, v2.0
FuBarPetFu, v2.7_WotLK
FuBarVolumeFu, v2.0.$Revision: 55081 $
GFWDisenchantPredictor, v3.0.1
GFWFeedOMatic, v3.0.4
IceHUD, v1.3.10 (Revision: 281)
Informant, v5.1.3604 (SnaggleTooth)
JiralAmmoWarning, v3.00.00.03
LibSharedMedia30, v3.0-50
LightHeaded, v248
LnSMinimap, v1.3.1
ManyItemTooltips, v
Notebook, v
oGlow, v1.12
Omen, v3.0
OmniCC, v2.2.4
PetListPlus, v
QuestHelper, v0.63
RatingBuster, v
Recount, v
sct, v6.2
sctd, v3.1
Skillet, v
Skinner, vb1.9056.7
SorrenTimers, v2.5.5
Stubby, v5.1.3620 (SnaggleTooth)
TFScoreBoard, v
TipTac, v08.10.23
TipTacTalents, v08.10.22
UrbanAchiever, v
XLoot, v0.9
XPBarNone, v2.4
(ck=ba4)
Report comment to moderator  
Reply With Quote
Unread 10-26-08, 04:19 PM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 139
Uploads: 3
Originally posted by Ross
I got this error once I did : /aa tracking on

Date: 2008-10-26 17:27:18
ID: 55
Error occured in: Global
Count: 1
Message: ..\AddOns\AutoAspect\AutoAspect.lua line 422:
bad argument #2 to 'find' (string expected, got nil)
Debug:
(tail call): ?
[C]: ?
[C]: find()
AutoAspect\AutoAspect.lua:422: SetTrackingType()
AutoAspect\AutoAspect.lua:445: AutoAspectEvent()
[string "*:OnEvent"]:1:
[string "*:OnEvent"]:1
Do you know by any chance what you might have had targeted when you turned tracking on? It is possible that some things don't return creature types. I have code in place in v1.04 now to check for that. I'll upload a new version after some further testing.
Report comment to moderator  
Reply With Quote
Unread 10-26-08, 11:31 PM  
Ross
A Theradrim Guardian
AddOn Author - Click to view AddOns

Forum posts: 67
File comments: 136
Uploads: 1
I was in Brill and I think it was an NPC Guard.

I will try and duplicate it.
Last edited by Ross : 10-26-08 at 11:32 PM.
Report comment to moderator  
Reply With Quote
Unread 10-27-08, 04:26 AM  
Kalec
A Kobold Labourer

Forum posts: 0
File comments: 52
Uploads: 0
Sound enables after relog

I disable the sound everytime I log into the game. When I log back in the sound is enabled. It's a little annoying.
This is a great mod, helps alot in raids.
Report comment to moderator  
Reply With Quote
Unread 10-27-08, 05:08 AM  
Gorebag
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 139
Uploads: 3
Re: Sound enables after relog

Originally posted by Kalec
I disable the sound everytime I log into the game. When I log back in the sound is enabled. It's a little annoying.
This is a great mod, helps alot in raids.
Yep, the "aaPlaySound" variable is missing from the ##SavedVariables line in AutoAspect.toc. The next version will have this fixed, but if you want to fix it in the mean time, just add that to the line.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: