本文整理汇总了C#中Server.Items.WayPoint.MoveToWorld方法的典型用法代码示例。如果您正苦于以下问题:C# WayPoint.MoveToWorld方法的具体用法?C# WayPoint.MoveToWorld怎么用?C# WayPoint.MoveToWorld使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Items.WayPoint
的用法示例。
在下文中一共展示了WayPoint.MoveToWorld方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GoTo
/// <summary>
/// Moves the NPC to the specified location
/// </summary>
/// <param name="to">The location the NPC should move to</param>
public void GoTo( Point2D to )
{
AI = AIType.AI_Melee;
m_NextMove = new Point3D( to, Z );
if ( m_Piece is Knight )
{
WayPoint end = new WayPoint();
WayPoint start = new WayPoint();
end.MoveToWorld( m_NextMove, Map );
// This is a knight, so do L shaped move
int dx = to.X - X;
int dy = to.Y - Y;
Point3D p = Location; // Point3D is a value type
if ( Math.Abs( dx ) == 1 )
p.X += dx;
else
p.Y += dy;
start.MoveToWorld( p, Map );
start.NextPoint = end;
CurrentWayPoint = start;
m_WayPoints.Add( start );
m_WayPoints.Add( end );
}
else
{
WayPoint wp = new WayPoint();
wp.MoveToWorld( m_NextMove, Map );
CurrentWayPoint = wp;
m_WayPoints.Add( wp );
}
Paralyzed = false;
}
示例2: OnResponse
public override void OnResponse( NetState state, RelayInfo info )
{
Mobile from = state.Mobile;
switch ( info.ButtonID )
{
case 0:
{
from.CloseGump( typeof( StartStopMontorilsh ) );
from.SendGump( new CityInvasion( from ) );
break;
}
case 1:
{
Point3D loc = new Point3D( 568, 1311, 0 );
WayPoint point = new WayPoint();
WayPoint point1 = new WayPoint();
WayPoint point2 = new WayPoint();
//WayPoint point3 = new WayPoint();
point.Name = "MontorInvasionIlshenar";
point1.Name = "MontorInvasionIlshenar";
point2.Name = "MontorInvasionIlshenar";
Spawner spawner1 = new Spawner( 1, 1440, 1441, 0, 6, "OrcBrute" );
spawner1.MoveToWorld( new Point3D( 950, 284, -90 ), Map.Malas );
spawner1.WayPoint = point;
point.MoveToWorld( new Point3D( 950, 265, -90 ), Map.Malas );
point.NextPoint = point2;
point2.MoveToWorld( new Point3D( 950, 275, -90 ), Map.Malas );
spawner1.Name = "MontorInvasionIlshenar";
spawner1.Respawn();
Spawner spawner2 = new Spawner( 1, 1440, 1441, 0, 6, "OrcBomber" );
spawner2.MoveToWorld( new Point3D( 952, 284, -90 ), Map.Malas );
spawner2.WayPoint = point1;
point1.MoveToWorld( new Point3D( 952, 265, -90 ), Map.Malas );
spawner2.Name = "MontorInvasionIlshenar";
spawner2.Respawn();
Spawner spawner3 = new Spawner( 1, 1440, 1441, 0, 6, "Savage" );
spawner3.MoveToWorld( new Point3D( 950, 244, -90 ), Map.Malas );
spawner3.WayPoint = point;
spawner3.Name = "MontorInvasionIlshenar";
spawner3.Respawn();
Spawner spawner4 = new Spawner( 1, 1440, 1441, 0, 6, "SavageRider" );
spawner4.MoveToWorld( new Point3D( 952, 244, -90 ), Map.Malas );
spawner4.WayPoint = point1;
spawner4.Name = "MontorInvasionIlshenar";
spawner4.Respawn();
World.Broadcast( 33, true, "Montor Ilshenar is under invasion." );
from.SendGump( new CityInvasion( from ) );
break;
}
case 2:
{
MontorInvasionStone monilsh = new MontorInvasionStone();
monilsh.StopMontorIlshenar();
World.Broadcast( 33, true, "Montor Ilshenar's invasion was successfully beaten back. No more invaders are left in the city." );
from.SendGump( new CityInvasion( from ) );
break;
}
}
}
示例3: OnTarget
protected override void OnTarget( Mobile from, object targeted )
{
if ( targeted is WayPoint )
{
if ( m_Last != null )
m_Last.NextPoint = (WayPoint)targeted;
}
else if ( targeted is IPoint3D )
{
Point3D p = new Point3D( (IPoint3D)targeted );
WayPoint point = new WayPoint( m_Last );
point.MoveToWorld( p, from.Map );
from.Target = new WayPointSeqTarget( point );
from.SendMessage( "Target the position of the next way point in the sequence, or target a way point link the newest way point to." );
}
else
{
from.SendMessage( "Target a position, or another way point." );
}
}
示例4: OnResponse
//.........这里部分代码省略.........
point111.Name = "MaginciaInvasionFelucca";
point112.Name = "MaginciaInvasionFelucca";
point113.Name = "MaginciaInvasionFelucca";
point114.Name = "MaginciaInvasionFelucca";
point115.Name = "MaginciaInvasionFelucca";
point116.Name = "MaginciaInvasionFelucca";
point117.Name = "MaginciaInvasionFelucca";
point118.Name = "MaginciaInvasionFelucca";
point119.Name = "MaginciaInvasionFelucca";
point120.Name = "MaginciaInvasionFelucca";*/
GuardedRegion reg = from.Region as GuardedRegion;
if ( reg == null )
{
from.SendMessage( 33, "You are not in the guarded part of Magincia, Felucca." );
from.SendMessage( 33, "You will have to go there and use [toggleguarded to turn the guards off." );
}
else if ( reg.Disabled )
{
from.SendMessage( 3, "The guards in this region have not changed." );
}
else if ( !reg.Disabled )
{
reg.Disabled = !reg.Disabled;
from.SendMessage( 3, "The guards in this region have been disabled." );
}
if ( DummyMessage && reg != null )
{
from.SendMessage( 33, "If you are not in the guarded part of Magincia, Felucca." );
from.SendMessage( 33, "You will have to go there and use [toggleguarded to turn the guards off." );
}
Spawner spawner1 = new Spawner( 4, 5, 15, 0, 10, "OrcBomber" );
spawner1.MoveToWorld( new Point3D( 3654, 2070, 20 ), Map.Felucca );
spawner1.WayPoint = point;
point.MoveToWorld( new Point3D( 3708, 2090, 5 ), Map.Felucca );
point.NextPoint = point1;
point1.MoveToWorld( new Point3D( 3707, 2180, 20 ), Map.Felucca );
point1.NextPoint = point2;
point2.MoveToWorld( new Point3D( 3675, 2180, 20 ), Map.Felucca );
point2.NextPoint = point3;
point3.MoveToWorld( new Point3D( 3675, 2235, 20 ), Map.Felucca );
point3.NextPoint = point4;
point4.MoveToWorld( new Point3D( 3741, 2235, 20 ), Map.Felucca );
point4.NextPoint = point5;
point5.MoveToWorld( new Point3D( 3741, 2188, 20 ), Map.Felucca );
point5.NextPoint = point6;
point6.MoveToWorld( new Point3D( 3707, 2188, 20 ), Map.Felucca );
point6.NextPoint = point7;
point7.MoveToWorld( new Point3D( 3707, 2180, 20 ), Map.Felucca );
point7.NextPoint = point8;
point8.MoveToWorld( new Point3D( 3675, 2180, 20 ), Map.Felucca );
point8.NextPoint = point9;
point9.MoveToWorld( new Point3D( 3675, 2115, 20 ), Map.Felucca );
point9.NextPoint = point10;
point10.MoveToWorld( new Point3D( 3754, 2115, 20 ), Map.Felucca );
point10.NextPoint = point11;
point11.MoveToWorld( new Point3D( 3708, 2115, 20 ), Map.Felucca );
point11.NextPoint = point;
spawner1.Name = "MaginciaInvasionFelucca";
spawner1.Respawn();
Spawner spawner2 = new Spawner(4, 5, 15, 0, 8, "OrcishLord");
spawner2.MoveToWorld(new Point3D(3797, 2263, 40), Map.Felucca);
spawner2.Name = "MaginciaInvasionFelucca";
spawner2.Respawn();
示例5: OnResponse
//.........这里部分代码省略.........
point10.Name = "CoveInvasionTrammel";
point11.Name = "CoveInvasionTrammel";
point12.Name = "CoveInvasionTrammel";
point13.Name = "CoveInvasionTrammel";
point14.Name = "CoveInvasionTrammel";
point15.Name = "CoveInvasionTrammel";
point16.Name = "CoveInvasionTrammel";
point17.Name = "CoveInvasionTrammel";
point18.Name = "CoveInvasionTrammel";
point19.Name = "CoveInvasionTrammel";
point20.Name = "CoveInvasionTrammel";
point21.Name = "CoveInvasionTrammel";
point22.Name = "CoveInvasionTrammel";
point23.Name = "CoveInvasionTrammel";
point24.Name = "CoveInvasionTrammel";
point25.Name = "CoveInvasionTrammel";
point26.Name = "CoveInvasionTrammel";
point27.Name = "CoveInvasionTrammel";
point28.Name = "CoveInvasionTrammel";
point29.Name = "CoveInvasionTrammel";
point30.Name = "CoveInvasionTrammel";
point31.Name = "CoveInvasionTrammel";
point32.Name = "CoveInvasionTrammel";
point33.Name = "CoveInvasionTrammel";
point34.Name = "CoveInvasionTrammel";
point35.Name = "CoveInvasionTrammel";
point36.Name = "CoveInvasionTrammel";
point37.Name = "CoveInvasionTrammel";
Spawner spawner1 = new Spawner( 4, 5, 15, 0, 4, "OrcBomber" );
spawner1.MoveToWorld( new Point3D( 2322, 1127, 0 ), Map.Trammel );
spawner1.WayPoint = point;
point.MoveToWorld( new Point3D( 2313, 1169, 0 ), Map.Trammel );
point.NextPoint = point1;
point1.MoveToWorld( new Point3D( 2285, 1210, 0 ), Map.Trammel );
point1.NextPoint = point2;
point2.MoveToWorld( new Point3D( 2253, 1210, 0 ), Map.Trammel );
point2.NextPoint = point3;
point3.MoveToWorld( new Point3D( 2236, 1216, 0 ), Map.Trammel );
point3.NextPoint = point4;
point4.MoveToWorld( new Point3D( 2236, 1196, 0 ), Map.Trammel );
point4.NextPoint = point5;
point5.MoveToWorld( new Point3D( 2243, 1196, 0 ), Map.Trammel );
point5.NextPoint = point6;
point6.MoveToWorld( new Point3D( 2243, 1182, 0 ), Map.Trammel );
point6.NextPoint = point7;
point7.MoveToWorld( new Point3D( 2227, 1166, 0 ), Map.Trammel );
point7.NextPoint = point8;
point8.MoveToWorld( new Point3D( 2221, 1205, 0 ), Map.Trammel );
point8.NextPoint = point9;
point9.MoveToWorld( new Point3D( 2237, 1210, 0 ), Map.Trammel );
point9.NextPoint = point2;
spawner1.Name = "CoveInvasionTrammel";
spawner1.Respawn();
Spawner spawner2 = new Spawner( 4, 5, 15, 0, 10, "Orc" );
spawner2.MoveToWorld( new Point3D( 2348, 1214, 0 ), Map.Trammel );
spawner2.WayPoint = point10;
point10.MoveToWorld( new Point3D( 2285, 1210, 0 ), Map.Trammel );
point10.NextPoint = point11;
point11.MoveToWorld( new Point3D( 2268, 1210, 0 ), Map.Trammel );
point11.NextPoint = point12;
point12.MoveToWorld( new Point3D( 2268, 1231, 0 ), Map.Trammel );
示例6: AddWaypoints
public static void AddWaypoints()
{
var one = VoidPoolController.InstanceTram;
var two = VoidPoolController.InstanceFel;
if (one == null || two == null)
return;
foreach (var w in one.WaypointsA.Where(w => w != null && !w.Deleted)) w.Delete();
foreach (var w in one.WaypointsB.Where(w => w != null && !w.Deleted)) w.Delete();
foreach(var w in two.WaypointsA.Where(w => w != null && !w.Deleted)) w.Delete();
foreach (var w in two.WaypointsB.Where(w => w != null && !w.Deleted)) w.Delete();
// patha
var wp = new WayPoint();
wp.MoveToWorld(new Point3D(5590, 2024, 0), Map.Trammel);
one.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
wp.MoveToWorld(new Point3D(5590, 2024, 0), Map.Felucca);
two.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
wp.MoveToWorld(new Point3D(5578, 2029, 0), Map.Trammel);
one.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
wp.MoveToWorld(new Point3D(5578, 2029, 0), Map.Felucca);
two.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
wp.MoveToWorld(new Point3D(5566, 2027, 0), Map.Trammel);
one.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
wp.MoveToWorld(new Point3D(5566, 2027, 0), Map.Felucca);
two.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
wp.MoveToWorld(new Point3D(5555, 2021, 0), Map.Trammel);
one.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
wp.MoveToWorld(new Point3D(5555, 2021, 0), Map.Felucca);
two.WaypointsA.Add(wp);
wp = new WayPoint();
wp.MoveToWorld(new Point3D(5545, 2015, 0), Map.Trammel);
one.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
wp.MoveToWorld(new Point3D(5545, 2015, 0), Map.Felucca);
two.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
wp.MoveToWorld(new Point3D(5537, 2020, 0), Map.Trammel);
one.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
wp.MoveToWorld(new Point3D(5537, 2020, 0), Map.Felucca);
two.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
wp.MoveToWorld(new Point3D(5527, 2015, 0), Map.Trammel);
one.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
wp.MoveToWorld(new Point3D(5527, 2015, 0), Map.Felucca);
two.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
wp.MoveToWorld(new Point3D(5509, 2005, 0), Map.Trammel);
one.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
wp.MoveToWorld(new Point3D(5509, 2005, 0), Map.Felucca);
two.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
wp.MoveToWorld(new Point3D(5500, 1998, 0), Map.Trammel);
one.WaypointsA.Add(wp);
wp = new WayPoint();
WeakEntityCollection.Add("newcovetous", wp);
//.........这里部分代码省略.........
示例7: OnResponse
public override void OnResponse( NetState state, RelayInfo info )
{
Mobile from = state.Mobile;
switch ( info.ButtonID )
{
case 0:
{
from.CloseGump( typeof( StartStopSkaraBraetram ) );
from.SendGump( new CityInvasion( from ) );
break;
}
case 1:
{
Point3D loc = new Point3D( 568, 1311, 0 );
WayPoint point = new WayPoint();
WayPoint point1 = new WayPoint();
WayPoint point2 = new WayPoint();
//WayPoint point3 = new WayPoint();
point.Name = "SkaraBraeInvasionTrammel";
point1.Name = "SkaraBraeInvasionTrammel";
point2.Name = "SkaraBraeInvasionTrammel";
Spawner spawner1 = new Spawner( 1, 1440, 1441, 0, 6, "SavageShaman" );
spawner1.MoveToWorld( new Point3D( 956, 273, 0 ), Map.Malas );
spawner1.WayPoint = point;
point.MoveToWorld( new Point3D( 950, 265, -90 ), Map.Malas );
point.NextPoint = point2;
point2.MoveToWorld( new Point3D( 950, 275, -90 ), Map.Malas );
spawner1.Name = "SkaraBraeInvasionTrammel";
spawner1.Respawn();
Spawner spawner2 = new Spawner( 1, 1440, 1441, 0, 6, "Savage" );
spawner2.MoveToWorld( new Point3D( 952, 284, -90 ), Map.Malas );
spawner2.WayPoint = point1;
point1.MoveToWorld( new Point3D( 952, 265, -90 ), Map.Malas );
spawner2.Name = "SkaraBraeInvasionTrammel";
spawner2.Respawn();
Spawner spawner3 = new Spawner( 1, 1440, 1441, 0, 6, "Savage" );
spawner3.MoveToWorld( new Point3D( 950, 244, -90 ), Map.Malas );
spawner3.WayPoint = point;
spawner3.Name = "SkaraBraeInvasionTrammel";
spawner3.Respawn();
Spawner spawner4 = new Spawner( 1, 1440, 1441, 0, 6, "SavageRider" );
spawner4.MoveToWorld( new Point3D( 952, 244, -90 ), Map.Malas );
spawner4.WayPoint = point1;
spawner4.Name = "SkaraBraeInvasionTrammel";
spawner4.Respawn();
World.Broadcast(33, true, "SkaraBrae Trammel is under invasion.");
from.SendGump( new CityInvasion( from ) );
break;
}
case 2:
{
SkaraBraeInvasionStone SkaraBraetram = new SkaraBraeInvasionStone();
SkaraBraetram.StopSkaraBraeTrammel();
World.Broadcast(33, true, "SkaraBrae Trammel's invasion was successfully beaten back. No more invaders are left in the city.");
from.SendGump( new CityInvasion( from ) );
break;
}
}
}
示例8: OnResponse
//.........这里部分代码省略.........
point53.Name = "BuccaneersDenInvasionTrammel";
point54.Name = "BuccaneersDenInvasionTrammel";
point55.Name = "BuccaneersDenInvasionTrammel";
point56.Name = "BuccaneersDenInvasionTrammel";
point57.Name = "BuccaneersDenInvasionTrammel";
point58.Name = "BuccaneersDenInvasionTrammel";
point59.Name = "BuccaneersDenInvasionTrammel";
point60.Name = "BuccaneersDenInvasionTrammel";
point61.Name = "BuccaneersDenInvasionTrammel";
point62.Name = "BuccaneersDenInvasionTrammel";
point63.Name = "BuccaneersDenInvasionTrammel";
point64.Name = "BuccaneersDenInvasionTrammel";
point65.Name = "BuccaneersDenInvasionTrammel";
point66.Name = "BuccaneersDenInvasionTrammel";
point67.Name = "BuccaneersDenInvasionTrammel";
point68.Name = "BuccaneersDenInvasionTrammel";
point69.Name = "BuccaneersDenInvasionTrammel";
point70.Name = "BuccaneersDenInvasionTrammel";
point71.Name = "BuccaneersDenInvasionTrammel";
point72.Name = "BuccaneersDenInvasionTrammel";
point73.Name = "BuccaneersDenInvasionTrammel";
point74.Name = "BuccaneersDenInvasionTrammel";
point75.Name = "BuccaneersDenInvasionTrammel";
point76.Name = "BuccaneersDenInvasionTrammel";
point77.Name = "BuccaneersDenInvasionTrammel";
point78.Name = "BuccaneersDenInvasionTrammel";
point79.Name = "BuccaneersDenInvasionTrammel";
point80.Name = "BuccaneersDenInvasionTrammel";
point81.Name = "BuccaneersDenInvasionTrammel";
Spawner spawner1 = new Spawner( 4, 5, 15, 0, 4, "OrcBomber" );
spawner1.MoveToWorld( new Point3D( 2734, 1978, 0 ), Map.Trammel );
spawner1.WayPoint = point;
point.MoveToWorld( new Point3D( 2744, 2098, 15 ), Map.Trammel );
point.NextPoint = point1;
point1.MoveToWorld( new Point3D( 2726, 2160, 0 ), Map.Trammel );
point1.NextPoint = point2;
point2.MoveToWorld( new Point3D( 2703, 2164, 0 ), Map.Trammel );
point2.NextPoint = point3;
point3.MoveToWorld( new Point3D( 2685, 2164, 0 ), Map.Trammel );
point3.NextPoint = point4;
point4.MoveToWorld( new Point3D( 2673, 2191, 0 ), Map.Trammel );
point4.NextPoint = point5;
point5.MoveToWorld( new Point3D( 2673, 2215, 0 ), Map.Trammel );
point5.NextPoint = point6;
point6.MoveToWorld( new Point3D( 2746, 2240, 0 ), Map.Trammel );
point6.NextPoint = point7;
point7.MoveToWorld( new Point3D( 2703, 2240, 0 ), Map.Trammel );
point7.NextPoint = point8;
point8.MoveToWorld( new Point3D( 2630, 2308, 0 ), Map.Trammel );
point8.NextPoint = point9;
point9.MoveToWorld( new Point3D( 2620, 2171, 0 ), Map.Trammel );
point9.NextPoint = point;
spawner1.Name = "BuccaneersDenInvasionTrammel";
spawner1.Respawn();
Spawner spawner2 = new Spawner( 4, 5, 15, 0, 20, "Orc" );
spawner2.MoveToWorld( new Point3D( 2809, 2253, 0 ), Map.Trammel );
spawner2.WayPoint = point10;
point10.MoveToWorld( new Point3D( 2746, 2237, 0 ), Map.Trammel );
point10.NextPoint = point11;
point11.MoveToWorld( new Point3D( 2673, 2215, 0 ), Map.Trammel );
point11.NextPoint = point12;
point12.MoveToWorld( new Point3D( 2673, 2191, 0 ), Map.Trammel );
示例9: OnResponse
//.........这里部分代码省略.........
point54.Name = "BritInvasionFelucca";
point55.Name = "BritInvasionFelucca";
point56.Name = "BritInvasionFelucca";
point57.Name = "BritInvasionFelucca";
point58.Name = "BritInvasionFelucca";
point59.Name = "BritInvasionFelucca";
point60.Name = "BritInvasionFelucca";
point61.Name = "BritInvasionFelucca";
point62.Name = "BritInvasionFelucca";
point63.Name = "BritInvasionFelucca";
point64.Name = "BritInvasionFelucca";
point65.Name = "BritInvasionFelucca";
point66.Name = "BritInvasionFelucca";
point67.Name = "BritInvasionFelucca";
point68.Name = "BritInvasionFelucca";
point69.Name = "BritInvasionFelucca";
point70.Name = "BritInvasionFelucca";
point71.Name = "BritInvasionFelucca";
point72.Name = "BritInvasionFelucca";
point73.Name = "BritInvasionFelucca";
point74.Name = "BritInvasionFelucca";
point75.Name = "BritInvasionFelucca";
point76.Name = "BritInvasionFelucca";
point77.Name = "BritInvasionFelucca";
point78.Name = "BritInvasionFelucca";
point79.Name = "BritInvasionFelucca";
point80.Name = "BritInvasionFelucca";
point81.Name = "BritInvasionFelucca";
Spawner spawner1 = new Spawner( 2, 5, 15, 30, 4, "Overseer" );
spawner1.MoveToWorld( new Point3D( 1318, 1756, 10 ), Map.Felucca );
spawner1.WayPoint = point;
point.MoveToWorld( new Point3D( 1374, 1752, 1 ), Map.Felucca );
point.NextPoint = point1;
point1.MoveToWorld( new Point3D( 1440, 1697, 0 ), Map.Felucca );
point1.NextPoint = point2;
point2.MoveToWorld( new Point3D( 1462, 1657, 10 ), Map.Felucca );
point2.NextPoint = point3;
point3.MoveToWorld( new Point3D( 1482, 1605, 20 ), Map.Felucca );
point3.NextPoint = point4;
point4.MoveToWorld( new Point3D( 1424, 1603, 20 ), Map.Felucca );
point4.NextPoint = point5;
point5.MoveToWorld( new Point3D( 1413, 1662, 10 ), Map.Felucca );
point5.NextPoint = point6;
point6.MoveToWorld( new Point3D( 1418, 1697, 0 ), Map.Felucca );
point6.NextPoint = point7;
point7.MoveToWorld( new Point3D( 1481, 1697, 0 ), Map.Felucca );
point7.NextPoint = point8;
point8.MoveToWorld( new Point3D( 1418, 1699, 0 ), Map.Felucca );
point8.NextPoint = point9;
point9.MoveToWorld( new Point3D( 1420, 1726, 20 ), Map.Felucca );
point9.NextPoint = point;
spawner1.Name = "BritInvasionFelucca";
spawner1.Respawn();
Spawner spawner2 = new Spawner( 2, 5, 15, 30, 20, "Overseer" );
spawner2.MoveToWorld( new Point3D( 1363, 1801, 0 ), Map.Felucca );
spawner2.WayPoint = point10;
point10.MoveToWorld( new Point3D( 1373, 1751, 2 ), Map.Felucca );
point10.NextPoint = point11;
point11.MoveToWorld( new Point3D( 1408, 1745, 5 ), Map.Felucca );
point11.NextPoint = point12;
point12.MoveToWorld( new Point3D( 1419, 1669, 10 ), Map.Felucca );
示例10: DeplacerMobile
public static void DeplacerMobile(Mobile m, Point3D p)
{
if (m == null) return;
BaseCreature b = null;
if(m is BaseCreature) b = (BaseCreature)m;
if (b == null) return;
if (b.AI == AIType.AI_None) b.AI = AIType.AI_Melee;
if (b.CurrentWayPoint != null && b.CurrentWayPoint.Name == "TmpPoint")
b.CurrentWayPoint.Delete();
b.CurrentSpeed = 0.2;
WayPoint point = new WayPoint();
point.Name = "TmpPoint";
point.MoveToWorld(p, b.Map);
point.NextPoint = point;
b.CurrentWayPoint = point;
}
示例11: OnResponse
//.........这里部分代码省略.........
point111.Name = "MinocInvasionTrammel";
point112.Name = "MinocInvasionTrammel";
point113.Name = "MinocInvasionTrammel";
point114.Name = "MinocInvasionTrammel";
point115.Name = "MinocInvasionTrammel";
point116.Name = "MinocInvasionTrammel";
point117.Name = "MinocInvasionTrammel";
point118.Name = "MinocInvasionTrammel";
point119.Name = "MinocInvasionTrammel";
point120.Name = "MinocInvasionTrammel";
GuardedRegion reg = from.Region as GuardedRegion;
if ( reg == null )
{
from.SendMessage( 33, "You are not in the guarded part of Minoc, Trammel." );
from.SendMessage( 33, "You will have to go there and use [toggleguarded to turn the guards off." );
}
else if ( reg.Disabled )
{
from.SendMessage( 3, "The guards in this region have not changed." );
}
else if ( !reg.Disabled )
{
reg.Disabled = !reg.Disabled;
from.SendMessage( 3, "The guards in this region have been disabled." );
}
if ( DummyMessage && reg != null )
{
from.SendMessage( 33, "If you are not in the guarded part of Magincia, Trammel." );
from.SendMessage( 33, "You will have to go there and use [toggleguarded to turn the guards off." );
}
Spawner spawner1 = new Spawner( 4, 5, 15, 20, 10, "JukaLord" );
spawner1.MoveToWorld( new Point3D( 2575, 647, 0 ), Map.Trammel );
spawner1.WayPoint = point;
point.MoveToWorld( new Point3D( 2518, 581, 0 ), Map.Trammel );
point.NextPoint = point1;
point1.MoveToWorld( new Point3D( 2518, 530, 0 ), Map.Trammel );
point1.NextPoint = point2;
point2.MoveToWorld( new Point3D( 2510, 530, 0 ), Map.Trammel );
point2.NextPoint = point3;
point3.MoveToWorld( new Point3D( 2510, 518, 0 ), Map.Trammel );
point3.NextPoint = point4;
point4.MoveToWorld( new Point3D( 2490, 518, 0 ), Map.Trammel );
point4.NextPoint = point5;
point5.MoveToWorld( new Point3D( 2489, 545, 0 ), Map.Trammel );
point5.NextPoint = point6;
point6.MoveToWorld( new Point3D( 2433, 545, 0 ), Map.Trammel );
point6.NextPoint = point7;
point7.MoveToWorld( new Point3D( 2489, 545, 0 ), Map.Trammel );
point7.NextPoint = point8;
point8.MoveToWorld( new Point3D( 2489, 482, 15 ), Map.Trammel );
point8.NextPoint = point9;
point9.MoveToWorld( new Point3D( 2490, 518, 0 ), Map.Trammel );
point9.NextPoint = point10;
point10.MoveToWorld( new Point3D( 2505, 518, 0 ), Map.Trammel );
point10.NextPoint = point11;
point11.MoveToWorld( new Point3D( 2518, 530, 0 ), Map.Trammel );
point11.NextPoint = point;
spawner1.Name = "MinocInvasionTrammel";
spawner1.Respawn();
Spawner spawner9 = new Spawner( 10, 20, 20, 20, 20, "JukaWarrior" );
spawner9.MoveToWorld( new Point3D( 2575, 647, 0 ), Map.Trammel );
spawner9.Name = "MinocInvasionTrammel";