Esempio n. 1
0
 public override bool Dye(Mobile from, Item item)
 {
     if (!item.Movable)
     {
         from.SendLocalizedMessage(1049779);                   // You cannot dye statuettes that are locked down.
     }
     else if (item.Dye(from, this))
     {
         from.PlaySound(0x23E);
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
        public override bool Dye( Mobile from, Item item )
        {
            if ( !item.Movable )
                from.SendLocalizedMessage( 1042419 ); // You may not dye Runebook items which are locked down.
            else if ( item.Parent is Mobile )
                from.SendLocalizedMessage( 500861 ); // Can't Dye Runebook that is being worn.
            else if ( item.Dye( from, this ) )
            {
                from.PlaySound( 0x23E );
                return true;
            }

            return false;
        }
Esempio n. 3
0
        public override bool Dye(Mobile from, Item item)
        {
            if (!item.Movable)
            {
                from.SendMessage("You may not dye runes that are locked down.");
            }
            else if (item.Dye(from, this))
            {
                Uses--;
                from.PlaySound(0x23E);
                return(true);
            }

            return(false);
        }
Esempio n. 4
0
        public virtual bool Dye(Mobile from, Item item)
        {
            if (item.Parent is Mobile)
            {
                from.SendMessage("You decided not to dye this while it is worn.");                 // Can't Dye clothing that is being worn.
            }
            else if (item.Dye(from, this))
            {
                from.PlaySound(0x23E);
                return(true);
            }
            else
            {
                TextDefinition.SendMessageTo(from, FailMessage);
            }

            return(false);
        }
Esempio n. 5
0
        public override bool Dye(Mobile from, Item item)
        {
            if (!item.Movable)
            {
                from.SendLocalizedMessage(1080395);                   // You may not dye metal items which are locked down.
            }
            else if (item.Parent is Mobile)
            {
                from.SendLocalizedMessage(500861);                   // Can't Dye clothing that is being worn.
            }
            else if (item.Dye(from, this))
            {
                from.PlaySound(0x23E);
                return(true);
            }

            return(false);
        }
Esempio n. 6
0
        public override bool Dye(Mobile from, Item item)
        {
            bool okay        = (item.IsChildOf(from.Backpack));
            bool IsFurniture = FurnitureAttribute.Check(item);

            if (!okay)
            {
                if (item.RootParent == null)
                {
                    BaseHouse house = BaseHouse.FindHouseAt(item);

                    if (house == null || (!house.IsLockedDown(item) && !house.IsSecure(item)))
                    {
                        from.SendLocalizedMessage(501022);                           // Furniture must be locked down to paint it.
                    }
                    else if (!house.IsCoOwner(from))
                    {
                        from.SendLocalizedMessage(501023);                           // You must be the owner to use this item.
                    }
                    else
                    {
                        okay = true;
                    }
                }
                else
                {
                    from.SendLocalizedMessage(1048135);                       // The furniture must be in your backpack to be painted.
                }
            }

            if (!IsFurniture && !(item is PotionKeg))
            {
                from.SendMessage("This is not a piece of furniture!");
                return(false);
            }

            if (okay && item.Dye(from, this))
            {
                from.PlaySound(0x23E);
                return(true);
            }
            return(false);
        }
Esempio n. 7
0
        public override bool Dye(Mobile from, Item item)
        {
            if (!item.Movable)
            {
                from.SendMessage("You cannot dye spellbooks which are locked down.");
            }
            else if (item.Parent is Mobile)
            {
                from.SendMessage("You cannot dye spellbooks that are being worn.");
            }
            else if (item.Dye(from, this))
            {
                from.PlaySound(0x23E);
                return(true);
            }
            else
            {
                TextDefinition.SendMessageTo(from, FailMessage);
            }

            return(false);
        }
Esempio n. 8
0
        public override bool Dye(Mobile from, Item item)
        {
            if (!item.Movable)
            {
                from.SendLocalizedMessage(1042419);                   // You may not dye leather items which are locked down.
            }
            else if (item.Parent is Mobile)
            {
                from.SendLocalizedMessage(500861);                   // Can't Dye clothing that is being worn.
            }
            else if (!(item is BaseArmor) && !(item is BaseLeather))
            {
                from.SendMessage("This is not a piece of leather or leather armor!");
                return(false);
            }
            else if (item.Dye(from, this))
            {
                from.PlaySound(0x23E);
                return(true);
            }

            return(false);
        }
Esempio n. 9
0
        public override bool Dye(Mobile from, Item item)
        {
            if (!item.Movable)
            {
                from.SendMessage("You may not dye runes that are locked down.");
            }
            else if (item.Dye(from, this))
            {
                Uses--;
                from.PlaySound(0x23E);
                return true;
            }

            return false;
        }