Ejemplo n.º 1
0
        /*public override bool OnBeforeDeath()
         * {
         *      if ( !NoKillAwards )
         *      {
         *              GivePowerScrolls();
         *
         *              Map map = this.Map;
         *
         *              if ( map != null )
         *              {
         *                      for ( int x = -6; x <= 6; ++x )
         *                      {
         *                              for ( int y = -6; y <= 6; ++y )
         *                              {
         *                                      double dist = Math.Sqrt(x*x+y*y);
         *
         *                                      if ( dist <= 6 )
         *                                              new GoodiesTimer( map, X + x, Y + y ).Start();
         *                              }
         *                      }
         *              }
         *      }
         *
         *      return base.OnBeforeDeath();
         * }*/

        public override void OnDeath(Container c)
        {
            if (this is LordOrcalis)
            {
                CoveInvasionStone covefel = new CoveInvasionStone();
                covefel.StopCoveFelucca();

                /*if (covefel.Region.IsPartOf("Covetous"))
                 *  {
                 *      covefel.RToxicEffect = false;
                 *  }*/
                World.Broadcast(33, true, "Cove's invasion was successfully beaten back. No more invaders are left in the city.");
            }
            if (this is TheJukaGeneral)
            {
                MinocInvasionStone minocfel = new MinocInvasionStone();
                minocfel.StopMinocFelucca();
                World.Broadcast(33, true, "Minoc's invasion was successfully beaten back. No more invaders are left in the city.");
            }
            if (this is LordBlackThorn)
            {
                BritInvasionStone britfel = new BritInvasionStone();
                britfel.StopBritFelucca();
                World.Broadcast(33, true, "Britain's invasion was successfully beaten back. No more invaders are left in the city.");
            }
            if (this is OrcKing)
            {
                MaginciaInvasionStone maginciafel = new MaginciaInvasionStone();
                maginciafel.StopMaginciaFelucca();
                World.Broadcast(33, true, "Magnecia's invasion was successfully beaten back. No more invaders are left in the city.");
            }
            if (Map == Map.Felucca)
            {
                c.DropItem(new ChampionSkull(SkullType));
            }

            base.OnDeath(c);
        }
        public override void OnResponse(NetState state, RelayInfo info)
        {
            Mobile from = state.Mobile;

            switch (info.ButtonID)
            {
            case 0:
            {
                from.CloseGump(typeof(StartStopCovetram));
                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();
                WayPoint point4 = new WayPoint();
                WayPoint point5 = new WayPoint();
                WayPoint point6 = new WayPoint();
                WayPoint point7 = new WayPoint();
                WayPoint point8 = new WayPoint();
                WayPoint point9 = new WayPoint();

                WayPoint point10 = new WayPoint();
                WayPoint point11 = new WayPoint();
                WayPoint point12 = new WayPoint();
                WayPoint point13 = new WayPoint();
                WayPoint point14 = new WayPoint();
                WayPoint point15 = new WayPoint();
                WayPoint point16 = new WayPoint();
                WayPoint point17 = new WayPoint();
                WayPoint point18 = new WayPoint();
                WayPoint point19 = new WayPoint();

                WayPoint point20 = new WayPoint();
                WayPoint point21 = new WayPoint();
                WayPoint point22 = new WayPoint();
                WayPoint point23 = new WayPoint();
                WayPoint point24 = new WayPoint();
                WayPoint point25 = new WayPoint();
                WayPoint point26 = new WayPoint();
                WayPoint point27 = new WayPoint();
                WayPoint point28 = new WayPoint();
                WayPoint point29 = new WayPoint();

                WayPoint point30 = new WayPoint();
                WayPoint point31 = new WayPoint();
                WayPoint point32 = new WayPoint();
                WayPoint point33 = new WayPoint();
                WayPoint point34 = new WayPoint();
                WayPoint point35 = new WayPoint();
                WayPoint point36 = new WayPoint();
                WayPoint point37 = new WayPoint();

                point.Name  = "CoveInvasionTrammel";
                point1.Name = "CoveInvasionTrammel";
                point2.Name = "CoveInvasionTrammel";
                point3.Name = "CoveInvasionTrammel";
                point4.Name = "CoveInvasionTrammel";
                point5.Name = "CoveInvasionTrammel";
                point6.Name = "CoveInvasionTrammel";
                point7.Name = "CoveInvasionTrammel";
                point8.Name = "CoveInvasionTrammel";
                point9.Name = "CoveInvasionTrammel";

                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);
                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;
                point21.MoveToWorld(new Point3D(2294, 1207, 0), Map.Trammel);
                point21.NextPoint = point22;
                point22.MoveToWorld(new Point3D(2286, 1186, 0), Map.Trammel);
                point22.NextPoint = point23;
                point23.MoveToWorld(new Point3D(2286, 1218, 0), Map.Trammel);
                point23.NextPoint = point22;
                spawner3.Name     = "CoveInvasionTrammel";
                spawner3.Respawn();

                Spawner spawner4 = new Spawner(4, 5, 15, 0, 20, "Orc");
                spawner4.MoveToWorld(new Point3D(2364, 1205, 5), Map.Trammel);
                spawner4.WayPoint = point24;
                point24.MoveToWorld(new Point3D(2285, 1210, 0), Map.Trammel);
                point24.NextPoint = point25;
                point25.MoveToWorld(new Point3D(2275, 1209, 0), Map.Trammel);
                point25.NextPoint = point26;
                point26.MoveToWorld(new Point3D(2275, 1203, 0), Map.Trammel);
                point26.NextPoint = point27;
                point27.MoveToWorld(new Point3D(2272, 1200, 2), Map.Trammel);
                point27.NextPoint = point28;
                point28.MoveToWorld(new Point3D(2272, 1196, 20), Map.Trammel);
                point28.NextPoint = point29;
                point29.MoveToWorld(new Point3D(2282, 1200, 20), Map.Trammel);
                point29.NextPoint = point30;
                point30.MoveToWorld(new Point3D(2282, 1187, 20), Map.Trammel);
                point30.NextPoint = point31;
                point31.MoveToWorld(new Point3D(2282, 1222, 20), Map.Trammel);
                point31.NextPoint = point32;
                point32.MoveToWorld(new Point3D(2290, 1222, 20), Map.Trammel);
                point32.NextPoint = point33;
                point33.MoveToWorld(new Point3D(2287, 1228, 20), Map.Trammel);
                point33.NextPoint = point34;
                point34.MoveToWorld(new Point3D(2280, 1224, 20), Map.Trammel);
                point34.NextPoint = point35;
                point35.MoveToWorld(new Point3D(2280, 1227, 7), Map.Trammel);
                point35.NextPoint = point36;
                point36.MoveToWorld(new Point3D(2283, 1233, 0), Map.Trammel);
                point36.NextPoint = point37;
                point37.MoveToWorld(new Point3D(2273, 1233, 0), Map.Trammel);
                point37.NextPoint = point26;
                spawner4.Name     = "CoveInvasionTrammel";
                spawner4.Respawn();

                Spawner spawner5 = new Spawner(4, 5, 15, 0, 8, "OrcishLord");
                spawner5.MoveToWorld(new Point3D(2219, 1117, 17), Map.Trammel);
                spawner5.Name = "CoveInvasionTrammel";
                spawner5.Respawn();

                Spawner spawner6 = new Spawner(3, 5, 15, 0, 8, "OrcishMage");
                spawner6.MoveToWorld(new Point3D(2322, 1127, 0), Map.Trammel);
                spawner6.Name = "CoveInvasionTrammel";
                spawner6.Respawn();

                Spawner spawner7 = new Spawner(3, 5, 15, 0, 8, "OrcishLord");
                spawner7.MoveToWorld(new Point3D(2348, 1214, 0), Map.Trammel);
                spawner7.Name = "CoveInvasionTrammel";
                spawner7.Respawn();

                Spawner spawner8 = new Spawner(3, 5, 15, 0, 8, "OrcishMage");
                spawner8.MoveToWorld(new Point3D(2210, 1274, 0), Map.Trammel);
                spawner8.Name = "CoveInvasionTrammel";
                spawner8.Respawn();

                Spawner spawner9 = new Spawner(3, 5, 15, 0, 8, "OrcishLord");
                spawner9.MoveToWorld(new Point3D(2364, 1205, 5), Map.Trammel);
                spawner9.Name = "CoveInvasionTrammel";
                spawner9.Respawn();

                Spawner spawner10 = new Spawner(3, 5, 15, 0, 20, "OrcScout");
                spawner10.MoveToWorld(new Point3D(2348, 1214, 0), Map.Trammel);
                spawner10.Name = "CoveInvasionTrammel";
                spawner10.Respawn();

                Spawner spawner11 = new Spawner(1, 5, 15, 0, 1, "OrcCamp");
                spawner11.MoveToWorld(new Point3D(2348, 1214, 0), Map.Trammel);
                spawner11.Name = "CoveInvasionTrammel";
                spawner11.Respawn();

                Spawner spawner12 = new Spawner(2, 5, 15, 0, 8, "OrcishLord");
                spawner12.MoveToWorld(new Point3D(2225, 1168, 0), Map.Trammel);
                spawner12.Name = "CoveInvasionTrammel";
                spawner12.Respawn();

                Spawner spawner13 = new Spawner(2, 5, 15, 0, 8, "OrcishMage");
                spawner13.MoveToWorld(new Point3D(2216, 1190, 0), Map.Trammel);
                spawner13.Name = "CoveInvasionTrammel";
                spawner13.Respawn();

                Spawner spawner14 = new Spawner(2, 5, 15, 0, 8, "OrcishLord");
                spawner14.MoveToWorld(new Point3D(2234, 1210, 0), Map.Trammel);
                spawner14.Name = "CoveInvasionTrammel";
                spawner14.Respawn();

                Spawner spawner15 = new Spawner(2, 5, 15, 0, 8, "OrcishMage");
                spawner15.MoveToWorld(new Point3D(2277, 1200, 20), Map.Trammel);
                spawner15.Name = "CoveInvasionTrammel";
                spawner15.Respawn();

                Spawner spawner16 = new Spawner(1, 5, 15, 0, 1, "OrcCamp");
                spawner16.MoveToWorld(new Point3D(2295, 1203, 0), Map.Trammel);
                spawner16.Name = "CoveInvasionTrammel";
                spawner16.Respawn();

                Spawner spawner17 = new Spawner(10, 5, 15, 0, 25, "Orc");
                spawner17.MoveToWorld(new Point3D(2295, 1203, 0), Map.Trammel);
                spawner17.Name = "CoveInvasionTrammel";
                spawner17.Respawn();

                Spawner spawner18 = new Spawner(1, 5, 15, 0, 1, "OrcCamp");
                spawner18.MoveToWorld(new Point3D(2301, 1229, 0), Map.Trammel);
                spawner18.Name = "CoveInvasionTrammel";
                spawner18.Respawn();

                Spawner spawner19 = new Spawner(1, 5, 15, 0, 1, "OrcCamp");
                spawner19.MoveToWorld(new Point3D(2223, 1151, 0), Map.Trammel);
                spawner19.Name = "CoveInvasionTrammel";
                spawner19.Respawn();

                Spawner spawner20 = new Spawner(10, 5, 15, 0, 15, "Orc");
                spawner20.MoveToWorld(new Point3D(2224, 1181, 0), Map.Trammel);
                spawner20.Name = "CoveInvasionTrammel";
                spawner20.Respawn();

                Spawner spawner21 = new Spawner(10, 5, 15, 0, 15, "Orc");
                spawner21.MoveToWorld(new Point3D(2247, 1219, 0), Map.Trammel);
                spawner21.Name = "CoveInvasionTrammel";
                spawner21.Respawn();

                Spawner spawner22 = new Spawner(5, 5, 15, 0, 15, "Orc");
                spawner22.MoveToWorld(new Point3D(2224, 1181, 0), Map.Trammel);
                spawner22.Name = "CoveInvasionTrammel";
                spawner22.Respawn();

                Spawner spawner23 = new Spawner(3, 5, 15, 0, 10, "OrcScout");
                spawner23.MoveToWorld(new Point3D(2299, 1252, 0), Map.Trammel);
                spawner23.Name = "CoveInvasionTrammel";
                spawner23.Respawn();

                Spawner spawner24 = new Spawner(3, 5, 15, 0, 8, "OrcishMage");
                spawner24.MoveToWorld(new Point3D(2257, 1204, 0), Map.Trammel);
                spawner24.Name = "CoveInvasionTrammel";
                spawner24.Respawn();

                Spawner spawner25 = new Spawner(5, 5, 15, 0, 10, "Orc");
                spawner25.MoveToWorld(new Point3D(2222, 1129, 0), Map.Trammel);
                spawner25.Name = "CoveInvasionTrammel";
                spawner25.Respawn();

                Spawner spawner26 = new Spawner(5, 5, 15, 0, 10, "Orc");
                spawner26.MoveToWorld(new Point3D(2271, 1218, 0), Map.Trammel);
                spawner26.Name = "CoveInvasionTrammel";
                spawner26.Respawn();

                Spawner spawner27 = new Spawner(5, 5, 15, 0, 10, "Orc");
                spawner27.MoveToWorld(new Point3D(2233, 1240, 0), Map.Trammel);
                spawner27.Name = "CoveInvasionTrammel";
                spawner27.Respawn();

                Spawner spawner28 = new Spawner(2, 5, 15, 0, 5, "OrcBomber");
                spawner28.MoveToWorld(new Point3D(2289, 1222, 20), Map.Trammel);
                spawner28.Name = "CoveInvasionTrammel";
                spawner28.Respawn();

                Spawner spawner29 = new Spawner(2, 5, 15, 0, 5, "OrcBomber");
                spawner29.MoveToWorld(new Point3D(2281, 1192, 20), Map.Trammel);
                spawner29.Name = "CoveInvasionTrammel";
                spawner29.Respawn();

                Spawner spawner30 = new Spawner(1, 5, 15, 0, 1, "OrcCamp");
                spawner30.MoveToWorld(new Point3D(2303, 1131, 0), Map.Trammel);
                spawner30.Name = "CoveInvasionTrammel";
                spawner30.Respawn();

                Spawner spawner31 = new Spawner(5, 5, 15, 0, 10, "Orc");
                spawner31.MoveToWorld(new Point3D(2292, 1110, 0), Map.Trammel);
                spawner31.Name = "CoveInvasionTrammel";
                spawner31.Respawn();

                Spawner spawner32 = new Spawner(5, 5, 15, 0, 10, "Orc");
                spawner32.MoveToWorld(new Point3D(2347, 1151, 5), Map.Trammel);
                spawner32.Name = "CoveInvasionTrammel";
                spawner32.Respawn();

                Spawner spawner33 = new Spawner(5, 5, 15, 0, 10, "Orc");
                spawner32.MoveToWorld(new Point3D(2361, 1183, 10), Map.Trammel);
                spawner33.Name = "CoveInvasionTrammel";
                spawner33.Respawn();

                Spawner spawner34 = new Spawner(5, 5, 15, 0, 10, "Orc");
                spawner34.MoveToWorld(new Point3D(2351, 1245, 10), Map.Trammel);
                spawner34.Name = "CoveInvasionTrammel";
                spawner34.Respawn();

                Spawner spawner35 = new Spawner(1, 2, 2, 0, 2, "LordOrcalis");
                spawner35.MoveToWorld(new Point3D(2213, 1115, 40), Map.Trammel);
                spawner35.Name = "CoveInvasionTrammel";
                spawner35.Respawn();

                Spawner spawner36 = new Spawner(2, 5, 15, 0, 5, "OrcBomber");
                spawner36.MoveToWorld(new Point3D(2270, 1127, 40), Map.Trammel);
                spawner36.Name = "CoveInvasionTrammel";
                spawner36.Respawn();

                Spawner spawner37 = new Spawner(3, 5, 15, 0, 10, "OrcScout");
                spawner37.MoveToWorld(new Point3D(2270, 1127, 40), Map.Trammel);
                spawner37.Name = "CoveInvasionTrammel";
                spawner37.Respawn();

                Spawner spawner38 = new Spawner(10, 20, 20, 0, 20, "OrcBomber");
                spawner38.MoveToWorld(new Point3D(2253, 1193, -2), Map.Trammel);
                spawner38.Name = "CoveInvasionTrammel";
                spawner38.Respawn();

                Spawner spawner39 = new Spawner(10, 20, 20, 0, 20, "OrcBomber");
                spawner39.MoveToWorld(new Point3D(2225, 1141, 0), Map.Trammel);
                spawner39.Name = "CoveInvasionTrammel";
                spawner39.Respawn();


                World.Broadcast(33, true, "Cove Trammel is under invasion.");
                from.SendGump(new CityInvasion(from));
                break;
            }

            case 2:
            {
                CoveInvasionStone covetram = new CoveInvasionStone();
                covetram.StopCoveTrammel();
                World.Broadcast(33, true, "Cove Trammel's invasion was successfully beaten back. No more invaders are left in the city.");
                from.SendGump(new CityInvasion(from));
                break;
            }
            }
        }
        public override void OnResponse( NetState state, RelayInfo info )
        {
            Mobile from = state.Mobile;
            switch ( info.ButtonID )
            {
            case 0:
            {

                                    from.CloseGump( typeof( StartStopCovetram ) );
                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();
            WayPoint point4 = new WayPoint();
            WayPoint point5 = new WayPoint();
            WayPoint point6 = new WayPoint();
            WayPoint point7 = new WayPoint();
            WayPoint point8 = new WayPoint();
            WayPoint point9 = new WayPoint();

            WayPoint point10 = new WayPoint();
            WayPoint point11 = new WayPoint();
            WayPoint point12 = new WayPoint();
            WayPoint point13 = new WayPoint();
            WayPoint point14 = new WayPoint();
            WayPoint point15 = new WayPoint();
            WayPoint point16 = new WayPoint();
            WayPoint point17 = new WayPoint();
            WayPoint point18 = new WayPoint();
            WayPoint point19 = new WayPoint();

            WayPoint point20 = new WayPoint();
            WayPoint point21 = new WayPoint();
            WayPoint point22 = new WayPoint();
            WayPoint point23 = new WayPoint();
            WayPoint point24 = new WayPoint();
            WayPoint point25 = new WayPoint();
            WayPoint point26 = new WayPoint();
            WayPoint point27 = new WayPoint();
            WayPoint point28 = new WayPoint();
            WayPoint point29 = new WayPoint();

            WayPoint point30 = new WayPoint();
            WayPoint point31 = new WayPoint();
            WayPoint point32 = new WayPoint();
            WayPoint point33 = new WayPoint();
            WayPoint point34 = new WayPoint();
            WayPoint point35 = new WayPoint();
            WayPoint point36 = new WayPoint();
            WayPoint point37 = new WayPoint();

            point.Name = "CoveInvasionTrammel";
            point1.Name = "CoveInvasionTrammel";
            point2.Name = "CoveInvasionTrammel";
            point3.Name = "CoveInvasionTrammel";
            point4.Name = "CoveInvasionTrammel";
            point5.Name = "CoveInvasionTrammel";
            point6.Name = "CoveInvasionTrammel";
            point7.Name = "CoveInvasionTrammel";
            point8.Name = "CoveInvasionTrammel";
            point9.Name = "CoveInvasionTrammel";

            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 );
            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;
            point21.MoveToWorld( new Point3D( 2294, 1207, 0 ), Map.Trammel );
            point21.NextPoint = point22;
            point22.MoveToWorld( new Point3D( 2286, 1186, 0 ), Map.Trammel );
            point22.NextPoint = point23;
            point23.MoveToWorld( new Point3D( 2286, 1218, 0 ), Map.Trammel );
            point23.NextPoint = point22;
            spawner3.Name = "CoveInvasionTrammel";
            spawner3.Respawn();

            Spawner spawner4 = new Spawner( 4, 5, 15, 0, 20, "Orc" );
            spawner4.MoveToWorld( new Point3D( 2364, 1205, 5 ), Map.Trammel );
            spawner4.WayPoint = point24;
            point24.MoveToWorld( new Point3D( 2285, 1210, 0 ), Map.Trammel );
            point24.NextPoint = point25;
            point25.MoveToWorld( new Point3D( 2275, 1209, 0 ), Map.Trammel );
            point25.NextPoint = point26;
            point26.MoveToWorld( new Point3D( 2275, 1203, 0 ), Map.Trammel );
            point26.NextPoint = point27;
            point27.MoveToWorld( new Point3D( 2272, 1200, 2 ), Map.Trammel );
            point27.NextPoint = point28;
            point28.MoveToWorld( new Point3D( 2272, 1196, 20 ), Map.Trammel );
            point28.NextPoint = point29;
            point29.MoveToWorld( new Point3D( 2282, 1200, 20 ), Map.Trammel );
            point29.NextPoint = point30;
            point30.MoveToWorld( new Point3D( 2282, 1187, 20 ), Map.Trammel );
            point30.NextPoint = point31;
            point31.MoveToWorld( new Point3D( 2282, 1222, 20 ), Map.Trammel );
            point31.NextPoint = point32;
            point32.MoveToWorld( new Point3D( 2290, 1222, 20 ), Map.Trammel );
            point32.NextPoint = point33;
            point33.MoveToWorld( new Point3D( 2287, 1228, 20 ), Map.Trammel );
            point33.NextPoint = point34;
            point34.MoveToWorld( new Point3D( 2280, 1224, 20 ), Map.Trammel );
            point34.NextPoint = point35;
            point35.MoveToWorld( new Point3D( 2280, 1227, 7 ), Map.Trammel );
            point35.NextPoint = point36;
            point36.MoveToWorld( new Point3D( 2283, 1233, 0 ), Map.Trammel );
            point36.NextPoint = point37;
            point37.MoveToWorld( new Point3D( 2273, 1233, 0 ), Map.Trammel );
            point37.NextPoint = point26;
            spawner4.Name = "CoveInvasionTrammel";
            spawner4.Respawn();

            Spawner spawner5 = new Spawner( 4, 5, 15, 0, 8, "OrcishLord" );
            spawner5.MoveToWorld( new Point3D( 2219, 1117, 17 ), Map.Trammel );
                        spawner5.Name = "CoveInvasionTrammel";
            spawner5.Respawn();

                        Spawner spawner6 = new Spawner( 3, 5, 15, 0, 8, "OrcishMage" );
            spawner6.MoveToWorld( new Point3D( 2322, 1127, 0 ), Map.Trammel );
                        spawner6.Name = "CoveInvasionTrammel";
            spawner6.Respawn();

                        Spawner spawner7 = new Spawner( 3, 5, 15, 0, 8, "OrcishLord" );
            spawner7.MoveToWorld( new Point3D( 2348, 1214, 0 ), Map.Trammel );
                        spawner7.Name = "CoveInvasionTrammel";
            spawner7.Respawn();

                        Spawner spawner8 = new Spawner( 3, 5, 15, 0, 8, "OrcishMage" );
            spawner8.MoveToWorld( new Point3D( 2210, 1274, 0 ), Map.Trammel );
                        spawner8.Name = "CoveInvasionTrammel";
            spawner8.Respawn();

                        Spawner spawner9 = new Spawner( 3, 5, 15, 0, 8, "OrcishLord" );
            spawner9.MoveToWorld( new Point3D( 2364, 1205, 5 ), Map.Trammel );
                        spawner9.Name = "CoveInvasionTrammel";
            spawner9.Respawn();

                        Spawner spawner10 = new Spawner( 3, 5, 15, 0, 20, "OrcScout" );
            spawner10.MoveToWorld( new Point3D( 2348, 1214, 0 ), Map.Trammel );
                        spawner10.Name = "CoveInvasionTrammel";
            spawner10.Respawn();

                        Spawner spawner11 = new Spawner( 1, 5, 15, 0, 1, "OrcCamp" );
            spawner11.MoveToWorld( new Point3D( 2348, 1214, 0 ), Map.Trammel );
                        spawner11.Name = "CoveInvasionTrammel";
            spawner11.Respawn();

                        Spawner spawner12 = new Spawner( 2, 5, 15, 0, 8, "OrcishLord" );
            spawner12.MoveToWorld( new Point3D( 2225, 1168, 0 ), Map.Trammel );
                        spawner12.Name = "CoveInvasionTrammel";
            spawner12.Respawn();

                        Spawner spawner13 = new Spawner( 2, 5, 15, 0, 8, "OrcishMage" );
            spawner13.MoveToWorld( new Point3D( 2216, 1190, 0 ), Map.Trammel );
                        spawner13.Name = "CoveInvasionTrammel";
            spawner13.Respawn();

                        Spawner spawner14 = new Spawner( 2, 5, 15, 0, 8, "OrcishLord" );
            spawner14.MoveToWorld( new Point3D( 2234, 1210, 0 ), Map.Trammel );
                        spawner14.Name = "CoveInvasionTrammel";
            spawner14.Respawn();

                        Spawner spawner15 = new Spawner( 2, 5, 15, 0, 8, "OrcishMage" );
            spawner15.MoveToWorld( new Point3D( 2277, 1200, 20 ), Map.Trammel );
                        spawner15.Name = "CoveInvasionTrammel";
            spawner15.Respawn();

                        Spawner spawner16 = new Spawner( 1, 5, 15, 0, 1, "OrcCamp" );
            spawner16.MoveToWorld( new Point3D( 2295, 1203, 0 ), Map.Trammel );
                        spawner16.Name = "CoveInvasionTrammel";
            spawner16.Respawn();

                        Spawner spawner17 = new Spawner( 10, 5, 15, 0, 25, "Orc" );
            spawner17.MoveToWorld( new Point3D( 2295, 1203, 0 ), Map.Trammel );
                        spawner17.Name = "CoveInvasionTrammel";
            spawner17.Respawn();

                        Spawner spawner18 = new Spawner( 1, 5, 15, 0, 1, "OrcCamp" );
            spawner18.MoveToWorld( new Point3D( 2301, 1229, 0 ), Map.Trammel );
                        spawner18.Name = "CoveInvasionTrammel";
            spawner18.Respawn();

                        Spawner spawner19 = new Spawner( 1, 5, 15, 0, 1, "OrcCamp" );
            spawner19.MoveToWorld( new Point3D( 2223, 1151, 0 ), Map.Trammel );
                        spawner19.Name = "CoveInvasionTrammel";
            spawner19.Respawn();

                        Spawner spawner20 = new Spawner( 10, 5, 15, 0, 15, "Orc" );
            spawner20.MoveToWorld( new Point3D( 2224, 1181, 0 ), Map.Trammel );
                        spawner20.Name = "CoveInvasionTrammel";
            spawner20.Respawn();

                        Spawner spawner21 = new Spawner( 10, 5, 15, 0, 15, "Orc" );
            spawner21.MoveToWorld( new Point3D( 2247, 1219, 0 ), Map.Trammel );
                        spawner21.Name = "CoveInvasionTrammel";
            spawner21.Respawn();

                        Spawner spawner22 = new Spawner( 5, 5, 15, 0, 15, "Orc" );
            spawner22.MoveToWorld( new Point3D( 2224, 1181, 0 ), Map.Trammel );
                        spawner22.Name = "CoveInvasionTrammel";
            spawner22.Respawn();

                        Spawner spawner23 = new Spawner( 3, 5, 15, 0, 10, "OrcScout" );
            spawner23.MoveToWorld( new Point3D( 2299, 1252, 0 ), Map.Trammel );
                        spawner23.Name = "CoveInvasionTrammel";
            spawner23.Respawn();

                        Spawner spawner24 = new Spawner( 3, 5, 15, 0, 8, "OrcishMage" );
            spawner24.MoveToWorld( new Point3D( 2257, 1204, 0 ), Map.Trammel );
                        spawner24.Name = "CoveInvasionTrammel";
            spawner24.Respawn();

                        Spawner spawner25 = new Spawner( 5, 5, 15, 0, 10, "Orc" );
            spawner25.MoveToWorld( new Point3D( 2222, 1129, 0 ), Map.Trammel );
                        spawner25.Name = "CoveInvasionTrammel";
            spawner25.Respawn();

                        Spawner spawner26 = new Spawner( 5, 5, 15, 0, 10, "Orc" );
            spawner26.MoveToWorld( new Point3D( 2271, 1218, 0 ), Map.Trammel );
                        spawner26.Name = "CoveInvasionTrammel";
            spawner26.Respawn();

                        Spawner spawner27 = new Spawner( 5, 5, 15, 0, 10, "Orc" );
            spawner27.MoveToWorld( new Point3D( 2233, 1240, 0 ), Map.Trammel );
                        spawner27.Name = "CoveInvasionTrammel";
            spawner27.Respawn();

                        Spawner spawner28 = new Spawner( 2, 5, 15, 0, 5, "OrcBomber" );
            spawner28.MoveToWorld( new Point3D( 2289, 1222, 20 ), Map.Trammel );
                        spawner28.Name = "CoveInvasionTrammel";
            spawner28.Respawn();

                        Spawner spawner29 = new Spawner( 2, 5, 15, 0, 5, "OrcBomber" );
            spawner29.MoveToWorld( new Point3D( 2281, 1192, 20 ), Map.Trammel );
                        spawner29.Name = "CoveInvasionTrammel";
            spawner29.Respawn();

                        Spawner spawner30 = new Spawner( 1, 5, 15, 0, 1, "OrcCamp" );
            spawner30.MoveToWorld( new Point3D( 2303, 1131, 0 ), Map.Trammel );
                        spawner30.Name = "CoveInvasionTrammel";
            spawner30.Respawn();

                        Spawner spawner31 = new Spawner( 5, 5, 15, 0, 10, "Orc" );
            spawner31.MoveToWorld( new Point3D( 2292, 1110, 0 ), Map.Trammel );
                        spawner31.Name = "CoveInvasionTrammel";
            spawner31.Respawn();

                        Spawner spawner32 = new Spawner( 5, 5, 15, 0, 10, "Orc" );
            spawner32.MoveToWorld( new Point3D( 2347, 1151, 5 ), Map.Trammel );
                        spawner32.Name = "CoveInvasionTrammel";
            spawner32.Respawn();

                        Spawner spawner33 = new Spawner( 5, 5, 15, 0, 10, "Orc" );
            spawner32.MoveToWorld( new Point3D( 2361, 1183, 10 ), Map.Trammel );
                        spawner33.Name = "CoveInvasionTrammel";
            spawner33.Respawn();

                        Spawner spawner34 = new Spawner( 5, 5, 15, 0, 10, "Orc" );
            spawner34.MoveToWorld( new Point3D( 2351, 1245, 10 ), Map.Trammel );
                        spawner34.Name = "CoveInvasionTrammel";
            spawner34.Respawn();

                        Spawner spawner35 = new Spawner( 1, 2, 2, 0, 2, "LordOrcalis" );
            spawner35.MoveToWorld( new Point3D( 2213, 1115, 40 ), Map.Trammel );
                        spawner35.Name = "CoveInvasionTrammel";
            spawner35.Respawn();

                        Spawner spawner36 = new Spawner( 2, 5, 15, 0, 5, "OrcBomber" );
            spawner36.MoveToWorld( new Point3D( 2270, 1127, 40 ), Map.Trammel );
                        spawner36.Name = "CoveInvasionTrammel";
            spawner36.Respawn();

                        Spawner spawner37 = new Spawner( 3, 5, 15, 0, 10, "OrcScout" );
            spawner37.MoveToWorld( new Point3D( 2270, 1127, 40 ), Map.Trammel );
                        spawner37.Name = "CoveInvasionTrammel";
            spawner37.Respawn();

                        Spawner spawner38 = new Spawner( 10, 20, 20, 0, 20, "OrcBomber" );
            spawner38.MoveToWorld( new Point3D( 2253, 1193, -2 ), Map.Trammel );
                        spawner38.Name = "CoveInvasionTrammel";
            spawner38.Respawn();

                        Spawner spawner39 = new Spawner( 10, 20, 20, 0, 20, "OrcBomber" );
            spawner39.MoveToWorld( new Point3D( 2225, 1141, 0 ), Map.Trammel );
                        spawner39.Name = "CoveInvasionTrammel";
            spawner39.Respawn();

                                           World.Broadcast( 33, true, "Cove Trammel is under invasion." );
                       from.SendGump( new CityInvasion( from ) );
                                   	 break;
                            }
            case 2:
            {
            CoveInvasionStone covetram = new CoveInvasionStone();
            covetram.StopCoveTrammel();
                                          World.Broadcast( 33, true, "Cove Trammel's invasion was successfully beaten back. No more invaders are left in the city." );
                      from.SendGump( new CityInvasion( from ) );
                                   	break;
                }
            }
        }
