• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Items.Scissors类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Server.Items.Scissors的典型用法代码示例。如果您正苦于以下问题:C# Scissors类的具体用法?C# Scissors怎么用?C# Scissors使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Scissors类属于Server.Items命名空间,在下文中一共展示了Scissors类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: Scissor

        public bool Scissor( Mobile from, Scissors scissors )
        {
            if ( Deleted || !from.CanSee( this ) )
                return false;

            int amount = RandomAmount();

            Item bones = new Bone( amount );
            from.PlaySound( 0x21B );

            if ( from.Backpack != null && from.Backpack.TryDropItem( from, bones, false ) )
            {
                from.SendLocalizedMessage( 1008123 ); // You cut the material and place it into your backpack.
                Delete();
            }
            else
                base.ScissorHelper( from, bones, 1 );

            return true;
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:20,代码来源:BoneRemains.cs


示例17: Scissor

		public virtual bool Scissor( Mobile from, Scissors scissors )
		{
			if ( !m_Cut )
			{
				PlagueBeastLord owner = RootParent as PlagueBeastLord;

				m_Cut = true;
				Movable = true;

				from.AddToBackpack( this );
				from.LocalOverheadMessage( MessageType.Regular, 0x34, 1071906 ); // * You remove the plague mutation core from the plague beast, causing it to dissolve into a pile of goo *				

				if ( owner != null )
					Timer.DelayCall<PlagueBeastLord>( TimeSpan.FromSeconds( 1 ), new TimerStateCallback<PlagueBeastLord>( KillParent ), owner );

				return true;
			}

			return false;
		}
开发者ID:nick12344356,项目名称:The-Basement,代码行数:20,代码来源:PlagueBeastMutationCore.cs


示例18: BlessedClothingCutGump

		public BlessedClothingCutGump(IScissorable target, Scissors scissors)
			: base(150, 50)
		{
			Closable = true;
			Disposable = true;
			Dragable = true;
			Resizable = false;

			m_Target = target;
			m_Scissors = scissors;

			AddBackground(0, 0, 250, 170, 0x13BE);
			AddBackground(10, 10, 200, 150, 0xBB8);

			AddHtml(20, 30, 140, 60, "WARNING: If you cut that blessed cloth, the blessing will be lost!", false, false);
				// Do you wish to re-deed this decoration?

			AddHtmlLocalized(55, 100, 150, 25, 1011011, false, false); // CONTINUE
			AddButton(20, 100, 0xFA5, 0xFA7, (int)Buttons.Confirm, GumpButtonType.Reply, 0);

			AddHtmlLocalized(55, 125, 150, 25, 1011012, false, false); // CANCEL
			AddButton(20, 125, 0xFA5, 0xFA7, (int)Buttons.Cancel, GumpButtonType.Reply, 0);
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:23,代码来源:Scissors.cs


示例19: Scissor

		public bool Scissor( Mobile from, Scissors scissors )
		{
			if ( !IsChildOf( from.Backpack ) )
			{
				from.SendLocalizedMessage( 502437 ); // Items you wish to cut must be in your backpack.
				return false;
			}

			CraftSystem system = DefTailoring.CraftSystem;

			CraftItem item = system.CraftItems.SearchFor( GetType() );

			if ( item != null && item.Ressources.Count == 1 && item.Ressources.GetAt( 0 ).Amount >= 2 )
			{
				try
				{
					Hue = CraftResources.GetHue( m_Resource );

					Item res = (Item)Activator.CreateInstance( CraftResources.GetInfo( m_Resource ).ResourceTypes[0] );

					ScissorHelper( from, res, m_PlayerConstructed ? (item.Ressources.GetAt( 0 ).Amount / 2) : 1 );
					return true;
				}
				catch
				{
				}
			}

			from.SendLocalizedMessage( 502440 ); // Scissors can not be used on that to produce anything.
			return false;
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:31,代码来源:BaseArmor.cs


示例20: InternalTarget

 public InternalTarget(Scissors item)
     : base(2, false, TargetFlags.None)
 {
     this.m_Item = item;
 }
开发者ID:FreeReign,项目名称:forkuo,代码行数:5,代码来源:Scissors.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Items.Spellbook类代码示例发布时间:2022-05-26
下一篇:
C# Items.Sandals类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap