Esempio n. 1
0
 public SpawnTimer(FishingSpotSpawner FishingSpotSpawner)
     : base(TimeSpan.Zero, TimeSpan.FromSeconds(10))
 {
     m_FishingSpotSpawner = FishingSpotSpawner;
     Priority             = TimerPriority.FiveSeconds;
 }
Esempio n. 2
0
        public static void SpawnAllFishingSpotSpawners(CommandEventArgs arg)
        {
            PlayerMobile pm_Mobile = arg.Mobile as PlayerMobile;

            if (pm_Mobile == null)
            {
                return;
            }

            int fishingSpotSpawners = m_FishingSpotSpawners.Count;

            for (int a = 0; a < fishingSpotSpawners; a++)
            {
                if (m_FishingSpotSpawners[0] != null)
                {
                    m_FishingSpotSpawners[0].Delete();
                }
            }

            #region Pre-Determined Fishing Spot Spawner Locations

            int minSpawnTime = 120;
            int maxSpawnTime = 240;

            FishingSpotSpawner fishingSpotSpawner;

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 2;
            fishingSpotSpawner.SpawnRange    = 400;
            fishingSpotSpawner.MoveToWorld(new Point3D(1875, 2027, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 2;
            fishingSpotSpawner.SpawnRange    = 200;
            fishingSpotSpawner.MoveToWorld(new Point3D(2120, 2418, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 2;
            fishingSpotSpawner.SpawnRange    = 200;
            fishingSpotSpawner.MoveToWorld(new Point3D(2199, 3245, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 2;
            fishingSpotSpawner.SpawnRange    = 200;
            fishingSpotSpawner.MoveToWorld(new Point3D(2152, 3698, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 2;
            fishingSpotSpawner.SpawnRange    = 200;
            fishingSpotSpawner.MoveToWorld(new Point3D(1364, 3364, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 2;
            fishingSpotSpawner.SpawnRange    = 200;
            fishingSpotSpawner.MoveToWorld(new Point3D(855, 2681, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 2;
            fishingSpotSpawner.SpawnRange    = 200;
            fishingSpotSpawner.MoveToWorld(new Point3D(562, 1812, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 1;
            fishingSpotSpawner.SpawnRange    = 150;
            fishingSpotSpawner.MoveToWorld(new Point3D(95, 1430, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 2;
            fishingSpotSpawner.SpawnRange    = 200;
            fishingSpotSpawner.MoveToWorld(new Point3D(750, 470, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 3;
            fishingSpotSpawner.SpawnRange    = 400;
            fishingSpotSpawner.MoveToWorld(new Point3D(1395, 479, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 1;
            fishingSpotSpawner.SpawnRange    = 150;
            fishingSpotSpawner.MoveToWorld(new Point3D(2225, 165, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 2;
            fishingSpotSpawner.SpawnRange    = 400;
            fishingSpotSpawner.MoveToWorld(new Point3D(2953, 235, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 2;
            fishingSpotSpawner.SpawnRange    = 200;
            fishingSpotSpawner.MoveToWorld(new Point3D(3415, 576, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 2;
            fishingSpotSpawner.SpawnRange    = 200;
            fishingSpotSpawner.MoveToWorld(new Point3D(2639, 1289, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 3;
            fishingSpotSpawner.SpawnRange    = 600;
            fishingSpotSpawner.MoveToWorld(new Point3D(2765, 1532, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 3;
            fishingSpotSpawner.SpawnRange    = 500;
            fishingSpotSpawner.MoveToWorld(new Point3D(2953, 2533, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 1;
            fishingSpotSpawner.SpawnRange    = 400;
            fishingSpotSpawner.MoveToWorld(new Point3D(4061, 655, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 1;
            fishingSpotSpawner.SpawnRange    = 400;
            fishingSpotSpawner.MoveToWorld(new Point3D(4146, 275, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 1;
            fishingSpotSpawner.SpawnRange    = 300;
            fishingSpotSpawner.MoveToWorld(new Point3D(2197, 1360, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 3;
            fishingSpotSpawner.SpawnRange    = 600;
            fishingSpotSpawner.MoveToWorld(new Point3D(4727, 380, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 4;
            fishingSpotSpawner.SpawnRange    = 800;
            fishingSpotSpawner.MoveToWorld(new Point3D(4563, 2351, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 3;
            fishingSpotSpawner.SpawnRange    = 600;
            fishingSpotSpawner.MoveToWorld(new Point3D(4302, 3500, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 4;
            fishingSpotSpawner.SpawnRange    = 800;
            fishingSpotSpawner.MoveToWorld(new Point3D(502, 3100, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 3;
            fishingSpotSpawner.SpawnRange    = 500;
            fishingSpotSpawner.MoveToWorld(new Point3D(52, 1600, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 3;
            fishingSpotSpawner.SpawnRange    = 500;
            fishingSpotSpawner.MoveToWorld(new Point3D(2352, 4000, 0), pm_Mobile.Map);

            fishingSpotSpawner = new FishingSpotSpawner();
            fishingSpotSpawner.MinSpawnTime  = minSpawnTime;
            fishingSpotSpawner.MaxSpawnTime  = maxSpawnTime;
            fishingSpotSpawner.InstanceCount = 3;
            fishingSpotSpawner.SpawnRange    = 600;
            fishingSpotSpawner.MoveToWorld(new Point3D(3902, 1600, 0), pm_Mobile.Map);

            #endregion

            pm_Mobile.SendMessage("Spawning All Fishing Spot Spawners");
        }