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

API - Me.FlagCarrier or something.

hi1674

New Member
Joined
Jan 15, 2010
Messages
1,637
Reaction score
5
Is there an easy way to check if i hold the flag in a BG or not.

Like:

Me.IsFlagcarrier

Would be awesome.

My Rogue wants to stealth all the time now when i hold the flag.
 
no there is not, but you can check my CC in the Divine Shield section to see how i handled it, you basicaly have to check for an aura on yourself (warsung flag or whatever I do not remember the names)
 
return new PrioritySelector(
SC.CastSpell("Stealth", a => !Me.HasAura("Alliance Flag") && !Me.Combat && !Me.Mounted && SC.CanCast("Stealth"), "Stealthing"),

That should do the trick i guess
 
Last edited:
!Me.HasAura("Alliance Flag") && !Me.HasAura("Horde Flag")
 
Still seem to ignore that i have the aura.

Code:
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Decorator[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2](ret => !Me.HasAura([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Alliance Flag"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]) && !Me.HasAura([SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Stealth"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE] && !Me.Combat && !Me.Mounted && SC.CanCast([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Stealth"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]),[/SIZE]
[SIZE=2]SC.CastSpell([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Stealth"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], a => [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]true[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"I'm the invisible man !"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2]),[/SIZE]
 
Last edited:
Back
Top