Ejemplo n.º 4
0
        /*public override bool OnBeforeDeath()
        {
            if ( !NoKillAwards )
            {
                GivePowerScrolls();

                Map map = this.Map;

                if ( map != null )
                {
                    for ( int x = -6; x <= 6; ++x )
                    {
                        for ( int y = -6; y <= 6; ++y )
                        {
                            double dist = Math.Sqrt(x*x+y*y);

                            if ( dist <= 6 )
                                new GoodiesTimer( map, X + x, Y + y ).Start();
                        }
                    }
                }
            }

            return base.OnBeforeDeath();
        }*/
        public override void OnDeath( Container c )
        {
            if (this is LordOrcalis)
                        {
                              CoveInvasionStone covefel = new CoveInvasionStone();
                              covefel.StopCoveFelucca();
                              /*if (covefel.Region.IsPartOf("Covetous"))
                                  {
                                      covefel.RToxicEffect = false;
                                  }*/
                              World.Broadcast( 33, true, "Cove's invasion was successfully beaten back. No more invaders are left in the city." );
                        }
                        if (this is TheJukaGeneral)
                        {
                               MinocInvasionStone minocfel = new MinocInvasionStone();
                               minocfel.StopMinocFelucca();
                               World.Broadcast( 33, true, "Minoc's invasion was successfully beaten back. No more invaders are left in the city." );
                        }
                        if (this is LordBlackThorn)
                        {
                            BritInvasionStone britfel = new BritInvasionStone();
                            britfel.StopBritFelucca();
                            World.Broadcast(33, true, "Britain's invasion was successfully beaten back. No more invaders are left in the city.");
                        }
                        if (this is OrcKing)
                        {
                            MaginciaInvasionStone maginciafel = new MaginciaInvasionStone();
                            maginciafel.StopMaginciaFelucca();
                            World.Broadcast(33, true, "Magnecia's invasion was successfully beaten back. No more invaders are left in the city.");
                        }
            if ( Map == Map.Felucca )
                c.DropItem( new ChampionSkull( SkullType ) );

            base.OnDeath( c );
        }