本文整理汇总了C#中Server.Items.Scissors类的典型用法代码示例。如果您正苦于以下问题:C# Scissors类的具体用法?C# Scissors怎么用?C# Scissors使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Scissors类属于Server.Items命名空间,在下文中一共展示了Scissors类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Scissor
public bool Scissor( Mobile from, Scissors scissors )
{
if ( Deleted || !from.CanSee( this ) ) return false;
base.ScissorHelper( from, new Bandage(), 1 );
return true;
}
示例2: Scissor
public override bool Scissor( Mobile from, Scissors scissors )
{
if( DefaultResource == CraftResource.None )
return base.Scissor( from, scissors );
from.SendLocalizedMessage( 502440 ); // Scissors can not be used on that to produce anything.
return false;
}
示例3: Scissor
public override bool Scissor( Mobile from, Scissors scissors )
{
if ( Deleted || !from.CanSee( this ) ) return false;
base.ScissorHelper( from, new Leather(), 1 );
return true;
}
示例4: Scissor
public bool Scissor(Mobile from, Scissors scissors)
{
if (this.Deleted || !from.CanSee(this))
return false;
base.ScissorHelper(from, new Cloth(), 50);
return true;
}
示例5: Scissor
public bool Scissor(Mobile from, Scissors scissors)
{
if (this.Deleted || !from.CanSee(this))
return false;
base.ScissorHelper(from, new Bone(), Utility.RandomMinMax(3, 5));
return true;
}
示例6: Scissor
public bool Scissor( Mobile from, Scissors scissors )
{
if ( Deleted || !from.CanSee( this ) ) return false;
Cloth c = new Cloth();
c.Hue = this.Hue;
base.ScissorHelper( from, c, 50 );
return true;
}
示例7: Scissor
public bool Scissor( Mobile from, Scissors scissors )
{
if ( Deleted || !from.CanSee( this ) )
return false;
base.ScissorHelper( from, new Bone(), 1 );
from.PlaySound( 0x21B );
return false;
}
示例8: Scissor
public bool Scissor(Mobile from, Scissors scissors)
{
if (Deleted || !from.CanSee(this)) return false;
//base.ScissorHelper(from, new Cloth(), 50);
from.SendMessage("You removed the tag from the pillow, that is illegal. You are now a criminal.");
from.Criminal = true;
return true;
}
示例9: Scissor
public bool Scissor( Mobile from, Scissors scissors )
{
if ( Deleted || !from.CanSee( this ) )
return false;
from.SendLocalizedMessage( 1008117 ); // You cut the material into bandages and place them in your backpack.
base.ScissorHelper( from, new Bandage(), 1 );
return true;
}
示例10: Scissor
public bool Scissor( Mobile from, Scissors scissors )
{
if ( Deleted || !from.CanSee( this ) ) return false;
//base.ScissorHelper( from, new Bandage(), 1 );
this.Consume( 1 );
Bandage give = new Bandage();
give.Hue = this.Hue;
from.AddToBackpack( give );
return true;
}
示例11: Scissor
public bool Scissor( Mobile from, Scissors scissors )
{
if ( Deleted || !from.CanSee( this ) ) return false;
if ( !IsChildOf ( from.Backpack ) )
{
from.SendLocalizedMessage ( 502437 ); // Items you wish to cut must be in your backpack
return false;
}
base.ScissorHelper( from, new BarbedLeather(), 1 );
return true;
}
示例12: Bandage
bool IScissorable.Scissor( Mobile from, Scissors scissors )
{
if( !Deleted && ( IsChildOf( from ) || IsChildOf( from.BankBox ) || (from.InRange( this, 3 ) && from.InLOS(this) ) ) )
{
from.SendAsciiMessage( "You put the bandages in your pack." );
from.AddToBackpack( new Bandage( 3 ) );
Delete();
return true;
}
else
{
from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1019045); // I can't reach that.
return false;
}
}
示例13: 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;
}
示例14: Scissor
public bool Scissor( Mobile from, Scissors scissors )
{
if ( DateTime.Now < m_NextWoolTime )
{
// This sheep is not yet ready to be shorn.
PrivateOverheadMessage( MessageType.Regular, 0x3B2, 500449, from.NetState );
return false;
}
from.SendLocalizedMessage( 500452 ); // You place the gathered wool into your backpack.
from.AddToBackpack( new Wool( Map == Map.Felucca ? 2 : 1 ) );
NextWoolTime = DateTime.Now + TimeSpan.FromHours( 3.0 ); // TODO: Proper time delay
return true;
}
示例15: 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;
}