public static void Path_OnTarget( Mobile from, object obj )
{
IPoint3D p = obj as IPoint3D;
if ( p == null )
return;
Spells.SpellHelper.GetSurfaceTop( ref p );
Path( from, p, FastAStarAlgorithm.Instance, "Fast", 0 );
Path( from, p, SlowAStarAlgorithm.Instance, "Slow", 2 );
m_OverrideAlgorithm = null;
/*MovementPath path = new MovementPath( from, new Point3D( p ) );
if ( !path.Success )
{
from.SendMessage( "No path to there could be found." );
}
else
{
//for ( int i = 0; i < path.Directions.Length; ++i )
// Timer.DelayCall( TimeSpan.FromSeconds( 0.1 + (i * 0.3) ), new TimerStateCallback( Pathfind ), new object[]{ from, path.Directions[i] } );
int x = from.X;
int y = from.Y;
int z = from.Z;
for ( int i = 0; i < path.Directions.Length; ++i )
{
Movement.Movement.Offset( path.Directions[i], ref x, ref y );
new Items.RecallRune().MoveToWorld( new Point3D( x, y, z ), from.Map );
}
}*/
}