当前位置: 首页>>代码示例>>C#>>正文


C# Spawner.MoveToWorld方法代码示例

本文整理汇总了C#中Server.Mobiles.Spawner.MoveToWorld方法的典型用法代码示例。如果您正苦于以下问题:C# Spawner.MoveToWorld方法的具体用法?C# Spawner.MoveToWorld怎么用?C# Spawner.MoveToWorld使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Server.Mobiles.Spawner的用法示例。


在下文中一共展示了Spawner.MoveToWorld方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: MakeUniqueSpawner

		//looks at the location provided for a spawner, and returns it if it exists, otherwise makes a new one
		public static Spawner MakeUniqueSpawner( Point3D location, Map map )
		{
			IPooledEnumerable ie = map.GetItemsInRange( location, 0 );
				
			Spawner spawner = null;
			
			foreach( Item item in ie )
			{
				if( item is Spawner )
				{
					spawner = (Spawner)item;
					break;
				}
			}
			
			if( spawner == null )
			{
				spawner = new Spawner();
				spawner.MoveToWorld( location, map );
			}
			
			return spawner;
		}
开发者ID:greeduomacro,项目名称:annox,代码行数:24,代码来源:SpawnHelper.cs

示例2: ReplaceBankers_OnCommand

        public static void ReplaceBankers_OnCommand( CommandEventArgs e )
        {
            List<Mobile> list = new List<Mobile>();

            foreach ( Mobile m in World.Mobiles.Values )
                if ( (m is Banker) && !(m is BaseCreature) )
                    list.Add( m );

            foreach ( Mobile m in list )
            {
                Map map = m.Map;

                if ( map != null )
                {
                    bool hasBankerSpawner = false;

                    foreach ( Item item in m.GetItemsInRange( 0 ) )
                    {
                        if ( item is Spawner )
                        {
                            Spawner spawner = (Spawner)item;

                            for ( int i = 0; !hasBankerSpawner && i < spawner.CreaturesName.Count; ++i )
                                hasBankerSpawner = Insensitive.Equals( (string)spawner.CreaturesName[i], "banker" );

                            if ( hasBankerSpawner )
                                break;
                        }
                    }

                    if ( !hasBankerSpawner )
                    {
                        Spawner spawner = new Spawner( 1, 1, 5, 0, 4, "banker" );

                        spawner.MoveToWorld( m.Location, map );
                    }
                }
            }
        }
开发者ID:notsentient,项目名称:RunZHA,代码行数:39,代码来源:Handlers.cs

示例3: 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; 
				}
			}
		}
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:65,代码来源:StartstopMontorIlshenar.cs

示例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();
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:67,代码来源:StartstopMaginciaFelucca.cs

示例5: MakeSpawner

			private static void MakeSpawner( string types, int x, int y, int z, Map map, bool start )
			{
				ClearSpawners( x, y, z, map );

				Spawner sp = new Spawner( types );

				sp.Count = 1;

				sp.Running = true;
				sp.HomeRange = 1;
				sp.MinDelay = MinTime;
				sp.MaxDelay = MaxTime;

				sp.MoveToWorld( new Point3D( x, y, z ), map );

			}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:16,代码来源:GenerateOFQ.cs

示例6: 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;
            }
        }
开发者ID:FreeReign,项目名称:Rebirth-Repack,代码行数:36,代码来源:uoamVendors.cs

示例7: 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 );
开发者ID:Ziden,项目名称:ServUO-EC-Test-Fork,代码行数:67,代码来源:StartstopCoveTrammel.cs

示例8: 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();
        }
开发者ID:jasegiffin,项目名称:JustUO,代码行数:31,代码来源:SpawnerExporter.cs

示例9: 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 );
开发者ID:Ziden,项目名称:ServUO-EC-Test-Fork,代码行数:67,代码来源:StartstopBuccaneersDenTrammel.cs

示例10: 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; 
				}
			}
		}
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:65,代码来源:StartstopSkaraBraeTrammel.cs

示例11: 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 );
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:67,代码来源:StartStopBritFelucca.cs

示例12: 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();
                }
            }
        }
