Ejemplo n.º 1
0
        private void TryToHeal(OrcScout scout)
        {
            scout.m_Bandage = true;
            Bandage bandage = (Bandage) scout.Backpack.FindItemByType( typeof( Bandage ) );

            if ( bandage != null )
            {
                if ( BandageContext.BeginHeal( (Mobile)scout, (Mobile)scout ) != null )
                    bandage.Consume();

                Timer.DelayCall( TimeSpan.FromSeconds( 15 ), new TimerCallback( EnableBanding ) );
            }
        }
Ejemplo n.º 2
0
 public BandageTimer( OrcScout o )
     : base(TimeSpan.FromSeconds( 15 ))
 {
     scout = o;
        Priority = TimerPriority.OneSecond;
 }
Ejemplo n.º 3
0
 public BandageTimer(OrcScout o) : base(TimeSpan.FromSeconds(15))
 {
     scout    = o;
     Priority = TimerPriority.OneSecond;
 }