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

Changing a Custom Class, no longer shows up

Status
Not open for further replies.
Nivarka... Nivarka, Nivarka.

Why didn't you ask me on skype first?

An edit can be incorrect because it fails to follow the C# syntax of either the .net environment or Honorbuddy's API, and, last I checked you had no idea to code so don't even try. Send me the working custom class and what edit you would like and I'll do it.
 
Unfortunately, Automatic is not able to complete it in time, anyone else got other ideas?
 
post removed - sorted the issue myself
 
Last edited:
Code:
//////////////////////////////////////////////////
//              Raid/Subtlety.cs                //
//      Part of MutaRaidBT by fiftypence        //
//////////////////////////////////////////////////


using System;
using CommonBehaviors.Actions;
using Styx;
using TreeSharp;
using Action = TreeSharp.Action;


namespace MutaRaidBT.Composites.Context.Raid
{
    static class Subtlety
    {
        static public Composite BuildCombatBehavior()
        {
            return new PrioritySelector(
                Helpers.Spells.ToggleAutoAttack(),


                Helpers.Spells.Cast("Redirect", ret => StyxWoW.Me.ComboPoints < StyxWoW.Me.RawComboPoints),


                new Decorator(ret => StyxWoW.Me.ComboPoints == 5 || Helpers.Spells.IsAuraActive(StyxWoW.Me, "Fury of the Destroyer"),
                    new PrioritySelector(
                        Helpers.Spells.Cast("Rupture", ret => StyxWoW.Me.Dead && Helpers.Area.IsCurTargetSpecial() &&
                                                                         Helpers.Spells.IsAuraActive(StyxWoW.Me.CurrentTarget, "Find Weakness") &&
                                                                         !Helpers.Spells.IsAuraActive(StyxWoW.Me.CurrentTarget, "Rupture")),
                        Helpers.Spells.CastSelf("Slice and Dice", ret => Helpers.Spells.GetAuraTimeLeft(StyxWoW.Me, "Slice and Dice") < 3),
                        Helpers.Spells.Cast("Rupture", ret => StyxWoW.Me.Dead && Helpers.Area.IsCurTargetSpecial() &&
                                                                         !Helpers.Spells.IsAuraActive(StyxWoW.Me.CurrentTarget, "Rupture")),
                        Helpers.Spells.CastSelf("Recuperate", ret => Helpers.Spells.GetAuraTimeLeft(StyxWoW.Me, "Recuperate") < 3),
                        Helpers.Spells.Cast("Eviscerate", ret => Helpers.Spells.IsAuraActive(StyxWoW.Me.CurrentTarget, "Find Weakness") ||
                                                                         Helpers.Spells.IsAuraActive(StyxWoW.Me, "Fury of the Destroyer") ||
                                                                         Helpers.Rogue.mCurrentEnergy >= 60 || (Helpers.Area.IsCurTargetSpecial() &&
                                                                         Helpers.Spells.GetAuraTimeLeft(StyxWoW.Me.CurrentTarget, "Rupture") < 3))
                    )
                ),


                Helpers.Spells.CastFocus("Tricks of the Trade", ret => !Helpers.Spells.IsAuraActive(StyxWoW.Me, "Tricks of the Trade") &&
                                                                       Helpers.Rogue.mCurrentEnergy < 60),


                Helpers.Spells.CastCooldown("Premeditation", ret => StyxWoW.Me.ComboPoints <= 3 && (StyxWoW.Me.HasAura("Stealth") ||
                                                                    StyxWoW.Me.HasAura("Shadow Dance") || StyxWoW.Me.HasAura("Vanish"))),


                Helpers.Specials.UseSpecialAbilities(ret => Helpers.Spells.IsAuraActive(StyxWoW.Me, "Shadow Dance") ||
                                                            Helpers.Spells.GetSpellCooldown("Shadow Dance") >= 10),


                new Decorator(ret => Helpers.Rogue.IsCooldownsUsable() &&
                                     StyxWoW.Me.ComboPoints == 0 &&
                                     Helpers.Rogue.mCurrentEnergy >= 50 &&
                                     !(Helpers.Spells.GetSpellCooldown("Premeditation") > 0),
                    new PrioritySelector(
                        new Decorator(ret => Helpers.Spells.CanCast("Shadow Dance"),
                            new Sequence(
                                Helpers.Spells.CastSelf("Shadow Dance"),
                                new WaitContinue(TimeSpan.FromSeconds(0.5), ret => false, new ActionAlwaysSucceed())
                            )
                        ),


                        new Decorator(ret => Helpers.Rogue.IsCooldownsUsable() &&
                                             !Helpers.Spells.IsAuraActive(StyxWoW.Me, "Shadow Dance") &&
                                             Helpers.Spells.GetSpellCooldown("Shadow Dance") > 0 &&
                                             Helpers.Spells.CanCast("Vanish"),
                            new Sequence(
                                Helpers.Spells.CastSelf("Vanish"),
                                new WaitContinue(TimeSpan.FromSeconds(1), ret => false, new ActionAlwaysSucceed()),
                                Helpers.Spells.CastCooldown("Premeditation"),
                                Helpers.Spells.Cast("Ambush", ret => Helpers.Rogue.IsBehindUnit(StyxWoW.Me.CurrentTarget))
                            )
                        ),


                        Helpers.Spells.CastSelf("Preparation", ret => Helpers.Rogue.IsCooldownsUsable() &&
                                                                      Helpers.Spells.GetSpellCooldown("Vanish") > 30)
                    )
                ),


                // CP Builders
                new Decorator(ret => StyxWoW.Me.ComboPoints != 5 && (StyxWoW.Me.ComboPoints < 4 ||
                                     (StyxWoW.Me.ComboPoints == 4 && (Helpers.Rogue.mCurrentEnergy >= 90 ||
                                     Helpers.Spells.GetAuraTimeLeft(StyxWoW.Me.CurrentTarget, "Rupture") < 3 ||
                                     Helpers.Spells.IsAuraActive(StyxWoW.Me, "Shadow Dance")))),
                    new PrioritySelector(
                        Helpers.Spells.Cast("Ambush", ret => Helpers.Rogue.IsBehindUnit(StyxWoW.Me.CurrentTarget) &&
                                                                 (StyxWoW.Me.HasAura("Stealth") || StyxWoW.Me.HasAura("Vanish") ||
                                                                 StyxWoW.Me.HasAura("Shadow Dance"))),
                        Helpers.Spells.Cast("Hemorrhage", ret => Helpers.Spells.GetAuraTimeLeft(StyxWoW.Me.CurrentTarget, 89775) < 3),
                        Helpers.Spells.Cast("Backstab", ret => Helpers.Rogue.IsBehindUnit(StyxWoW.Me.CurrentTarget)),
                        Helpers.Spells.Cast("Hemorrhage", ret => !Helpers.Rogue.IsBehindUnit(StyxWoW.Me.CurrentTarget))
                    )
                )
            );
        }


