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

Updating the WoWContext?

handnavi

Well-Known Member
Joined
Jan 15, 2010
Messages
2,489
Reaction score
55
Hi!

Is there any way to update the current WoWContext just after each loading screen?

I am currently playing around with Singular and Combatbot / Lazyraider / Raidbot and all those Bots wont update it automatically.
Can i force the CC to do it?

Cheers
 
Code:
[Class(WoWClass.DeathKnight)]
        [Spec(TalentSpec.FrostDeathKnight)]
        [Behavior(BehaviorType.Combat)]
        [Context(WoWContext.All)]
        [Priority(500)]
        public static Composite CreateFrostDeathKnightCombat()
        {
            return new PrioritySelector(
                new Decorator(
                    ret =>
                    Me.Combat &&
                    ((SingularSettings.Instance.DeathKnight.Rotation == ForceRot.Auto && GroupUp()) ||
                     SingularSettings.Instance.DeathKnight.Rotation == ForceRot.MasterFrost),
                    SubMfFrost.CreateMasterFrostDeathKnightCombat()
                    ),
                new Decorator(
                    ret =>
                    Me.Combat &&
                    ((SingularSettings.Instance.DeathKnight.Rotation == ForceRot.Auto && !GroupUp()) ||
                     SingularSettings.Instance.DeathKnight.Rotation == ForceRot.SoloFrost),
                    SubSfFrost.CreateSoloFrostDeathKnightCombat()
                    )
                );
        }

        public static bool GroupUp()
        {
            return ((Me.IsInParty && Me.IsInInstance) || (Me.IsInRaid && Me.RaidMemberGuids != null));
            //Just to make sure that if we are in an instance we should be in a party too! Same for raid...
        }

This is how I manage my private Singular edit.
Just rewrite it to your purpose.

Like:
Code:
        [Class(WoWClass.Druid)]
        [Spec(TalentSpec.FeralDruid)]
        [Behavior(BehaviorType.Combat)]
        [Context(WoWContext.All)]
        [Priority(500)]
        public static Composite CreateFeralDruidCombat()
        {
            return new PrioritySelector(
                new Decorator(
                    ret =>
                    Me.Combat &&
                    (Me.IsInInstance),
                    SubMfFrost.CreateMasterFrostDeathKnightCombat()//Your rotation here
                    ),
                new Decorator(
                    ret =>
                    Me.Combat &&
                    (Me.IsInRaid),
                    SubSfFrost.CreateSoloFrostDeathKnightCombat()//Your rotation here
                    )
                );
        }

greetz

Weischbier
 
Code:
[Class(WoWClass.DeathKnight)]
        [Spec(TalentSpec.FrostDeathKnight)]
        [Behavior(BehaviorType.Combat)]
        [Context(WoWContext.All)]
        [Priority(500)]
        public static Composite CreateFrostDeathKnightCombat()
        {
            return new PrioritySelector(
                new Decorator(
                    ret =>
                    Me.Combat &&
                    ((SingularSettings.Instance.DeathKnight.Rotation == ForceRot.Auto && GroupUp()) ||
                     SingularSettings.Instance.DeathKnight.Rotation == ForceRot.MasterFrost),
                    SubMfFrost.CreateMasterFrostDeathKnightCombat()
                    ),
                new Decorator(
                    ret =>
                    Me.Combat &&
                    ((SingularSettings.Instance.DeathKnight.Rotation == ForceRot.Auto && !GroupUp()) ||
                     SingularSettings.Instance.DeathKnight.Rotation == ForceRot.SoloFrost),
                    SubSfFrost.CreateSoloFrostDeathKnightCombat()
                    )
                );
        }

        public static bool GroupUp()
        {
            return ((Me.IsInParty && Me.IsInInstance) || (Me.IsInRaid && Me.RaidMemberGuids != null));
            //Just to make sure that if we are in an instance we should be in a party too! Same for raid...
        }

This is how I manage my private Singular edit.
Just rewrite it to your purpose.

Like:
Code:
        [Class(WoWClass.Druid)]
        [Spec(TalentSpec.FeralDruid)]
        [Behavior(BehaviorType.Combat)]
        [Context(WoWContext.All)]
        [Priority(500)]
        public static Composite CreateFeralDruidCombat()
        {
            return new PrioritySelector(
                new Decorator(
                    ret =>
                    Me.Combat &&
                    (Me.IsInInstance),
                    SubMfFrost.CreateMasterFrostDeathKnightCombat()//Your rotation here
                    ),
                new Decorator(
                    ret =>
                    Me.Combat &&
                    (Me.IsInRaid),
                    SubSfFrost.CreateSoloFrostDeathKnightCombat()//Your rotation here
                    )
                );
        }

greetz

Weischbier

Thanks Weischi :-*

But honestly i am looking for a smarter way to do so. :-(
 
Whats not smart with this?
I don't need to restart HB when I change the wowcontext ... done!
What more would you expect? I run this with my DK and RaidBot and never got into any issues.
 
Last edited by a moderator:
Back
Top