开发者ID:brodock,项目名称:genova-project,代码行数:48,代码来源:SpawnerExporter.cs

示例13: 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";
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:67,代码来源:StartstopMinocTrammel.cs

示例14: GenerateSpawners

		public bool GenerateSpawners()
		{
			Spawner spawner;
			Static item;
			Teleporter tele;
			bool erased = RemoveSpawners();

			#region Angels Snack
			// Loot/Quest, found on Qunia
			#endregion

			#region Autolife
			spawner = new Spawner();
			spawner.MoveToWorld( new Point3D( 1959, 513, -20 ), Map.Ilshenar );
			spawner.SpawnNames.Add( "BlueTrappedPixie" );
			BlueStuff.Add( spawner );
			#endregion

			#region Bad Breath
			#endregion

			#region Blow Up
			spawner = new Spawner();
			spawner.MoveToWorld( new Point3D( 1650, 351, -3 ), Map.Ilshenar );
			spawner.SpawnNames.Add( "BlueBomb" );
			spawner.Count = 5;
			spawner.HomeRange = 8;
			BlueStuff.Add( spawner );
			#endregion

			#region Demi
			spawner = new Spawner();
			spawner.MoveToWorld( new Point3D( 327, 532, -34 ), Map.Ilshenar );
			spawner.SpawnNames.Add( "BlueImp" );
			spawner.Count = 2;
			spawner.HomeRange = 8;
			spawner = new Spawner();
			spawner.MoveToWorld( new Point3D( 327, 532, -33 ), Map.Ilshenar );
			spawner.SpawnNames.Add( "Imp" );
			spawner.Count = 3;
			spawner.HomeRange = 8;
			BlueStuff.Add( spawner );
			#endregion

			#region Dragon Force
			spawner = new Spawner(); // [go 1178 1512, -68
			spawner.MoveToWorld( new Point3D( 1178, 1512, -68 ), Map.Ilshenar );
			spawner.SpawnNames.Add( "BLDragon" );
			spawner.HomeRange = 6;
			BlueStuff.Add( spawner );
			#endregion

			#region Drain Touch
			// Self Spawning
			#endregion

			#region Fifty Needles
			spawner = new Spawner();
			spawner.MoveToWorld( new Point3D( 1530, 671, -14 ), Map.Ilshenar );
			spawner.Count = 3;
			spawner.SpawnNames.Add( "BlueCactuar" );
			BlueStuff.Add( spawner );
			#endregion

			#region Flame Thrower
			spawner = new Spawner();
			spawner.MoveToWorld( new Point3D( 1931, 36, -28 ), Map.Ilshenar );
			spawner.SpawnNames.Add( "BlueGolem" );
			BlueStuff.Add( spawner );
			#endregion

			#region Frog Drop
			QuinaTele quinatele = new QuinaTele();
			quinatele.MoveToWorld( new Point3D( 919, 993, 12 ), Map.Ilshenar );
			BlueStuff.Add( quinatele );
			spawner = new Spawner();
			spawner.MoveToWorld( new Point3D( 1757, 888, -24 ), Map.Ilshenar );
			spawner.SpawnNames.Add( "BlueQuina" );
			BlueStuff.Add( spawner );
			// Frogs
			item = new Static( 8553 );
			item.MoveToWorld( new Point3D( 1778, 872, -24 ), Map.Ilshenar );
			BlueStuff.Add( item );
			item = new Static( 8552 );
			item.MoveToWorld( new Point3D( 1777, 872, -24 ), Map.Ilshenar );
			BlueStuff.Add( item );
			tele = new Teleporter();
			tele.MoveToWorld( new Point3D( 1778, 873, -25 ), Map.Ilshenar );
			tele.MapDest = Map.Ilshenar;
			tele.PointDest = new Point3D( 1647, 721, -13 );
			BlueStuff.Add( tele );
			FrogSwampAddon frogdropaddon = new FrogSwampAddon();
			frogdropaddon.MoveToWorld( new Point3D( 1645, 699, -24 ), Map.Ilshenar );
			BlueStuff.Add( frogdropaddon );
			tele = new Teleporter();
			tele.MoveToWorld( new Point3D( 1647, 721, -13 ), Map.Ilshenar );
			tele.MapDest = Map.Ilshenar;
			tele.PointDest = new Point3D( 1778, 873, -25 );
			BlueStuff.Add( tele );
			spawner = new Spawner();
//.........这里部分代码省略.........
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:101,代码来源:BlueSpawn.cs

示例15: FinishPlacement

		public void FinishPlacement( Mobile from, Point3D p )
		{
			if ( Type == CivicStrutureType.FieldStoneCityHall )
			{
				// City Bounds
				int offset = PlayerGovernmentSystem.L1CLOffset;

				Point2D center = new Point2D( p.X - m_Offset.X, p.Y - m_Offset.Y );
				Point2D start = new Point2D( center.X - offset, center.Y - offset );
				Point2D end = new Point2D( center.X + offset, center.Y + offset );
				Rectangle2D box = new Rectangle2D( start, end );
				ArrayList cityCoords = new ArrayList();
				cityCoords.Add( box );
				
				//Remove List
				ArrayList toDelete = new ArrayList();

				// Add Mayor As Citizen
				ArrayList citizens = new ArrayList();
				citizens.Add( from );

				// Add Sponsor List
				ArrayList sponsor = new ArrayList();

				// Add Ban List
				ArrayList ban = new ArrayList();

				// Add Lockdown List
				ArrayList ld = new ArrayList();

				// Add Waring List
				ArrayList war = new ArrayList();

				// Add Wars Declare List
				ArrayList dwar = new ArrayList();

				// Add Wars Invite List
				ArrayList iwar = new ArrayList();
	
				// Add Allegiances List
				ArrayList allies = new ArrayList();

				// Add Allegiances Declared List
				ArrayList dallies = new ArrayList();

				// Add Allegiances Invited List
				ArrayList iallies = new ArrayList();

				// Add Gardens And Parks
				ArrayList gardens = new ArrayList();
				ArrayList parks = new ArrayList();
				ArrayList vendor = new ArrayList(); 
				ArrayList addon = new ArrayList();

				// Add Management Stone
				CityManagementStone mStone = new CityManagementStone();

				// Add City Region
				Rectangle3D[] area = PlayerGovernmentSystem.FormatRegion( box );
				PlayerCityRegion reg = new PlayerCityRegion( mStone, from.Map, area );
				reg.Register();

				// Setup Stone
				mStone.RegionCoords = area;
				mStone.Coords = cityCoords;
				mStone.CityName = from.Name + "'s City";
				mStone.Level = 1;
				mStone.Center = center;
				mStone.Mayor = from;
				mStone.PCRegion = reg;
				mStone.Citizens = citizens;
				mStone.Banned = ban;
				mStone.isLockedDown = ld;
				mStone.Sponsored = sponsor;
				mStone.Vendors = vendor;
				mStone.AddOns = addon;

				mStone.Waring = war;
				mStone.WarsDeclared = dwar;
				mStone.WarsInvited = iwar;

				mStone.Allegiances = allies;
				mStone.AllegiancesDeclared = dallies;
				mStone.AllegiancesInvited = iallies;

				mStone.Gardens = gardens;
				mStone.Parks = parks;
				
				
				// Setup Mayor
				PlayerMobile pm = (PlayerMobile)from;
				pm.City = mStone;
				pm.CityTitle = "Mayor";
				pm.ShowCityTitle = true;

				FieldstoneCityHallAddon building = new FieldstoneCityHallAddon();
				building.MoveToWorld( new Point3D( p.X - m_Offset.X, p.Y - m_Offset.Y, p.Z - m_Offset.Z ), from.Map );

				BaseDoor d1 = new StrongWoodDoor( DoorFacing.WestCW );
				BaseDoor d2 = new StrongWoodDoor( DoorFacing.EastCCW );
//.........这里部分代码省略.........
开发者ID:greeduomacro,项目名称:unknown-shard-1,代码行数:101,代码来源:CityDeed.cs


注:本文中的Server.Mobiles.Spawner.MoveToWorld方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。