Exemplo n.º 1
0
 protected override void OnTick()
 {
     m_Moongate.Delete();
     m_HagCouldron.Gate  = null;
     m_HagCouldron.Timer = null;
     Stop();
 }
Exemplo n.º 2
0
		public void KillGate( Moongate gate )
		{
			if ( gate != null && !gate.Deleted )
			{
				Effects.SendLocationParticles( EffectItem.Create( gate.Location, gate.Map, EffectItem.DefaultDuration ), 0x376A, 9, 20, 5042 );
				Effects.PlaySound( gate.Location, gate.Map, 0x201 );
				gate.Delete();
			}
		}
Exemplo n.º 3
0
 public void KillGate(Moongate gate)
 {
     if (gate != null && !gate.Deleted)
     {
         Effects.SendLocationParticles(EffectItem.Create(gate.Location, gate.Map, EffectItem.DefaultDuration), 0x376A, 9, 20, 5042);
         Effects.PlaySound(gate.Location, gate.Map, 0x201);
         gate.Delete();
     }
 }
Exemplo n.º 4
0
        public override void Deserialize( GenericReader reader )
        {
			base.Deserialize( reader );

			int version = reader.ReadInt();
			
			if ( version == 1 )
			{
				m_Gate = reader.ReadItem() as Moongate;
				if( m_Gate != null )
					m_Gate.Delete();
			}
       
			Timer.DelayCall( TimeSpan.FromSeconds( 5 ), new TimerCallback( CastGate ) );
        }