What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Aura Problems

SuperSlow

New Member
Joined
Jan 15, 2010
Messages
18
Reaction score
0
I'm using Honorbuddy 2.0.0.3895

I can't seem to get my auras correctly.
It says I always have Molten Core aura.

I tried .ActiveAuras
I tried .GetAllAuras

Code:
[FONT=Courier New][SIZE=2]/* Using this in combat */[/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff][COLOR=#0000ff]if[/COLOR][/COLOR] (_me.CurrentTarget.Distance < 38 && _me.Auras.ContainsKey([COLOR=#a31515][COLOR=#a31515]"Molten Core"[/COLOR][/COLOR]))[/SIZE][/FONT]
[FONT=Courier New][SIZE=2]{[/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff][COLOR=#0000ff] if[/COLOR][/COLOR] (Incinerate())[/SIZE][/FONT]
[FONT=Courier New][SIZE=2] {[/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff][COLOR=#0000ff]  return[/COLOR][/COLOR];[/SIZE][/FONT]
[FONT=Courier New][SIZE=2] }[/SIZE][/FONT]
[FONT=Courier New][SIZE=2]}[/SIZE][/FONT]
 
[FONT=Courier New][SIZE=2]/*Used this to print all auras */[/SIZE][/FONT]
[COLOR=#0000ff][COLOR=#0000ff][FONT=Courier New][SIZE=2]foreach[/SIZE][/FONT][/COLOR][/COLOR][FONT=Courier New][SIZE=2] ([COLOR=#2b91af][COLOR=#2b91af]KeyValuePair[/COLOR][/COLOR]<[COLOR=#0000ff][COLOR=#0000ff]string[/COLOR][/COLOR], [COLOR=#2b91af][COLOR=#2b91af]WoWAura[/COLOR][/COLOR]> sp [COLOR=#0000ff][COLOR=#0000ff]in[/COLOR][/COLOR] _me.Auras)[/SIZE][/FONT]
[FONT=Courier New][SIZE=2]{[/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff][COLOR=#0000ff] if[/COLOR][/COLOR] (_me.Auras.ContainsKey(sp.Key))[/SIZE][/FONT]
[FONT=Courier New][SIZE=2] {[/SIZE][/FONT]
[FONT=Courier New][SIZE=2]   dlog(sp.Key + [COLOR=#a31515][COLOR=#a31515]" "[/COLOR][/COLOR] + _me.Auras[sp.Key].Flags.ToString());[/SIZE][/FONT]
[FONT=Courier New][SIZE=2] }[/SIZE][/FONT]
[COLOR=#0000ff][COLOR=#0000ff][FONT=Courier New][SIZE=2] else[/SIZE][/FONT][/COLOR]
[/COLOR][FONT=Courier New][SIZE=2] {[/SIZE][/FONT]
[FONT=Courier New][SIZE=2]   dlog(sp.Key);[/SIZE][/FONT]
[FONT=Courier New][SIZE=2] }[/SIZE][/FONT]
[FONT=Courier New][SIZE=2]}[/SIZE][/FONT]

Any help would be great.
 
Auras = All auras, including buffs, debuffs and hidden skill mechanics (enchants, etc.)

Passive auras = buffs without any duration
Active auras = mostly buffs and debuffs

=>

As soon as you have the molten core talent, you DO have a molten core aura. That's not the buff itself but the spell mechanic that will allow molten core to work.
What you are looking for is the molten core spell proc and not the talent.

Try using Me.ActiveAuras and look up for a buff named molten core, or else you'll have to look for the proc aura id. Note that since there are 3 ranks for this talent, you'll surely have to find 3 different id's.
 
This is wrong. I encountered the same problem when trying to detect Denounce on my paladin. The problem is that almost all of these abilities add a hidden mechanic/aura that procs the real ability for you. This aura WILL SHOW UP in both Auras and ActiveAuras. The solution for me was to use LUA to find all the buffs...the code for it should be floating around somewhere. If no one answers by the time I get back from class, I'll post it up.
 
That's how I'm detecting Demonic rebirth (2 talent points only):

PHP:
private static bool HasDemonicRebirth
        {
            get
            {
                return Me.ActiveAuras.Any(x => x.Value.SpellId == 88448);
            }
        }

You'll find the aura ID using HBConsole plugin for example. Note that you have an extra aura also named Demonic Rebirth once it's on cooldown, so you really need to look for the right aura.
 
Ended up using
Code:
[FONT=Courier New][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (  _me.Auras.ContainsKey([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Molten Core"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]) [/SIZE][/FONT]
[FONT=Courier New][SIZE=2]               && [/SIZE][/FONT]
[FONT=Courier New][SIZE=2]     _me.Auras[[/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Molten Core"[/COLOR][/SIZE][/COLOR][/SIZE][/FONT][SIZE=2][FONT=Courier New]].SpellId == 71165)[/FONT][/SIZE]

the aura spell id changes when the spell procs ready.
this is specific to my current level of the aura and I will need to add others to this later.
Thanks to all for the help.
 
Ended up using
Code:
[FONT=Courier New][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (  _me.Auras.ContainsKey([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Molten Core"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]) [/SIZE][/FONT]
[FONT=Courier New][SIZE=2]               && [/SIZE][/FONT]
[FONT=Courier New][SIZE=2]     _me.Auras[[/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Molten Core"[/COLOR][/SIZE][/COLOR][/SIZE][/FONT][SIZE=2][FONT=Courier New]].SpellId == 71165)[/FONT][/SIZE]

the aura spell id changes when the spell procs ready.
this is specific to my current level of the aura and I will need to add others to this later.
Thanks to all for the help.
you really only need the secand part, because it wont return true unless it has the buff anyway, so its kind of redundant.
Code:
[FONT=Courier New][SIZE=2]_me.Auras[[/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Molten Core"[/COLOR][/SIZE][/COLOR][/SIZE][/FONT][SIZE=2][FONT=Courier New]].SpellId == 71165

[/FONT][/SIZE]</pre>
 
Yeah, unless there is no 'molten core' buff and you like to eat nullreferenceexceptions every morning.
 
Back
Top