In Abilitythesix.cs
under "public partial class Ability"
look at your 6 abilities.
In this case i copied and pasted flamewave to the bottom of the list and edited flame wave to timowave..
#region TimoWave
public static void TimoWave(Mobile from)
{
if (!CanUse(from))
return;
from.Say("*Vas Ort Timo!*");
new TimoWaveTimer(from).Start();
}
internal class TimoWaveTimer : Timer
{
private Mobile m_From;
private Point3D m_StartingLocation;
private Map m_Map;
private int m_Count;
private Point3D m_Point;
public TimoWaveTimer(Mobile from)
: base(TimeSpan.FromMilliseconds(300.0), TimeSpan.FromMilliseconds(300.0))
{
this.m_From = from;
this.m_StartingLocation = from.Location;
this.m_Map = from.Map;
this.m_Count = 0;
this.m_Point = new Point3D();
this.SetupDamage(from);
}
protected override void OnTick()
{
if (this.m_From == null || this.m_From.Deleted)
{
this.Stop();
return;
}
double dist = 0.0;
for (int i = -this.m_Count; i < this.m_Count + 1; i++)
{
for (int j = -this.m_Count; j < this.m_Count + 1; j++)
{
this.m_Point.X = this.m_StartingLocation.X + i;
this.m_Point.Y = this.m_StartingLocation.Y + j;
this.m_Point.Z = this.m_Map.GetAverageZ(this.m_Point.X, this.m_Point.Y);
dist = this.GetDist(this.m_StartingLocation, this.m_Point);
if (dist < ((double)this.m_Count + 0.1) && dist > ((double)this.m_Count - 3.1))
{
Effects.SendLocationParticles(EffectItem.Create(this.m_Point, this.m_Map, EffectItem.DefaultDuration), 0x3709//animation, 10, 9,1593//color,0, 5052,0);
}
}
}
this.m_Count += 3;
if (this.m_Count > 15)
this.Stop();
}
private void SetupDamage(Mobile from)
{
foreach (Mobile m in from.GetMobilesInRange(10))
{
if (CanTarget(from, m, true, false, false))
{
Timer.DelayCall(TimeSpan.FromMilliseconds(300 * (this.GetDist(this.m_StartingLocation, m.Location) / 3)), new TimerStateCallback(Hurt), m);
}
}
}
public void Hurt(object o)
{
Mobile m = o as Mobile;
if (this.m_From == null || m == null || m.Deleted)
return;
int damage = this.m_From.Hits / 8;
if (damage > 200)
damage = 400;
AOS.Damage(m, this.m_From, damage, 0, 200, 0, 0, 0);
m.SendMessage("You are being frozen to death by the seering cold!");
}
private double GetDist(Point3D start, Point3D end)
{
int xdiff = start.X - end.X;
int ydiff = start.Y - end.Y;
return Math.Sqrt((xdiff * xdiff) + (ydiff * ydiff));
}
}
#endregion
}
}
I changed the points where it said flame wave to Timowave for my buddy..
Below that there is this.
public partial class TheSixCommands
at the bottom of the list.
CommandSystem.Register("TimoWave", AccessLevel.Seer, new CommandEventHandler(TimoWave_OnCommand));
would be the last entry for our new ability.
at the very bottom you would add this.
[Description("Use the Six's Timo Wave attack")]
public static void TimoWave_OnCommand(CommandEventArgs e)
{
Ability.TimoWave(e.Mobile);
}
that all said we now have a new ability with a hue that wont be used by the mob but can be added to new mobs using the method from the stygian dragon.