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