本文整理汇总了C#中Server.Items.Scissors.PublicOverheadMessage方法的典型用法代码示例。如果您正苦于以下问题:C# Scissors.PublicOverheadMessage方法的具体用法?C# Scissors.PublicOverheadMessage怎么用?C# Scissors.PublicOverheadMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Items.Scissors
的用法示例。
在下文中一共展示了Scissors.PublicOverheadMessage方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Scissor
public override bool Scissor(Mobile from, Scissors scissors)
{
if (this.IsAccessibleTo(from))
{
if (!this.m_Cut && this.m_Timer == null)
{
this.m_Timer = Timer.DelayCall<Mobile>(TimeSpan.FromSeconds(3), new TimerStateCallback<Mobile>(CuttingDone), from);
scissors.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1071899); // You begin cutting through the vein.
return true;
}
else
scissors.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1071900); // // This vein has already been cut.
}
return false;
}
示例2: Scissor
public override bool Scissor( Mobile from, Scissors scissors )
{
if ( IsCuttable && IsAccessibleTo( from ) )
{
if ( !m_Opened && m_Timer == null )
{
m_Timer = Timer.DelayCall<Mobile>( TimeSpan.FromSeconds( 3 ), new TimerStateCallback<Mobile>( FinishOpening ), from );
scissors.PublicOverheadMessage( MessageType.Regular, 0x3B2, 1071897 ); // You carefully cut into the organ.
return true;
}
else
scissors.PublicOverheadMessage( MessageType.Regular, 0x3B2, 1071898 ); // You have already cut this organ open.
}
return false;
}
示例3: Scissor
public virtual bool Scissor(Mobile from, Scissors scissors)
{
if (this.IsAccessibleTo(from))
scissors.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1071918); // You can't cut through the plague beast's amorphous skin with scissors!
return false;
}