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


C# Items.DyeTub类代码示例

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


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

示例1: Dye

        public virtual bool Dye(Mobile from, DyeTub sender)
        {
            if (this.Deleted)
                return false;

            BaseHouse house = BaseHouse.FindHouseAt(this);

            if (house != null && house.IsCoOwner(from))
            {
                if (from.InRange(this.GetWorldLocation(), 1))
                {
                    this.Hue = sender.DyedHue;
                    return true;
                }
                else
                {
                    from.SendLocalizedMessage(500295); // You are too far away to do that.
                    return false;
                }
            }
            else 
            {
                return false;
            }
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:25,代码来源:Wreath.cs

示例2: Dye

 public bool Dye(Mobile from, DyeTub sender)
 {
     if (Deleted || !is_dyable)
         return false;  //  Fail for !Dyable and Delete
     Hue = sender.DyedHue;
     return true;
 }
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:7,代码来源:BoneContainers.cs

示例3: Dye

        public bool Dye(Mobile from, DyeTub sender)
        {
            if (Deleted) return false;

            Hue = sender.DyedHue;

            return true;
        }
开发者ID:greeduomacro,项目名称:annox,代码行数:8,代码来源:HerbBasket.cs

示例4: Dye

		public bool Dye( Mobile from, DyeTub sender )
		{
			if( Deleted || !sender.AllowDyables )
				return false;

			Hue = sender.DyedHue;

			return true;
		}
开发者ID:nathanvy,项目名称:runuo,代码行数:9,代码来源:DragonEasterEgg.cs

示例5: Dye

        public virtual bool Dye(Mobile from, DyeTub sender)
        {
            if (this.Deleted)
                return false;

            this.Hue = sender.DyedHue;

            return true;
        }
开发者ID:FreeReign,项目名称:forkuo,代码行数:9,代码来源:Bandage.cs

示例6: Dye

		public bool Dye( Mobile from, DyeTub sender )
		{
			if ( Deleted )
				return false;

			if ( Addon != null )
				Addon.Hue = sender.DyedHue;

			return true;
		}
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:10,代码来源:WallBanner.cs

示例7: Dye

	// Implement Dye() member... tent roofs reflect dyed bag colour

	public virtual bool Dye(Mobile from, DyeTub sender)
	{
		if( Deleted )
			return false;
		else if( RootParent is Mobile && from != RootParent )
			return false;

		Hue = sender.DyedHue;
		return true;
	}
开发者ID:zerodowned,项目名称:angelisland,代码行数:12,代码来源:TentBag.cs

示例8: Dye

		public virtual bool Dye(Mobile mob, DyeTub sender)
		{
			if (mob == null || sender == null || !mob.CanSee(sender) || !sender.IsAccessibleTo(mob))
			{
				return false;
			}

			Hue = sender.DyedHue;
			return true;
		}
开发者ID:Ravenwolfe,项目名称:Core,代码行数:10,代码来源:BaseTrashContainer.cs

示例9: Dye

        public bool Dye(Mobile from, DyeTub sender)
        {
            if (Parent != null)
            {
                Hue = sender.DyedHue;
                return true;
            }

            from.SendMessage("You cannot dye bricks from the ground.");
            return false;
        }
开发者ID:Vorpalstar,项目名称:runuo-custom-scripts,代码行数:11,代码来源:Bricks.cs

示例10: Dye

        public bool Dye( Mobile from, DyeTub sender )
        {
            if ( Deleted )
                return false;

            if ( ItemID >= 0x13A4 && ItemID <= 0x13AE )
            {
                Hue = sender.DyedHue;
                return true;
            }

            return false;
        }
开发者ID:cynricthehun,项目名称:UOLegends,代码行数:13,代码来源:Bones.cs

示例11: Dye

        public bool Dye( Mobile from, DyeTub sender )
        {
            if ( Deleted )
                return false;

            if ( ItemID >= 0x13A4 && ItemID <= 0x13AE )
            {
                Hue = sender.DyedHue;
                return true;
            }

            from.SendAsciiMessage( sender.FailMessage );
            return false;
        }
开发者ID:Ravenwolfe,项目名称:Origins,代码行数:14,代码来源:ShipwreckedItem.cs

示例12: Dye

		public override bool Dye(Mobile from, DyeTub sender)
		{
			if (from == null || sender == null || !from.CanSee(sender) || !sender.IsAccessibleTo(from))
			{
				return false;
			}

			if (!(sender is FurnitureDyeTub))
			{
				return false;
			}

			return base.Dye(from, sender);
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:14,代码来源:TrashCan.cs

示例13: Dye

        public bool Dye(Mobile from, DyeTub sender)
        {
            if (this.Deleted)
                return false;

            if (this.ItemID >= 0x13A4 && this.ItemID <= 0x13AE)
            {
                this.Hue = sender.DyedHue;
                return true;
            }

            from.SendLocalizedMessage(sender.FailMessage);
            return false;
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:14,代码来源:ShipwreckedItem.cs

示例14: Dye

        public bool Dye(Mobile from, DyeTub sender)
        {
            if (Deleted)
                return false;

            if (Parent != from.Backpack)
            {
                from.SendMessage(38, "It must be in your backpack for you to dye it.");
                return false;
            }

            Hue = sender.DyedHue;
            return true;
        }
开发者ID:felladrin,项目名称:last-wish,代码行数:14,代码来源:BoundlessBag.cs

示例15: Dye

 }// enhanced bandage
 public override bool Dye(Mobile from, DyeTub sender)
 {
     return false;
 }
开发者ID:zerodowned,项目名称:JustUO-merged-with-EC-Support,代码行数:5,代码来源:FountainOfLife.cs


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