本文整理汇总了C#中Server.Mobiles.Spawner.Respawn方法的典型用法代码示例。如果您正苦于以下问题:C# Spawner.Respawn方法的具体用法?C# Spawner.Respawn怎么用?C# Spawner.Respawn使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Mobiles.Spawner
的用法示例。
在下文中一共展示了Spawner.Respawn方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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;
}
}
}
示例2: MakeSpawner
private static void MakeSpawner( string[] types, int x, int y, Map map )
{
if ( types.Length == 0 )
return;
int z = GetSpawnerZ( x, y, map );
ClearSpawners( x, y, z, map );
for ( int i = 0; i < types.Length; ++i )
{
bool isGuildmaster = ( types[i].EndsWith( "Guildmaster" ) );
Spawner sp = new Spawner( types[i] );
if ( isGuildmaster )
sp.Count = 1;
else
sp.Count = NPCCount;
sp.MinDelay = MinTime;
sp.MaxDelay = MaxTime;
sp.Team = Team;
sp.HomeRange = HomeRange;
sp.MoveToWorld( new Point3D( x, y, z ), map );
if ( TotalRespawn )
{
sp.Respawn();
sp.BringToHome();
}
++m_Count;
}
}
示例3: OnResponse
//.........这里部分代码省略.........
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();
Spawner spawner3 = new Spawner(4, 5, 15, 0, 8, "OrcCaptain");
spawner3.MoveToWorld(new Point3D(3796, 2262, 40), Map.Felucca);
spawner3.Name = "MaginciaInvasionFelucca";
spawner3.Respawn();
Spawner spawner4 = new Spawner(4, 5, 15, 0, 8, "OrcSoldier");
spawner4.MoveToWorld(new Point3D(3797, 2262, 40), Map.Felucca);
spawner4.Name = "MaginciaInvasionFelucca";
spawner4.Respawn();
Spawner spawner5 = new Spawner(4, 5, 15, 0, 8, "OrcishMage");
spawner5.MoveToWorld(new Point3D(3798, 2262, 40), Map.Felucca);
spawner5.Name = "MaginciaInvasionFelucca";
spawner5.Respawn();
Spawner spawner6 = new Spawner(1, 2, 2, 0, 2, "OrcKing");
spawner6.MoveToWorld(new Point3D(3799, 2262, 40), Map.Felucca);
spawner6.Name = "MaginciaInvasionFelucca";
spawner6.Respawn();
Spawner spawner7 = new Spawner(10, 5, 15, 0, 8, "Orc");
spawner7.MoveToWorld(new Point3D(3798, 2262, 40), Map.Felucca);
spawner7.Name = "MaginciaInvasionFelucca";
spawner7.Respawn();
Spawner spawner8 = new Spawner(1, 5, 15, 0, 1, "OrcCamp");
示例4: OnResponse
//.........这里部分代码省略.........
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 );
point12.NextPoint = point13;
point13.MoveToWorld( new Point3D( 2251, 1231, 0 ), Map.Trammel );
point13.NextPoint = point14;
point14.MoveToWorld( new Point3D( 2251, 1214, 0 ), Map.Trammel );
point14.NextPoint = point15;
point15.MoveToWorld( new Point3D( 2234, 1211, 0 ), Map.Trammel );
point15.NextPoint = point16;
point16.MoveToWorld( new Point3D( 2210, 1200, 0 ), Map.Trammel );
point16.NextPoint = point17;
point17.MoveToWorld( new Point3D( 2210, 1177, 0 ), Map.Trammel );
point17.NextPoint = point18;
point18.MoveToWorld( new Point3D( 2240, 1177, 0 ), Map.Trammel );
point18.NextPoint = point19;
point19.MoveToWorld( new Point3D( 2276, 1211, 0 ), Map.Trammel );
point19.NextPoint = point11;
spawner2.Name = "CoveInvasionTrammel";
spawner2.Respawn();
Spawner spawner3 = new Spawner( 6, 5, 15, 0, 0, "Orc" );
spawner3.MoveToWorld( new Point3D( 2210, 1274, 0 ), Map.Trammel );
spawner3.WayPoint = point20;
point20.MoveToWorld( new Point3D( 2284, 1268, 0 ), Map.Trammel );
point20.NextPoint = point21;
示例5: ImportSpawner
private static void ImportSpawner(XmlElement node)
{
int count = int.Parse(GetText(node["count"], "1"));
int homeRange = int.Parse(GetText(node["homerange"], "4"));
int walkingRange = int.Parse(GetText(node["walkingrange"], "-1"));
int team = int.Parse(GetText(node["team"], "0"));
bool group = bool.Parse(GetText(node["group"], "False"));
TimeSpan maxDelay = TimeSpan.Parse(GetText(node["maxdelay"], "10:00"));
TimeSpan minDelay = TimeSpan.Parse(GetText(node["mindelay"], "05:00"));
List<string> creaturesName = LoadCreaturesName(node["creaturesname"]);
string name = GetText(node["name"], "Spawner");
Point3D location = Point3D.Parse(GetText(node["location"], "Error"));
Map map = Map.Parse(GetText(node["map"], "Error"));
Spawner spawner = new Spawner(count, minDelay, maxDelay, team, homeRange, creaturesName);
if (walkingRange >= 0)
spawner.WalkingRange = walkingRange;
spawner.Name = name;
spawner.MoveToWorld(location, map);
if (spawner.Map == Map.Internal)
{
spawner.Delete();
throw new Exception("Spawner created on Internal map.");
}
spawner.Respawn();
}
示例6: 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;
}
}
}
示例7: OnResponse
//.........这里部分代码省略.........
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 );
point12.NextPoint = point13;
point13.MoveToWorld( new Point3D( 2687, 2164, 0 ), Map.Trammel );
point13.NextPoint = point14;
point14.MoveToWorld( new Point3D( 2722, 2164, 0 ), Map.Trammel );
point14.NextPoint = point15;
point15.MoveToWorld( new Point3D( 2718, 2115, 0 ), Map.Trammel );
point15.NextPoint = point16;
point16.MoveToWorld( new Point3D( 2685, 2115, 0 ), Map.Trammel );
point16.NextPoint = point17;
point17.MoveToWorld( new Point3D( 2639, 2099, 10 ), Map.Trammel );
point17.NextPoint = point18;
point18.MoveToWorld( new Point3D( 2673, 2191, 0 ), Map.Trammel );
point18.NextPoint = point19;
point19.MoveToWorld( new Point3D( 2673, 2215, 0 ), Map.Trammel );
point19.NextPoint = point10;
spawner2.Name = "BuccaneersDenInvasionTrammel";
spawner2.Respawn();
Spawner spawner3 = new Spawner( 6, 5, 15, 0, 20, "Orc" );
spawner3.MoveToWorld( new Point3D( 2622, 2315, 0 ), Map.Trammel );
spawner3.WayPoint = point20;
point20.MoveToWorld( new Point3D( 2717, 2237, 0 ), Map.Trammel );
point20.NextPoint = point21;
示例8: OnResponse
//.........这里部分代码省略.........
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 );
point12.NextPoint = point13;
point13.MoveToWorld( new Point3D( 1475, 1650, 10 ), Map.Felucca );
point13.NextPoint = point14;
point14.MoveToWorld( new Point3D( 1513, 1650, 20 ), Map.Felucca );
point14.NextPoint = point15;
point15.MoveToWorld( new Point3D( 1513, 1629, 10 ), Map.Felucca );
point15.NextPoint = point16;
point16.MoveToWorld( new Point3D( 1420, 1627, 20 ), Map.Felucca );
point16.NextPoint = point17;
point17.MoveToWorld( new Point3D( 1330, 1625, 50 ), Map.Felucca );
point17.NextPoint = point18;
point18.MoveToWorld( new Point3D( 1420, 1625, 20 ), Map.Felucca );
point18.NextPoint = point19;
point19.MoveToWorld( new Point3D( 1420, 1725, 20 ), Map.Felucca );
point19.NextPoint = point10;
spawner2.Name = "BritInvasionFelucca";
spawner2.Respawn();
Spawner spawner3 = new Spawner( 2, 5, 15, 30, 20, "Overseer" );
spawner3.MoveToWorld( new Point3D( 1349, 1533, 0 ), Map.Felucca );
spawner3.WayPoint = point20;
point20.MoveToWorld( new Point3D( 1425, 1532, 32 ), Map.Felucca );
point20.NextPoint = point21;
示例9: ImportSpawner
private static void ImportSpawner(XmlElement node, string mapa, string tipo)
{
int count = int.Parse(GetText(node["count"], "1"));
int homeRange = int.Parse(GetText(node["homerange"], "4"));
int team = int.Parse(GetText(node["team"], "0"));
bool group = bool.Parse(GetText(node["group"], "False"));
TimeSpan maxDelay = TimeSpan.Parse(GetText(node["maxdelay"], "10:00"));
TimeSpan minDelay = TimeSpan.Parse(GetText(node["mindelay"], "05:00"));
ArrayList creaturesName = LoadCreaturesName(node["creaturesname"]);
string name = GetText(node["name"], "Spawner");
Point3D location = Point3D.Parse(GetText(node["location"], "Error"));
Map map = Map.Parse(GetText(node["map"], "Error"));
if (map.Name == mapa)
{
if (tipo == "odbc")
{
ODBCSpawner spawner = new ODBCSpawner(count, minDelay, maxDelay, team, homeRange, creaturesName);
spawner.Name = name;
spawner.MoveToWorld(location, map);
if (spawner.Map == Map.Internal)
{
spawner.Delete();
throw new Exception("Spawner created on Internal map.");
}
spawner.Respawn();
}
else
{
// Genova: necessário converter creaturesName para list<string>.
List<string> listaCreaturesName = new List<string>();
listaCreaturesName.CopyTo(creaturesName.ToArray(typeof(string)) as string[]);
Spawner spawner = new Spawner(count, minDelay, maxDelay, team, homeRange, listaCreaturesName);
spawner.Name = name;
spawner.MoveToWorld(location, map);
if (spawner.Map == Map.Internal)
{
spawner.Delete();
throw new Exception("Spawner created on Internal map.");
}
spawner.Respawn();
}
}
}
示例10: OnResponse
//.........这里部分代码省略.........
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";
spawner9.Respawn();
Spawner spawner2 = new Spawner( 4, 5, 15, 20, 15, "JukaWarrior" );
spawner2.MoveToWorld( new Point3D( 2694, 466, 18 ), Map.Trammel );
spawner2.WayPoint = point12;
point12.MoveToWorld( new Point3D( 2662, 469, 15 ), Map.Trammel );
point12.NextPoint = point13;
point13.MoveToWorld( new Point3D( 2625, 469, 15 ), Map.Trammel );
point13.NextPoint = point14;
point14.MoveToWorld( new Point3D( 2613, 507, 15 ), Map.Trammel );
point14.NextPoint = point15;
point15.MoveToWorld( new Point3D( 2558, 513, 15 ), Map.Trammel );
point15.NextPoint = point16;
point16.MoveToWorld( new Point3D( 2558, 496, 0 ), Map.Trammel );
point16.NextPoint = point17;
point17.MoveToWorld( new Point3D( 2576, 479, 0 ), Map.Trammel );
point17.NextPoint = point18;
point18.MoveToWorld( new Point3D( 2558, 496, 0 ), Map.Trammel );
point18.NextPoint = point19;
point19.MoveToWorld( new Point3D( 2558, 528, 15 ), Map.Trammel );
point19.NextPoint = point20;
point20.MoveToWorld( new Point3D( 2569, 537, 15 ), Map.Trammel );
point20.NextPoint = point21;
point21.MoveToWorld( new Point3D( 2599, 531, 15 ), Map.Trammel );
point21.NextPoint = point22;
point22.MoveToWorld( new Point3D( 2599, 504, 0 ), Map.Trammel );