public override bool OnBeforeDeath()
        {
            IncredibleHulk rm = new IncredibleHulk();

            rm.Team = this.Team;
            rm.MoveToWorld(this.Location, this.Map);

            Effects.SendLocationEffect(Location, Map, 0x3709, 13, 0x3B2, 0);

            Container bag = new Bag();

            switch (Utility.Random(9))
            {
            case 0: bag.DropItem(new Amber()); break;

            case 1: bag.DropItem(new Amethyst()); break;

            case 2: bag.DropItem(new Citrine()); break;

            case 3: bag.DropItem(new Diamond()); break;

            case 4: bag.DropItem(new Emerald()); break;

            case 5: bag.DropItem(new Ruby()); break;

            case 6: bag.DropItem(new Sapphire()); break;

            case 7: bag.DropItem(new StarSapphire()); break;

            case 8: bag.DropItem(new Tourmaline()); break;
            }

            switch (Utility.Random(8))
            {
            case 0: bag.DropItem(new SpidersSilk(3)); break;

            case 1: bag.DropItem(new BlackPearl(3)); break;

            case 2: bag.DropItem(new Bloodmoss(3)); break;

            case 3: bag.DropItem(new Garlic(3)); break;

            case 4: bag.DropItem(new MandrakeRoot(3)); break;

            case 5: bag.DropItem(new Nightshade(3)); break;

            case 6: bag.DropItem(new SulfurousAsh(3)); break;

            case 7: bag.DropItem(new Ginseng(3)); break;
            }

            bag.DropItem(new Gold(1000, 1500));
            rm.AddItem(bag);

            this.Delete();

            return(false);
        }
			//Line Below This: (TimeSpan.FromSeconds (this is where u adjust how long it takes till the egg drops)
			public InternalSelfDeleteTimer(Mobile p): base( TimeSpan.FromSeconds( 3600.0), TimeSpan.FromSeconds( 3601.0))//time 1.0 - 1800.0 meens will drop evey 1/2 hour
      		{
				Priority = TimerPriority.FiftyMS;
				Mare = ((IncredibleHulk) p);
			}
Example #3
0
 //Line Below This: (TimeSpan.FromSeconds (this is where u adjust how long it takes till the egg drops)
 public InternalSelfDeleteTimer(Mobile p) : base(TimeSpan.FromSeconds(3600.0), TimeSpan.FromSeconds(3601.0))              //time 1.0 - 1800.0 meens will drop evey 1/2 hour
 {
     Priority = TimerPriority.FiftyMS;
     Mare     = ((IncredibleHulk)p);
 }
		public override bool OnBeforeDeath()
		{
                       

                        IncredibleHulk rm = new IncredibleHulk();

			rm.Team = this.Team;
			rm.MoveToWorld( this.Location, this.Map );

			Effects.SendLocationEffect( Location,Map, 0x3709, 13, 0x3B2, 0 );

			Container bag = new Bag();

			switch ( Utility.Random( 9 ))
			{
				case 0: bag.DropItem( new Amber() ); break;
				case 1: bag.DropItem( new Amethyst() ); break;
				case 2: bag.DropItem( new Citrine() ); break;
				case 3: bag.DropItem( new Diamond() ); break;
				case 4: bag.DropItem( new Emerald() ); break;
				case 5: bag.DropItem( new Ruby() ); break;
				case 6: bag.DropItem( new Sapphire() ); break;
				case 7: bag.DropItem( new StarSapphire() ); break;
				case 8: bag.DropItem( new Tourmaline() ); break;
			}

			switch ( Utility.Random( 8 ))
			{
				case 0: bag.DropItem( new SpidersSilk( 3 ) ); break;
				case 1: bag.DropItem( new BlackPearl( 3 ) ); break;
				case 2: bag.DropItem( new Bloodmoss( 3 ) ); break;
				case 3: bag.DropItem( new Garlic( 3 ) ); break;
				case 4: bag.DropItem( new MandrakeRoot( 3 ) ); break;
				case 5: bag.DropItem( new Nightshade( 3 ) ); break;
				case 6: bag.DropItem( new SulfurousAsh( 3 ) ); break;
				case 7: bag.DropItem( new Ginseng( 3 ) ); break;
			}
 
			bag.DropItem( new Gold( 1000, 1500 ) );
			rm.AddItem( bag );
                       
			this.Delete();

			return false;
		}