• Visit Rebornbuddy
  • Speedbooster simple plugin

    Discussion in 'Movement' started by Macatho, Jan 31, 2015.

    1. Macatho

      Macatho New Member

      Joined:
      Dec 3, 2011
      Messages:
      1,108
      Likes Received:
      18
      Trophy Points:
      0
      Simple plugin that just uses the different speed spells characters have. I havent added all of em but if you're running some class that isnt added I think you can figure it out yourself how it works.
      The if conditions that have to be met to cast the spell are: not in combat / not mounted / Does not have said aura.
      Thanks Banzai for the idea and your hunter-only version.
      btw. some spells like Levitate with glyph can interfere with the bots ability to jump, use with caution.

      PHP:
      using System;
      using Styx;
      using Styx.CommonBot;
      using Styx.Plugins;

      namespace 
      HB.Plugins.NoMoveDetector
      {
          class 
      NoMoveDetector HBPlugin
          
      {
              
      #region Overrides of HBPlugin

            
              
      public override string ButtonText get { return "---"; } }
              public 
      override bool WantButton get { return false; } }
              public 
      override void OnButtonPress() { }
              public 
      override string Name get { return "Speedbooster"; } }
              public 
      override string Author get { return "Macatho with inspiration from Banzai"; } }
              public 
      override Version Version get { return new Version(100); } }

              
      #endregion
              
      public override void Pulse()
              {
              if(
      StyxWoW.Me.Class == WoWClass.Hunter){
                          if (!
      StyxWoW.Me.IsActuallyInCombat 
                      
      && !StyxWoW.Me.Mounted
                      
      && !StyxWoW.Me.HasAura(5118)
                      && 
      SpellManager.CanCast(5118))
                  {
                      
      SpellManager.Cast(5118);
                  }    
              }
              if(
      StyxWoW.Me.Class == WoWClass.Paladin){
                          if (!
      StyxWoW.Me.IsActuallyInCombat 
                      
      && !StyxWoW.Me.Mounted
                      
      && !StyxWoW.Me.HasAura(85499)
                      && 
      SpellManager.CanCast(85499))
                  {
                      
      SpellManager.Cast(85499);
                  }        
              }
              if(
      StyxWoW.Me.Class == WoWClass.Druid){
                          if (!
      StyxWoW.Me.IsActuallyInCombat 
                      
      && !StyxWoW.Me.Mounted
                      
      && !StyxWoW.Me.HasAura(106898)
                      && 
      SpellManager.CanCast(106898))
                  {
                      
      SpellManager.Cast(106898);
                  }    
              }
              if(
      StyxWoW.Me.Class == WoWClass.DeathKnight){
                          if (!
      StyxWoW.Me.IsActuallyInCombat 
                      
      && !StyxWoW.Me.Mounted
                      
      && !StyxWoW.Me.HasAura(96268)
                      && 
      SpellManager.CanCast(96268))
                  {
                      
      SpellManager.Cast(96268);
                  }    
              }
          
      //    if(StyxWoW.Me.Class == WoWClass.Priest){
          //                if (!StyxWoW.Me.IsActuallyInCombat 
          //            && StyxWoW.Me.ZoneId !=6182 
          //            && !StyxWoW.Me.Mounted
          //            && !StyxWoW.Me.HasAura(96268)
          //            && SpellManager.CanCast(96268))
          //        {
          //            SpellManager.Cast(96268);
          //        }    
          //    }
              
      }

           }
      }
       
    2. tiischuu

      tiischuu New Member

      Joined:
      Apr 6, 2014
      Messages:
      1
      Likes Received:
      0
      Trophy Points:
      0
      great! thanks dude.
       
    3. Suarnix

      Suarnix Member

      Joined:
      Apr 18, 2012
      Messages:
      69
      Likes Received:
      0
      Trophy Points:
      6
      How can I edit hunter settings to use aspect even in combat?
       
    4. Jandurson

      Jandurson New Member

      Joined:
      Dec 9, 2011
      Messages:
      162
      Likes Received:
      0
      Trophy Points:
      0
      @Suarnix

      I believe the line !StyxWoW.Me.IsActuallyInCombat can be removed for Aspect. That should be saying "if Im not actually in combat", so removing it wouldn't check if you are or aren't in combat. Haven't tried it, and Im still new to the language, but give it a shot. On the other hand ONLY casting in combat you should be able to just delete the "!" mark at the beginning.

      So the "Always use aspect" should be:

      Code:
            if(StyxWoW.Me.Class == WoWClass.Hunter){    //If My class = hunter
                          if (!StyxWoW.Me.Mounted                           //If I am not mounted
                      && !StyxWoW.Me.HasAura(5118)                     //If I dont already have the buff
                      && SpellManager.CanCast(5118))                    //If I can cast the buff
                  { 
                      SpellManager.Cast(5118);                             //Cast the buff
                  }     
              }
      Hope it works!
       

    Share This Page