當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。