        static public Composite BuildPullBehavior()
        {
            return new Action(ret => RunStatus.Failure);
        }


        static public Composite BuildBuffBehavior()
        {
            return new Action(ret => RunStatus.Failure);
        }
    }
}
that should work, but its not going to cast Eviscerate because it waits for rapture to be up.
 
Code:
//////////////////////////////////////////////////
//              Raid/Subtlety.cs                //
//      Part of MutaRaidBT by fiftypence        //
//////////////////////////////////////////////////


using System;
using CommonBehaviors.Actions;
using Styx;
using TreeSharp;
using Action = TreeSharp.Action;


namespace MutaRaidBT.Composites.Context.Raid
{
    static class Subtlety
    {
        static public Composite BuildCombatBehavior()
        {
            return new PrioritySelector(
                Helpers.Spells.ToggleAutoAttack(),


                Helpers.Spells.Cast("Redirect", ret => StyxWoW.Me.ComboPoints < StyxWoW.Me.RawComboPoints),


                new Decorator(ret => StyxWoW.Me.ComboPoints == 5 || Helpers.Spells.IsAuraActive(StyxWoW.Me, "Fury of the Destroyer"),
                    new PrioritySelector(
                        Helpers.Spells.Cast("Rupture", ret => StyxWoW.Me.Dead && Helpers.Area.IsCurTargetSpecial() &&
                                                                         Helpers.Spells.IsAuraActive(StyxWoW.Me.CurrentTarget, "Find Weakness") &&
                                                                         !Helpers.Spells.IsAuraActive(StyxWoW.Me.CurrentTarget, "Rupture")),
                        Helpers.Spells.CastSelf("Slice and Dice", ret => Helpers.Spells.GetAuraTimeLeft(StyxWoW.Me, "Slice and Dice") < 3),
                        Helpers.Spells.Cast("Rupture", ret => StyxWoW.Me.Dead && Helpers.Area.IsCurTargetSpecial() &&
                                                                         !Helpers.Spells.IsAuraActive(StyxWoW.Me.CurrentTarget, "Rupture")),
                        Helpers.Spells.CastSelf("Recuperate", ret => Helpers.Spells.GetAuraTimeLeft(StyxWoW.Me, "Recuperate") < 3),
                        Helpers.Spells.Cast("Eviscerate", ret => Helpers.Spells.IsAuraActive(StyxWoW.Me.CurrentTarget, "Find Weakness") ||
                                                                         Helpers.Spells.IsAuraActive(StyxWoW.Me, "Fury of the Destroyer") ||
                                                                         Helpers.Rogue.mCurrentEnergy >= 60 || (Helpers.Area.IsCurTargetSpecial())
                    )
                ),


                Helpers.Spells.CastFocus("Tricks of the Trade", ret => !Helpers.Spells.IsAuraActive(StyxWoW.Me, "Tricks of the Trade") &&
                                                                       Helpers.Rogue.mCurrentEnergy < 60),


                Helpers.Spells.CastCooldown("Premeditation", ret => StyxWoW.Me.ComboPoints <= 3 && (StyxWoW.Me.HasAura("Stealth") ||
                                                                    StyxWoW.Me.HasAura("Shadow Dance") || StyxWoW.Me.HasAura("Vanish"))),


                Helpers.Specials.UseSpecialAbilities(ret => Helpers.Spells.IsAuraActive(StyxWoW.Me, "Shadow Dance") ||
                                                            Helpers.Spells.GetSpellCooldown("Shadow Dance") >= 10),


                new Decorator(ret => Helpers.Rogue.IsCooldownsUsable() &&
                                     StyxWoW.Me.ComboPoints == 0 &&
                                     Helpers.Rogue.mCurrentEnergy >= 50 &&
                                     !(Helpers.Spells.GetSpellCooldown("Premeditation") > 0),
                    new PrioritySelector(
                        new Decorator(ret => Helpers.Spells.CanCast("Shadow Dance"),
                            new Sequence(
                                Helpers.Spells.CastSelf("Shadow Dance"),
                                new WaitContinue(TimeSpan.FromSeconds(0.5), ret => false, new ActionAlwaysSucceed())
                            )
                        ),


                        new Decorator(ret => Helpers.Rogue.IsCooldownsUsable() &&
                                             !Helpers.Spells.IsAuraActive(StyxWoW.Me, "Shadow Dance") &&
                                             Helpers.Spells.GetSpellCooldown("Shadow Dance") > 0 &&
                                             Helpers.Spells.CanCast("Vanish"),
                            new Sequence(
                                Helpers.Spells.CastSelf("Vanish"),
                                new WaitContinue(TimeSpan.FromSeconds(1), ret => false, new ActionAlwaysSucceed()),
                                Helpers.Spells.CastCooldown("Premeditation"),
                                Helpers.Spells.Cast("Ambush", ret => Helpers.Rogue.IsBehindUnit(StyxWoW.Me.CurrentTarget))
                            )
                        ),


                        Helpers.Spells.CastSelf("Preparation", ret => Helpers.Rogue.IsCooldownsUsable() &&
                                                                      Helpers.Spells.GetSpellCooldown("Vanish") > 30)
                    )
                ),


                // CP Builders
                new Decorator(ret => StyxWoW.Me.ComboPoints != 5 && (StyxWoW.Me.ComboPoints < 4 ||
                                     (StyxWoW.Me.ComboPoints == 4 && (Helpers.Rogue.mCurrentEnergy >= 90 ||
                                     Helpers.Spells.GetAuraTimeLeft(StyxWoW.Me.CurrentTarget, "Rupture") < 3 ||
                                     Helpers.Spells.IsAuraActive(StyxWoW.Me, "Shadow Dance")))),
                    new PrioritySelector(
                        Helpers.Spells.Cast("Ambush", ret => Helpers.Rogue.IsBehindUnit(StyxWoW.Me.CurrentTarget) &&
                                                                 (StyxWoW.Me.HasAura("Stealth") || StyxWoW.Me.HasAura("Vanish") ||
                                                                 StyxWoW.Me.HasAura("Shadow Dance"))),
                        Helpers.Spells.Cast("Hemorrhage", ret => Helpers.Spells.GetAuraTimeLeft(StyxWoW.Me.CurrentTarget, 89775) < 3),
                        Helpers.Spells.Cast("Backstab", ret => Helpers.Rogue.IsBehindUnit(StyxWoW.Me.CurrentTarget)),
                        Helpers.Spells.Cast("Hemorrhage", ret => !Helpers.Rogue.IsBehindUnit(StyxWoW.Me.CurrentTarget))
                    )
                )
            );
        }


        static public Composite BuildPullBehavior()
        {
            return new Action(ret => RunStatus.Failure);
        }


        static public Composite BuildBuffBehavior()
        {
            return new Action(ret => RunStatus.Failure);
        }
    }
}

this one will cast eviserate. (or however its spelled)
 
keep in mind that your question had to do with dev stuff and not about general support
next time use developers section

thread closed
 
Status
Not open for further replies.
Back
Top