当前位置: 首页>>代码示例>>C#>>正文


C# Items.Scissors类代码示例

本文整理汇总了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;
		}
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:8,代码来源:Cloth.cs

示例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;
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:8,代码来源:Shoes.cs

示例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;
        }
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:8,代码来源:Shoes.cs

示例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;
        }
开发者ID:FreeReign,项目名称:forkuo,代码行数:9,代码来源:BoltOfCloth.cs

示例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;
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:9,代码来源:RibCage.cs

示例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;
        }
开发者ID:FreeReign,项目名称:Rebirth-Repack,代码行数:10,代码来源:BoltOfCloth.cs

示例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;
		}
开发者ID:romeov007,项目名称:imagine-uo,代码行数:10,代码来源:PelvisBone.cs

示例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;
        }
开发者ID:ITLongwell,项目名称:aedilis2server,代码行数:11,代码来源:TaggedPillow.cs

示例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;
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:11,代码来源:Cloth.cs

示例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;
        }
开发者ID:FreeReign,项目名称:Rebirth-Repack,代码行数:12,代码来源:UncutCloth.cs

示例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;
        }
开发者ID:greeduomacro,项目名称:DimensionsNewAge,代码行数:14,代码来源:Hides.cs

示例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;
			}
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:15,代码来源:ResRobe.cs

示例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;
		}
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:16,代码来源:PlagueBeastOrgans.cs

示例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;
		}
开发者ID:greeduomacro,项目名称:dragonknights-uo,代码行数:16,代码来源:Sheep.cs

示例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;
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:16,代码来源:PlagueBeastVein.cs


注:本文中的Server.Items.Scissors类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。