Server.Mobiles.BaseCreature.Pacify C# (CSharp) Method

Pacify() public method

public Pacify ( Mobile master, DateTime endtime ) : void
master Mobile
endtime DateTime
return void
        public void Pacify( Mobile master, DateTime endtime )
        {
            BardPacified = true;
            BardEndTime = endtime;
        }

Usage Example

コード例 #1
0
        public override void OnGotMeleeAttack(Mobile d)
        {
            if (0.2 >= Utility.RandomDouble())
            {
                this.Say(500131);
            }

            if (this.Hits < this.HitsMax / 2)
            {
                if (BandageContext.GetContext(this) == null)
                {
                    BandageContext.BeginHeal(this, this);
                    this.Say("*Aplicandose vendajes*");
                }
            }

            if (d is BaseCreature)
            {
                BaseCreature t = (BaseCreature)d;
                if (t.Controlled && !(t as BaseCreature).IsDispellable)
                {
                    if (0.5 >= Utility.RandomDouble())
                    {
                        t.Combatant = null;
                        t.Warmode   = false;
                        t.Pacify(this, DateTime.Now + TimeSpan.FromSeconds(20.0));
                    }
                    if (this.Combatant == t)
                    {
                        this.Provoke(this, t.ControlMaster, true);
                    }
                }
            }
        }
All Usage Examples Of Server.Mobiles.BaseCreature::Pacify
BaseCreature