public override void OnCast() { Item shoes = Caster.FindItemOnLayer(Layer.Shoes); if (Caster.Mounted) { Caster.SendMessage("You cannot use this ability while on a mount!"); } else if (shoes is BootsofHermes) { Caster.SendMessage("You cannot use this ability while wearing those magical boots!"); } else { if (!Caster.CanBeginAction(typeof(WindRunner))) { WindRunner.RemoveEffect(Caster); } int TotalTime = (int)(Caster.Skills[SkillName.Wrestling].Value * 5); TableWindRunning[Caster] = SpeedControl.MountSpeed; Caster.Send(SpeedControl.MountSpeed); new InternalTimer(Caster, TimeSpan.FromSeconds(TotalTime)).Start(); Caster.BeginAction(typeof(WindRunner)); Point3D air = new Point3D((Caster.X + 1), (Caster.Y + 1), (Caster.Z + 5)); Effects.SendLocationParticles(EffectItem.Create(air, Caster.Map, EffectItem.DefaultDuration), 0x5590, 9, 32, 0, 0, 5022, 0); Caster.PlaySound(0x64F); } FinishSequence(); }
protected override void OnTick() { if (DateTime.Now >= m_Expire) { WindRunner.RemoveEffect(m_m); Stop(); } }