public virtual void BonusAction(PlayerMobile player, Mobile attacker) { Unicorn c = new Unicorn(); c.SetControlMaster(this); c.MoveToWorld(this.Location, this.Map); c.ControlOrder = OrderType.Guard; new InternalTimer(c).Start(); if (player != null && player.Poisoned) { if (player.CurePoison(this)) { player.SendLocalizedMessage(1010059); //You have been cured of all poisons. player.FixedParticles(0x373A, 10, 15, 5012, EffectLayer.Waist); player.PlaySound(0x1E0); } } }
public InternalTimer( Unicorn pet ) : base(TimeSpan.FromSeconds( 90 )) { m_Pet = pet; Priority = TimerPriority.OneSecond; }
public virtual void BonusAction( PlayerMobile player, Mobile attacker ) { Unicorn c = new Unicorn(); c.SetControlMaster( this ); c.MoveToWorld( this.Location, this.Map ); c.ControlOrder = OrderType.Guard; new InternalTimer( c ).Start(); if( player != null && player.Poisoned ) { if( player.CurePoison( this ) ) { player.SendLocalizedMessage( 1010059 ); //You have been cured of all poisons. player.FixedParticles( 0x373A, 10, 15, 5012, EffectLayer.Waist ); player.PlaySound( 0x1E0 ); } } }
public InternalTimer(Unicorn pet) : base(TimeSpan.FromSeconds(90)) { m_Pet = pet; Priority = TimerPriority.OneSecond; }