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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Speedbooster simple plugin

Macatho

New Member
Joined
Dec 3, 2011
Messages
1,108
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(1, 0, 0); } }

        #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);
    //        }	
	//	}
        }

     }
}
 
@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!
 
Back
Top