本文整理匯總了C#中Server.Mobiles.PlayerMobile.CheckYoungHealTime方法的典型用法代碼示例。如果您正苦於以下問題:C# PlayerMobile.CheckYoungHealTime方法的具體用法?C# PlayerMobile.CheckYoungHealTime怎麽用?C# PlayerMobile.CheckYoungHealTime使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Server.Mobiles.PlayerMobile
的用法示例。
在下文中一共展示了PlayerMobile.CheckYoungHealTime方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: OfferHeal
public virtual void OfferHeal( PlayerMobile m )
{
Direction = GetDirectionTo( m );
if ( m.CheckYoungHealTime() )
{
Say( 501229 ); // You look like you need some healing my child.
m.PlaySound( 0x1F2 );
m.FixedEffect( 0x376A, 9, 32 );
m.Hits = m.HitsMax;
}
else
{
Say( 501228 ); // I can do no more for you at this time.
}
}
示例2: OfferHeal
public override void OfferHeal( PlayerMobile m )
{
Direction = GetDirectionTo( m );
if ( m.CheckYoungHealTime() )
{
Say( "Let me annoint thee with oil, my child." );
m.PlaySound( 0x1F2 );
m.FixedEffect( 0x376A, 9, 32 );
m.Hits = m.HitsMax;
}
else
{
Say( 501228 ); // I can do no more for you at this time.
}
}
示例3: OfferHeal
public override void OfferHeal( PlayerMobile m )
{
Direction = GetDirectionTo( m );
if ( m.CheckYoungHealTime() )
{
Say( 501229 ); // You look like you need some healing my child.
m.PlaySound( 0x1F2 );
m.FixedEffect( 0x376A, 9, 32 );
m.Hits = m.HitsMax;
Effects.SendLocationParticles( EffectItem.Create( this.Location, this.Map, EffectItem.DefaultDuration ), 0x3728, 1, 10, 0x26B6 );
Effects.PlaySound( this.Location, this.Map, this.BaseSoundID );
Delete();
}
else
{
PublicOverheadMessage( 0, 96, true, "Haven't we done enough?" );
Effects.SendLocationParticles( EffectItem.Create( this.Location, this.Map, EffectItem.DefaultDuration ), 0x3728, 1, 10, 0x26B6 );
Effects.PlaySound( this.Location, this.Map, this.BaseSoundID );
Delete();
// Say( 501228 ); // I can do no more for you at this time.
}
}
示例4: OfferHeal
public virtual void OfferHeal( PlayerMobile m )
{
Direction = GetDirectionTo( m );
if ( m.CheckYoungHealTime() )
{
Say( "Vous semblez avoir besoin de soin" ); // You look like you need some healing my child.
m.PlaySound( 0x1F2 );
m.FixedEffect( 0x376A, 9, 32 );
m.Hits = m.HitsMax;
}
else
{
Say( "Je ne peux rien faire de plus pour vous" ); // I can do no more for you at this time.
}
}