Exemplo n.º 1
0
		public override void OnDoubleClick( Mobile from )
		{
			Container pack = from.Backpack;
	
			if ( pack != null && pack.ConsumeTotal( typeof( DragonSummonScroll ), 1 ) )
			{
				Map map = from.Map;
				
				BaseCreature wyrm = new QuestWyrm();				

				Point3D loc = from.Location;
				bool validLocation = false;

				for ( int j = 0; !validLocation && j < 10; ++j )
				{
					int x = from.X + Utility.Random( 3 ) - 1;
					int y = from.Y + Utility.Random( 3 ) - 1;
					int z = map.GetAverageZ( x, y );

					if ( validLocation = map.CanFit( x, y, this.Z, 16, false, false ) )
						loc = new Point3D( x, y, Z );
					else if ( validLocation = map.CanFit( x, y, z, 16, false, false ) )
						loc = new Point3D( x, y, z );
				}

				wyrm.MoveToWorld( loc, map );

				wyrm.Combatant = from;
			}
			else
			{
				from.SendMessage(0x22,"You need a Scroll of Dragon Summoning to use that.");
			
			}

		}
Exemplo n.º 2
0
			public BreatheTimer( Mobile m, QuestWyrm owner ) : base( TimeSpan.FromSeconds( 1.0 ), TimeSpan.FromSeconds( 1.0 ) )
			{
				d = owner;
				m_Mobile = m;
			}
Exemplo n.º 3
0
		public override void OnDeath( Container c )
		{
			base.OnDeath( c );
			
				QuestWyrm.DistributeHeart( this );
		}
Exemplo n.º 4
0
			public BreatheTimer( Mobile m, QuestWyrm owner ) : base( TimeSpan.FromSeconds( 1.0 ), TimeSpan.FromSeconds( 1.0 ) )
			{
				d = owner;
				m_Mobile = m;
			}